#include <source/patchdata/side/SideVariable.h>
Inheritance diagram for SAMRAI::pdat::SideVariable< DIM, TYPE >:
Public Member Functions | |
SideVariable (const string &name, int depth=1, bool fine_boundary_represents_var=true, int direction=-1) | |
virtual | ~SideVariable () |
const hier::IntVector< DIM > & | getDirectionVector () const |
bool | fineBoundaryRepresentsVariable () const |
bool | dataLivesOnPatchBorder () const |
[ l0 : u0+1 , l1 : u1 , l2 : u2 , d ] , [ l0 : u0 , l1 : u1+1 , l2 : u2 , d ] , [ l0 : u0 , l1 : u1 , l2 : u2+1 , d ] , *
IMPORTANT: The class FaceVariable<DIM> and associated classes define the same storage as this side variable class, except that the indices are permuted in the face data type.
Note that it is possible to create a side variable to allocate and manage data for cell sides associated with a single coordinate direction only. See the constructor for more information.
|
Create a side variable object having properties specified by the name, depth (i.e., number of data values at each index location), coarse-fine interface representation, and coordinate direction information. Default arguments are provided for the last three. The default depth is one. The fine boundary representation boolean indicates which values (either coarse or fine) take precedence during coarsen and refine operations. The default state is that fine data values take precedence on coarse-fine interfaces. The default data allocation scheme is that side data will be allocated for all coordinate directions (i.e., -1). If this is desired, then the direction argument may be omitted. If an integer direction argument is specified, the only data for that direction will be maintained and managed for this variable (if not -1). |
|
Virtual destructor for side variable objects. |
|
Return constant reference to vector describing which coordinate directions have data associated with this side variable object. A vector entry of zero indicates that there is no data array allocated for the corresponding coordinate direction for side data created via this side variable object. A non-zero value indicates that a valid data array will be allocated for that coordinate direction. |
|
Return a boolean value indicating how data for the side variable will be treated on coarse-fine interfaces. True (default case set in constructor) indicates that fine patch values take precedence. False indicates that values on fine patches at a coarse-fine interface should be interpolated from coarser level values. Implements SAMRAI::hier::Variable< DIM >. |
|
Return true since the side data index space extends beyond the interior of patches. That is, side data lives on patch borders. Implements SAMRAI::hier::Variable< DIM >. |