XGCa
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
read_diffusion_coeffs.hpp
Go to the documentation of this file.
1 #ifndef READ_DIFFUSION_COEFFS_HPP
2 #define READ_DIFFUSION_COEFFS_HPP
3 
25 #include <string>
26 #include <stdexcept>
27 #include <vector>
28 //#include "adios2.hpp"
29 #include "space_settings.hpp" // Assumed to define HostType and Kokkos::View, etc.
30 #include "xgc_io.hpp"
31 #include "domain_decomposition.hpp"
32 
44  Kokkos::View<double*,CLayout,HostType> psi;
45  Kokkos::View<double***,CLayout,HostType> diffusion_coeff;
46 };
47 
48 DiffusionCoeffData ReadDiffCoeffData(const DomainDecomposition<DeviceType>& pol_decomp, const int n_species, XGC_IO_Stream& stream);
49 
50 #endif
Kokkos::View< double *, CLayout, HostType > psi
1D view for the common x variable.
Definition: read_diffusion_coeffs.hpp:44
Kokkos::View< double ***, CLayout, HostType > diffusion_coeff
3D view for the y variables [4, n_species, N].
Definition: read_diffusion_coeffs.hpp:45
Definition: read_diffusion_coeffs.hpp:43
DiffusionCoeffData ReadDiffCoeffData(const DomainDecomposition< DeviceType > &pol_decomp, const int n_species, XGC_IO_Stream &stream)
Reads diffusion coefficients for multiple particle species from an ADIOS2 BP file.
Definition: read_diffusion_coeffs.cpp:50
Definition: xgc_io.hpp:24