21 void extend(
double inner_ext,
double outer_ext){
30 const View<int*,CLayout,DeviceType>& num_t_node,
const View<int**,CLayout,DeviceType>& tr_node,
32 constexpr
double epsilon = 1.0e-8;
50 for (
int j=0; j<num_t_node(i); j++){
51 int itr = tr_node(j,i) + 1;
52 for(
int ip=0; ip<3; ip++){
60 for(
int j=0; j<grid.
nwall; j++){
77 return exclude_node(magnetic_field, grid, num_t_node, tr_node, settings, i);
KOKKOS_INLINE_FUNCTION RZPair get_wall_rz(int i_wall) const
Definition: grid.tpp:295
KOKKOS_INLINE_FUNCTION double get_dist2_from_node(const int inode, const RZPair x) const
Definition: plane.tpp:929
VertexList get_excluded_vertex_list(const MagneticField< DeviceType > &magnetic_field, const Grid< DeviceType > &grid, const View< int *, CLayout, DeviceType > &num_t_node, const View< int **, CLayout, DeviceType > &tr_node, const BoundarySettings &settings)
Definition: boundary.hpp:74
double out_bd_psi_priv1
Definition: boundary.hpp:11
Definition: magnetic_field.hpp:12
bool excl_sep_leg
Definition: boundary.hpp:19
double out_bd_psi_priv2
Definition: boundary.hpp:12
KOKKOS_INLINE_FUNCTION bool is_above_xpt2_tangent(double r, double z) const
Definition: magnetic_field.tpp:13
int nwall
Definition: grid.hpp:173
Definition: grid_structs.hpp:28
Definition: boundary.hpp:81
bool excl_wall
Definition: boundary.hpp:18
bool excl_near_wall
Definition: boundary.hpp:17
bool excl_private
Definition: boundary.hpp:16
Kokkos::View< double *, Kokkos::LayoutRight, Device > psi
An array of psi coordinates.
Definition: grid.hpp:179
KOKKOS_INLINE_FUNCTION void get_rz_coordinates(const int inode, double &r, double &z) const
Definition: grid.tpp:285
Definition: boundary.hpp:8
Boundary()
Definition: boundary.hpp:85
KOKKOS_INLINE_FUNCTION bool node_is_on_wall(const int inode) const
Definition: plane.tpp:830
KOKKOS_INLINE_FUNCTION int get_node_index(int triangle_index, int tri_vertex_index) const
Definition: grid.tpp:158
double out_bd_psi
Definition: boundary.hpp:10
KOKKOS_INLINE_FUNCTION bool is_below_xpt_tangent(double r, double z) const
Definition: magnetic_field.tpp:8
double in_bd_psi
Definition: boundary.hpp:9
void extend(double inner_ext, double outer_ext)
Definition: boundary.hpp:21
KOKKOS_INLINE_FUNCTION bool node_is_in_region_1_or_2_no_wall(const int inode) const
Definition: grid.tpp:202
bool excl_inner
Definition: boundary.hpp:14
Definition: magnetic_field.F90:1
Definition: vertex_list.hpp:53
bool excl_outer
Definition: boundary.hpp:15
Boundary(const MagneticField< DeviceType > &magnetic_field, const Grid< DeviceType > &grid, const View< int *, CLayout, DeviceType > &num_t_node, const View< int **, CLayout, DeviceType > &tr_node, const BoundarySettings &settings)
Definition: boundary.hpp:87
static KOKKOS_INLINE_FUNCTION bool exclude_node(const MagneticField< DeviceType > &magnetic_field, const Grid< DeviceType > &grid, const View< int *, CLayout, DeviceType > &num_t_node, const View< int **, CLayout, DeviceType > &tr_node, const BoundarySettings &s, int i)
Definition: boundary.hpp:29
Plane< Device > midplane
Definition: grid.hpp:163
int nnode
Number of grid nodes.
Definition: grid.hpp:168
KOKKOS_INLINE_FUNCTION bool node_is_on_separatrix_leg(const MagneticField< Device > &magnetic_field, const int inode) const
Definition: plane.tpp:875
double bd_ext_near_wall
Definition: boundary.hpp:13