WarpX
Loading...
Searching...
No Matches
FaceInfoBox Struct Reference

#include <WarpXFaceInfoBox.H>

Public Types

enum  Neighbours : uint8_t {
  n , s , e , w ,
  nw , ne , sw , se
}
 

Static Public Member Functions

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.
 
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;
 

Public Attributes

amrex::Gpu::DeviceVector< Neighboursneigh_faces
 
amrex::Gpu::DeviceVector< amrex::Real > area
 
amrex::Gpu::DeviceVector< int > inds
 
amrex::BaseFab< int > size
 
amrex::BaseFab< int * > inds_pointer
 
int vecs_size
 

Member Enumeration Documentation

◆ Neighbours

enum FaceInfoBox::Neighbours : uint8_t
Enumerator
nw 
ne 
sw 
se 

Member Function Documentation

◆ addConnectedNeighbor()

static AMREX_GPU_HOST_DEVICE void FaceInfoBox::addConnectedNeighbor ( int i,
int j,
int ind,
Neighbours * neigh_face_ptr )
inlinestatic

add the neighbor i, j to the list of intruded neighbors.

◆ uint8_to_inds()

static AMREX_GPU_HOST_DEVICE amrex::Array1D< int, 0, 1 > FaceInfoBox::uint8_to_inds ( Neighbours mask)
inlinestatic

writes into i_face and j_face the intruded neighbors indices;

Member Data Documentation

◆ area

amrex::Gpu::DeviceVector<amrex::Real> FaceInfoBox::area

◆ inds

amrex::Gpu::DeviceVector<int> FaceInfoBox::inds

◆ inds_pointer

amrex::BaseFab<int*> FaceInfoBox::inds_pointer

◆ neigh_faces

amrex::Gpu::DeviceVector<Neighbours> FaceInfoBox::neigh_faces

◆ size

amrex::BaseFab<int> FaceInfoBox::size

◆ vecs_size

int FaceInfoBox::vecs_size

The documentation for this struct was generated from the following file: