XGCa
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
volumes_and_areas.hpp
Go to the documentation of this file.
1 #ifndef VOLUMES_AND_AREAS_HPP
2 #define VOLUMES_AND_AREAS_HPP
3 
4 #include "globals.hpp"
6 
7 // Volume- and Area-related Host Views. Should find a different location for these so that these unused views aren't sent to GPU
9  View<double*,CLayout,HostType> tr_area_h;
10  View<double*,CLayout,HostType> tr_vol_h;
11  View<double**,CLayout,HostType> node_vol_ff_h; // Default to midplane, for now
12  View<double**,CLayout,HostType> node_vol_ff_l_h; // Field following volume for left plane nodes
13  View<double**,CLayout,HostType> node_vol_ff_r_h; // Field following volume for right plane nnodes
14  View<double*,CLayout,HostType> node_vol_nearest_h;
15  View<double*,CLayout,HostType> node_vol_h;
16  View<double*,CLayout,HostType> node_area_h;
17  View<double*,CLayout,HostType> vol00_h;
18 
20 
21  VolumesAndAreas(int ntriangle_in, int nnode_in, int npsi00_in);
22 
23  void set_fortran_ptrs() const;
24 
25  bool saved_file_exists(const std::string& input_dir) const;
26 
27  void read(const DomainDecomposition<DeviceType>& pol_decomp, bool is_axisymmetric, const std::string& input_dir);
28 
29  void write(const DomainDecomposition<DeviceType>& pol_decomp, bool is_axisymmetric) const;
30 };
31 
32 #endif
void write(const DomainDecomposition< DeviceType > &pol_decomp, bool is_axisymmetric) const
Definition: volumes_and_areas.cpp:130
bool saved_file_exists(const std::string &input_dir) const
Definition: volumes_and_areas.cpp:53
View< double *, CLayout, HostType > vol00_h
Definition: volumes_and_areas.hpp:17
View< double *, CLayout, HostType > node_area_h
Definition: volumes_and_areas.hpp:16
void read(const DomainDecomposition< DeviceType > &pol_decomp, bool is_axisymmetric, const std::string &input_dir)
Definition: volumes_and_areas.cpp:66
Definition: volumes_and_areas.hpp:8
View< double **, CLayout, HostType > node_vol_ff_l_h
Definition: volumes_and_areas.hpp:12
View< double *, CLayout, HostType > tr_area_h
Definition: volumes_and_areas.hpp:9
View< double *, CLayout, HostType > tr_vol_h
Definition: volumes_and_areas.hpp:10
View< double *, CLayout, HostType > node_vol_h
Definition: volumes_and_areas.hpp:15
View< double **, CLayout, HostType > node_vol_ff_r_h
Definition: volumes_and_areas.hpp:13
View< double *, CLayout, HostType > node_vol_nearest_h
Definition: volumes_and_areas.hpp:14
VolumesAndAreas()
Definition: volumes_and_areas.hpp:19
View< double **, CLayout, HostType > node_vol_ff_h
Definition: volumes_and_areas.hpp:11
void set_fortran_ptrs() const
Definition: volumes_and_areas.cpp:33