Skip to content
Snippets Groups Projects
Select Git revision
  • f32264abd1e0302caab10587034c6034b55ecfb0
  • master default protected
  • optimize_trapping
  • script_devel
  • parallel_trapping
  • unify_iterations
  • containers-m10
  • magma_refinement
  • release9
  • enable_svd
  • parallel_angles_gmu
  • containers-m8
  • parallel_angles
  • profile_omp_leonardo
  • test_nvidia_profiler
  • containers
  • shaditest
  • test1
  • main
  • 3-error-in-run-the-program
  • experiment
  • NP_TMcode-M10a.03
  • NP_TMcode-M10a.02
  • NP_TMcode-M10a.01
  • NP_TMcode-M10a.00
  • NP_TMcode-M9.01
  • NP_TMcode-M9.00
  • NP_TMcode-M8.03
  • NP_TMcode-M8.02
  • NP_TMcode-M8.01
  • NP_TMcode-M8.00
  • NP_TMcode-M7.00
  • v0.0
33 results

outputs.cpp

Blame
  • outputs.cpp 286.03 KiB
    /* Copyright (C) 2024   INAF - Osservatorio Astronomico di Cagliari
    
       This program is free software: you can redistribute it and/or modify
       it under the terms of the GNU General Public License as published by
       the Free Software Foundation, either version 3 of the License, or
       (at your option) any later version.
       
       This program is distributed in the hope that it will be useful,
       but WITHOUT ANY WARRANTY; without even the implied warranty of
       MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
       GNU General Public License for more details.
       
       A copy of the GNU General Public License is distributed along with
       this program in the COPYING file. If not, see: <https://www.gnu.org/licenses/>.
     */
    
    /*! \file outputs.cpp
     *
     * \brief Implementation of the code output format system.
     */
    #include <cstdio>
    #include <exception>
    #include <string>
    #include <cstring>
    #include <hdf5.h>
    
    #ifdef USE_MPI
    #ifndef MPI_VERSION
    #include <mpi.h>
    #endif
    #endif
    
    #ifndef INCLUDE_ERRORS_H_
    #include "../include/errors.h"
    #endif
    
    #ifndef INCLUDE_LIST_H_
    #include "../include/List.h"
    #endif
    
    #ifndef INCLUDE_TYPES_H_
    #include "../include/types.h"
    #endif
    
    #ifndef INCLUDE_CONFIGURATION_H_
    #include "../include/Configuration.h"
    #endif
    
    #ifndef INCLUDE_FILE_IO_H_
    #include "../include/file_io.h"
    #endif
    
    #ifndef INCLUDE_OUTPUTS_H_
    #include "../include/outputs.h"
    #endif
    
    using namespace std;
    
    // >>> ClusterOutputInfo CLASS IMPLEMENTATION <<<
    ClusterOutputInfo::ClusterOutputInfo(
      ScattererConfiguration *sc, GeometryConfiguration *gc,
      const mixMPI *mpidata, int first_xi, int xi_length
    ) {
      nsph = gc->number_of_spheres;
      li = gc->li;
      le = gc->le;
      lm = gc->l_max;
      mxndm = gc->mxndm;
      inpol = gc->in_pol;
      npnt = gc->npnt;