8 #ifndef WARPX_SOURCE_EMBEDDEDBOUNDARY_WARPXFACEINFOBOX_H
9 #define WARPX_SOURCE_EMBEDDEDBOUNDARY_WARPXFACEINFOBOX_H
39 if(
i == -1 && j == -1){
40 *(neigh_face_ptr + ind) =
nw;
41 }
else if(
i == -1 && j == 0){
42 *(neigh_face_ptr + ind) =
w;
43 }
else if(
i == -1 && j == 1){
44 *(neigh_face_ptr + ind) =
sw;
45 }
else if(
i == 0 && j == -1){
46 *(neigh_face_ptr + ind) =
n;
47 }
else if(
i == 0 && j == 1){
48 *(neigh_face_ptr + ind) =
s;
49 }
else if(
i == 1 && j == -1){
50 *(neigh_face_ptr + ind) =
ne;
51 }
else if(
i == 1 && j == 0){
52 *(neigh_face_ptr + ind) =
e;
53 }
else if(
i == 1 && j == 1){
54 *(neigh_face_ptr + ind) =
se;
65 if(
mask == Neighbours::nw){
71 }
else if(
mask == Neighbours::sw){
74 }
else if(
mask == Neighbours::n){
77 }
else if(
mask == Neighbours::s){
80 }
else if(
mask == Neighbours::ne){
83 }
else if(
mask == Neighbours::e){
86 }
else if(
mask == Neighbours::se){
#define AMREX_GPU_HOST_DEVICE
i
Definition: check_interp_points_and_weights.py:174
tuple w
Definition: yt3d_mpi.py:46
Definition: WarpXFaceInfoBox.H:18
int vecs_size
Definition: WarpXFaceInfoBox.H:30
static AMREX_GPU_HOST_DEVICE void addConnectedNeighbor(int i, int j, int ind, Neighbours *neigh_face_ptr)
add the neighbor i, j to the list of intruded neighbors.
Definition: WarpXFaceInfoBox.H:37
amrex::BaseFab< int > size
Definition: WarpXFaceInfoBox.H:26
amrex::BaseFab< int * > inds_pointer
Definition: WarpXFaceInfoBox.H:28
amrex::Gpu::DeviceVector< int > inds
Definition: WarpXFaceInfoBox.H:24
static AMREX_GPU_HOST_DEVICE amrex::Array1D< int, 0, 1 > uint8_to_inds(Neighbours mask)
writes into i_face and j_face the intruded neighbors indices;
Definition: WarpXFaceInfoBox.H:62
amrex::Gpu::DeviceVector< Neighbours > neigh_faces
Definition: WarpXFaceInfoBox.H:21
amrex::Gpu::DeviceVector< amrex::Real > area
Definition: WarpXFaceInfoBox.H:22
Neighbours
Definition: WarpXFaceInfoBox.H:19
@ w
Definition: WarpXFaceInfoBox.H:19
@ s
Definition: WarpXFaceInfoBox.H:19
@ ne
Definition: WarpXFaceInfoBox.H:19
@ n
Definition: WarpXFaceInfoBox.H:19
@ se
Definition: WarpXFaceInfoBox.H:19
@ sw
Definition: WarpXFaceInfoBox.H:19
@ nw
Definition: WarpXFaceInfoBox.H:19
@ e
Definition: WarpXFaceInfoBox.H:19