![]() |
Block-Structured AMR Software Framework
|
Boundary condition record storing low/high face types per coordinate. More...
#include <AMReX_BCRec.H>
Public Member Functions | |
| __host__ __device__ | BCRec () noexcept=default |
Default constructor leaves all face types set to BCType::bogus. | |
| __host__ __device__ | BCRec (int loX, int loY, int loZ, int hiX, int hiY, int hiZ) noexcept |
| Construct a record with explicit low/high face types. | |
| __host__ __device__ | BCRec (const int *a_lo, const int *a_hi) noexcept |
| Construct from arrays of low/high face types. | |
| __host__ __device__ | BCRec (const Box &bx, const Box &domain, const BCRec &bc_domain) noexcept |
| Initialize boundary faces relative to a domain record. | |
| __host__ __device__ void | setLo (int dir, int bc_val) noexcept |
Set the low-face boundary for dimension dir. | |
| __host__ __device__ void | setHi (int dir, int bc_val) noexcept |
Set the high-face boundary for dimension dir. | |
| __host__ __device__ void | set (Orientation face, int bc_val) noexcept |
| Explicitly set the boundary value for a given face. | |
| __host__ __device__ const int * | vect () const &noexcept |
| Return pointer to the internal boundary array (low faces, then high faces). Legacy name for Fortran callback compatibility. | |
| const int * | vect () &&=delete |
| __host__ __device__ const int * | data () const &noexcept |
| Equivalent to vect(); returns the same pointer to the internal boundary array. | |
| const int * | data () &&=delete |
| __host__ __device__ const int * | lo () const &noexcept |
| Return pointer to the low-end face array. | |
| const int * | lo () &&=delete |
| __host__ __device__ const int * | hi () const &noexcept |
| Return pointer to the high-end face array. | |
| const int * | hi () &&=delete |
| __host__ __device__ int | lo (int dir) const noexcept |
Return the low-end boundary code for dimension dir. | |
| __host__ __device__ int | hi (int dir) const noexcept |
Return the high-end boundary code for dimension dir. | |
| __host__ __device__ bool | operator== (const BCRec &rhs) const noexcept |
| Compare two records for identical boundary condition values. | |
| __host__ __device__ bool | operator!= (const BCRec &rhs) const noexcept |
| Logical negation of operator==. | |
Friends | |
| std::ostream & | operator<< (std::ostream &, const BCRec &) |
| ASCII write to ostream. | |
Boundary condition record storing low/high face types per coordinate.
BCRec has standard layout — this is a deliberate design constraint that must be preserved for compatibility with Fortran code, host/device transfers, and std::memcpy-based operations.
|
defaultnoexcept |
Default constructor leaves all face types set to BCType::bogus.
|
inlinenoexcept |
Construct a record with explicit low/high face types.
The low-face values are provided first, followed by the high-face values.
| loX | Low-face boundary type in the x direction. |
| loY | Low-face boundary type in the y direction (used when AMREX_SPACEDIM >= 2). |
| loZ | Low-face boundary type in the z direction (used when AMREX_SPACEDIM >= 3). |
| hiX | High-face boundary type in the x direction. |
| hiY | High-face boundary type in the y direction (used when AMREX_SPACEDIM >= 2). |
| hiZ | High-face boundary type in the z direction (used when AMREX_SPACEDIM >= 3). |
Construct from arrays of low/high face types.
| a_lo | Pointer to AMREX_SPACEDIM low-face entries. |
| a_hi | Pointer to AMREX_SPACEDIM high-face entries. |
|
inlinenoexcept |
Initialize boundary faces relative to a domain record.
Faces coincident with the domain inherit the boundary from bc_domain; interior faces default to BCType::int_dir.
| bx | Box whose faces inherit domain or interior boundaries. |
| domain | Domain box describing the physical region. |
| bc_domain | Boundary record providing domain face types. |
|
delete |
|
inlinenoexcept |
Equivalent to vect(); returns the same pointer to the internal boundary array.
|
delete |
|
inlinenoexcept |
Return pointer to the high-end face array.
Return the high-end boundary code for dimension dir.
|
delete |
|
inlinenoexcept |
Return pointer to the low-end face array.
Return the low-end boundary code for dimension dir.
|
inlinenoexcept |
Logical negation of operator==.
|
inlinenoexcept |
Compare two records for identical boundary condition values.
|
inlinenoexcept |
Explicitly set the boundary value for a given face.
| face | Orientation describing the face. |
| bc_val | Boundary type code. |
Set the high-face boundary for dimension dir.
| dir | Coordinate direction. |
| bc_val | Boundary type code. |
Set the low-face boundary for dimension dir.
| dir | Coordinate direction. |
| bc_val | Boundary type code. |
|
delete |
|
inlinenoexcept |
Return pointer to the internal boundary array (low faces, then high faces). Legacy name for Fortran callback compatibility.
|
friend |
ASCII write to ostream.