WarpX
Functions
WarpXFaceExtensions.H File Reference

Go to the source code of this file.

Functions

AMREX_GPU_DEVICE int ComputeNBorrowOneFaceExtension (const amrex::Dim3 cell, const amrex::Real S_ext, const amrex::Array4< amrex::Real > &S_red, const amrex::Array4< int > &flag_info_face, const amrex::Array4< int > &flag_ext_face, int idim)
 For the face of cell pointing in direction idim, return the number of faces we need to intrude with the one-way extension. Returns only one or zero: one if the face can be extended with the the one-way extension, zeros if it can't. More...
 
AMREX_GPU_DEVICE int ComputeNBorrowEightFacesExtension (const amrex::Dim3 cell, const amrex::Real S_ext, const amrex::Array4< amrex::Real > &S_red, const amrex::Array4< amrex::Real > &S, const amrex::Array4< int > &flag_info_face, int idim)
 For the face of cell pointing in direction idim, return the number of faces we need to intrude with the eight-ways extension. More...
 

Function Documentation

◆ ComputeNBorrowEightFacesExtension()

AMREX_GPU_DEVICE int ComputeNBorrowEightFacesExtension ( const amrex::Dim3  cell,
const amrex::Real  S_ext,
const amrex::Array4< amrex::Real > &  S_red,
const amrex::Array4< amrex::Real > &  S,
const amrex::Array4< int > &  flag_info_face,
int  idim 
)

For the face of cell pointing in direction idim, return the number of faces we need to intrude with the eight-ways extension.

Parameters
[in]cellDim3 storing the indices of the face to extended
[in]S_extamount of area needed for the extension
[in]S_redArray4 storing the amount of area each face can still give away
[in]SArray4 storing the area of face
[in]flag_info_faceArray4 storing face information
[in]idimnormal direction to the face in consideration (0 for x, 1 for y, 2 for z)

◆ ComputeNBorrowOneFaceExtension()

AMREX_GPU_DEVICE int ComputeNBorrowOneFaceExtension ( const amrex::Dim3  cell,
const amrex::Real  S_ext,
const amrex::Array4< amrex::Real > &  S_red,
const amrex::Array4< int > &  flag_info_face,
const amrex::Array4< int > &  flag_ext_face,
int  idim 
)

For the face of cell pointing in direction idim, return the number of faces we need to intrude with the one-way extension. Returns only one or zero: one if the face can be extended with the the one-way extension, zeros if it can't.

Parameters
[in]cellDim3 storing the indices of the face to extended
[in]S_extamount of area needed for the extension
[in]S_redArray4 storing the amount of area each face can still give away
[in]flag_info_faceArray4 storing face information
[in]flag_ext_faceArray4 storing face information
[in]idimnormal direction to the face in consideration (0 for x, 1 for y, 2 for z)