|
IBAMR
IBAMR version 0.19.
|
#include <IndexVariable.h>

Public Member Functions | |
| IndexVariable (const std::string &name) | |
| virtual | ~IndexVariable () |
| bool | fineBoundaryRepresentsVariable () const |
| bool | dataLivesOnPatchBorder () const |
| int | getInstanceIdentifier () const |
| const std::string & | getName () const |
| void | setPatchDataFactory (tbox::Pointer< PatchDataFactory< DIM > > factory) |
| tbox::Pointer< PatchDataFactory< DIM > > | getPatchDataFactory () const |
Static Public Member Functions | |
| static int | getCurrentMaximumInstanceNumber () |
Private Member Functions | |
| IndexVariable (const IndexVariable< DIM, TYPE, BOX_GEOMETRY > &) | |
| void | operator= (const IndexVariable< DIM, TYPE, BOX_GEOMETRY > &) |
Private Attributes | |
| std::string | d_name |
| int | d_instance |
| tbox::Pointer< PatchDataFactory< DIM > > | d_factory |
Static Private Attributes | |
| static int | s_instance_counter |
Class IndexVariable<DIM,TYPE,BOX_GEOMETRY> is a templated variable class used to define quantities that exist on an irregular cell-centered index set. The template parameter TYPE defines the storage at each index location. For example, this class is used to represent embedded boundary features as a regular patch data type using the BoundaryCell class as the template type. The template parameter BOX_GEOMETRY allows IndexVariables to be instantiated with a provided centering and geometry in index space via a BoxGeometry (e.g. CellGeometry, NodeGeometry).
Please consult the README file in the index data source directory for instructions on using this class to provide other irregular index set types.
| SAMRAI::pdat::IndexVariable< DIM, TYPE, BOX_GEOMETRY >::IndexVariable | ( | const std::string & | name | ) |
Create an index variable object with the specified name.
|
virtual |
Virtual destructor for index variable objects.
|
private |
|
inlinevirtual |
Return true so that the index data quantities will always be treated as cell- centered quantities as far as communication is concerned. Note that this is really artificial since the cell data index space matches the cell-centered index space for AMR patches. Thus, cell data does not live on patch borders and so there is no ambiguity reagrding coarse-fine interface values.
Implements SAMRAI::hier::Variable< DIM >.
|
inlinevirtual |
Return false since the index data index space matches the cell-centered index space for AMR patches. Thus, index data does not live on patch borders.
Implements SAMRAI::hier::Variable< DIM >.
|
private |
|
staticinherited |
Return the current maximum instance number over all variable objects. The instance identifier returned from each variable objhect is guaranteed to be between 0 and this number minus one. Note that this number changes as new variable instances are created.
|
inherited |
Return the instance identifier for this particular variable object. The instance identifiers are unique integers numbered starting from zero.
|
inherited |
Return the name assigned to this variable.
|
inherited |
Set the patch data factory object. Normally, the factory is set in the constructor, but this member function enables the factory to be changed later in the lifetime of the variable.
|
inherited |
Return a non-const pointer to a patch data factory that will be used to instantiate instances of this variable on the patches. The factory returned will have been set by the variable subclasses.
|
privateinherited |
|
privateinherited |
|
privateinherited |
|
staticprivateinherited |
1.8.17