22 View<RZPair*, HostType>
x;
23 View<int*, HostType>
rgn;
30 View<int*, HostType>
i_x;
43 View<double*, HostType>
psiN;
45 void convert_to_x_rgn_format(
const View<double**, CLayout, HostType>& tmp_nodes, View<RZPair*, HostType>&
x, View<int*, HostType>&
rgn,
bool is_stellarator);
49 View<int*, HostType>
pack_scalars(
int max_nodes_on_surface,
int n_xpts,
int n_separatrices)
const;
50 void unpack_scalars(
const View<int*, HostType>& scalars,
int& max_nodes_on_surface,
int& n_xpts,
int& n_separatrices);
62 PlaneFiles(
const std::string& node_file,
const std::string& element_file,
const std::string& flx_aif_file,
bool is_stellarator,
const MPI_Comm& comm);
71 void construct_hex_grid(
int nshells,
double raxis,
double zaxis,
double rscale,
double zscale);
85 View<Equil::XPoint*, HostType>
get_xpts()
const;
91 View<double*, HostType>
get_psiN()
const;
RZPair get_reference_point() const
Definition: grid_files.cpp:678
Definition: grid_files.hpp:68
FileRegion
Definition: grid_files.hpp:15
static constexpr GridCreateOpt Hexagonal
Definition: grid_files.hpp:96
View< int **, CLayout, HostType > surf_idx
Definition: grid_files.hpp:41
static constexpr GridCreateOpt Circular
Definition: grid_files.hpp:97
View< Equil::XPoint *, HostType > get_xpts() const
Definition: grid_files.cpp:663
int n_planes() const
Definition: grid_files.cpp:827
PlaneFiles()
Definition: grid_files.hpp:53
View< int *, HostType > non_aligned_vert
Definition: grid_files.hpp:38
RZPair get_axis() const
Definition: grid_files.cpp:673
Definition: NamelistReader.hpp:193
Definition: magnetic_field.hpp:12
View< int *, HostType > non_aligned_nsurf
Definition: grid_files.hpp:39
int ntriangles
Definition: grid_files.hpp:26
Definition: grid_files.hpp:94
int num_non_aligned
Definition: grid_files.hpp:37
void construct_circular_grid(int nshells, double raxis, double zaxis, double rscale, double zscale)
Definition: grid_files.cpp:478
const PlaneFiles & lplane() const
Definition: grid_files.cpp:815
int nsurfaces3a
Definition: grid_files.hpp:33
View< int *, HostType > nnodes_on_surface
Definition: grid_files.hpp:35
int n_specified_xpts() const
Definition: grid_files.cpp:659
View< int *, HostType > pack_scalars(int max_nodes_on_surface, int n_xpts, int n_separatrices) const
Definition: grid_files.cpp:33
Definition: grid_files.hpp:67
GridFiles(int nshells, double raxis, double zaxis, double rscale, double zscale, GridCreateOpt grid_opt=Hexagonal)
Definition: grid_files.cpp:689
Definition: grid_structs.hpp:28
int nsurfaces2
Definition: grid_files.hpp:33
std::vector< PlaneFiles > plane_files_vec
Definition: grid_files.hpp:99
const PlaneFiles & rplane() const
Definition: grid_files.cpp:823
const PlaneFiles & midplane() const
Definition: grid_files.cpp:819
Definition: my_mpi.hpp:19
View< int *, HostType > i_x
Definition: grid_files.hpp:30
Definition: grid_files.hpp:17
std::string ifile_int2str(int ifile) const
Definition: grid_files.cpp:697
int nsurfaces1
Definition: grid_files.hpp:33
static int nshells_from_nnodes(int nnodes)
Definition: grid_files.cpp:579
void convert_to_node_format(const View< int **, CLayout, HostType > &tmp_ele, View< Vertex *, HostType > &nodes)
Definition: grid_files.cpp:24
View< double *, HostType > psiN
An array of normalized psi coordinates temporarily needed for the stellarator version.
Definition: grid_files.hpp:43
void unpack_scalars(const View< int *, HostType > &scalars, int &max_nodes_on_surface, int &n_xpts, int &n_separatrices)
Definition: grid_files.cpp:50
GridCreateOpt
Definition: grid_files.hpp:66
View< double *, HostType > get_psiN() const
Definition: grid_files.cpp:683
View< int **, CLayout, HostType > non_aligned_surf_idx
Definition: grid_files.hpp:40
int nnodes
Definition: grid_files.hpp:21
void construct_hex_grid(int nshells, double raxis, double zaxis, double rscale, double zscale)
Definition: grid_files.cpp:362
int nsurfaces3b
Definition: grid_files.hpp:33
Definition: magnetic_field.F90:1
void convert_to_x_rgn_format(const View< double **, CLayout, HostType > &tmp_nodes, View< RZPair *, HostType > &x, View< int *, HostType > &rgn, bool is_stellarator)
Definition: grid_files.cpp:15
Definition: grid_files.hpp:13
double node_to_node_dist(RZPair a, RZPair b)
Definition: grid_files.cpp:465
void clear()
Definition: grid_files.cpp:831
View< int *, HostType > rgn
Definition: grid_files.hpp:23
int nsurfaces
Definition: grid_files.hpp:32
View< RZPair *, HostType > x
Definition: grid_files.hpp:22
static int nshells_from_nnodes(int nnodes)
Definition: grid_files.cpp:836
Definition: grid_files.hpp:16
View< int *, HostType > i_surf_separatrices
Definition: grid_files.hpp:34
View< Vertex *, HostType > nodes
Definition: grid_files.hpp:27
int sum_nnodes_on_surfaces
Definition: grid_files.hpp:36