#include <source/hierarchy/patches/BoundaryLookupTable.h>
Public Member Functions | |
const tbox::Array< int > & | getDirections (const int loc, const int codim) const |
Return array of active directions for specific case. | |
const tbox::Array< int > & | getMaxLocationIndices () const |
Returns array containd maximum locations for each codimension. | |
bool | isLower (const int loc, const int codim, const int dim) const |
Determines if boundary is lower boundary. | |
bool | isUpper (const int loc, const int codim, const int index) const |
Determines if boundary is upper boundary. | |
int | mapLocationIndex (const int loc) const |
execute the mapping between original numbering and new scheme | |
Static Public Member Functions | |
static BoundaryLookupTable< DIM > * | getLookupTable () |
Return pointer to singleton instance of the boundary lookup table. | |
static void | freeLookupTable () |
Deallocate the BoundaryLookupTable<DIM> instance. | |
static void | setUsingOriginalLocations (const bool use_original) |
Set the lookup table to return original numbering scheme. | |
Protected Member Functions | |
BoundaryLookupTable () | |
~BoundaryLookupTable () |
|
The constructor for BoundaryLookupTable<DIM> is protected. Consistent with the definition of a Singleton class, only the database object has access to the constructor for the class. The constructor initializes the state of lookup table contents. |
|
The destructor for BoundaryLookupTable<DIM> is protected. See the comments for the constructor. The destructor deallocates lookup table contents. |
|
Return pointer to singleton instance of the boundary lookup table. Note that when the database is accessed for the first time, the Singleton instance is registered with the ShutdownRegistry class which destroys such objects at program completion. Thus, users of this class do not explicitly allocate or deallocate the Singleton instance.
|
|
Deallocate the BoundaryLookupTable<DIM> instance. It is not necessary to call this function at program termination, since it is automatically called by the ShutdownRegistry class. |
|
Set the lookup table to return original numbering scheme. For codimension 2 in 3-dimensional problems, the numbering scheme for the location indices of BoundaryBox has been changed. To use the original numbering scheme for backward compatibility, call this static function with the argument set to true;
|
|
Return array of active directions for specific case. Returns integer array of length codim of the active directions for the boundary of codimension codim indexed by loc.
|
|
Returns array containd maximum locations for each codimension. Returns integer array of length DIM of the maximum limits, for each codimension, of the location indicies. |
|
Determines if boundary is lower boundary. Returns true if the boundary type of codimension codim indexed by loc is a lower boundary in the specified dimension.
|
|
Determines if boundary is upper boundary. Returns true if the boundary type of codimension codim indexed by loc is a upper boundary in the specified dimension.
|
|
execute the mapping between original numbering and new scheme For codimension 2 in 3 dimensions, maps the value of the argument from the original numbering scheme to the new scheme, or vice versa, and returns the mapped value.
|