8 #ifndef WARPX_SOURCE_EMBEDDEDBOUNDARY_WARPXFACEINFOBOX_H 9 #define WARPX_SOURCE_EMBEDDEDBOUNDARY_WARPXFACEINFOBOX_H 11 #include <AMReX_Gpu.H> 12 #include <AMReX_BaseFab.H> 20 amrex::Gpu::DeviceVector<amrex::Real>
area;
22 amrex::Gpu::DeviceVector<int>
inds;
37 if(i == -1 && j == -1){
38 *(neigh_face_ptr + ind) =
nw;
39 }
else if(i == -1 && j == 0){
40 *(neigh_face_ptr + ind) =
w;
41 }
else if(i == -1 && j == 1){
42 *(neigh_face_ptr + ind) =
sw;
43 }
else if(i == 0 && j == -1){
44 *(neigh_face_ptr + ind) =
n;
45 }
else if(i == 0 && j == 1){
46 *(neigh_face_ptr + ind) =
s;
47 }
else if(i == 1 && j == -1){
48 *(neigh_face_ptr + ind) =
ne;
49 }
else if(i == 1 && j == 0){
50 *(neigh_face_ptr + ind) =
e;
51 }
else if(i == 1 && j == 1){
52 *(neigh_face_ptr + ind) = se;
61 amrex::Array1D<int, 0, 1> res;
63 if(mask == Neighbours::nw){
69 }
else if(mask == Neighbours::sw){
78 }
else if(mask == Neighbours::ne){
81 }
else if(mask == Neighbours::e){
84 }
else if(mask == Neighbours::se){
93 #endif //WARPX_SOURCE_EMBEDDEDBOUNDARY_WARPXFACEINFOBOX_H Definition: WarpXFaceInfoBox.H:17
tuple w
Definition: yt3d_mpi.py:43
amrex::BaseFab< int * > inds_pointer
Definition: WarpXFaceInfoBox.H:26
int vecs_size
Definition: WarpXFaceInfoBox.H:28
Definition: WarpXFaceInfoBox.H:17
amrex::BaseFab< int > size
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:60
amrex::Gpu::DeviceVector< Neighbours > neigh_faces
Definition: WarpXFaceInfoBox.H:19
Neighbours
Definition: WarpXFaceInfoBox.H:17
amrex::Gpu::DeviceVector< int > inds
Definition: WarpXFaceInfoBox.H:22
Definition: WarpXFaceInfoBox.H:17
Definition: WarpXFaceInfoBox.H:16
int n
Definition: run_libensemble_on_warpx.py:68
i
Definition: check_interp_points_and_weights.py:171
Definition: WarpXFaceInfoBox.H:17
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:35
s
Definition: plot_results.py:103
Definition: WarpXFaceInfoBox.H:17
amrex::Gpu::DeviceVector< amrex::Real > area
Definition: WarpXFaceInfoBox.H:20
Definition: WarpXFaceInfoBox.H:17
Definition: WarpXFaceInfoBox.H:17
Definition: WarpXFaceInfoBox.H:17