#include <source/hierarchy/multiblock/MultiblockPatchLevel.h>
Inheritance diagram for SAMRAI::hier::MultiblockPatchLevel< DIM >:
Public Member Functions | |
MultiblockPatchLevel (tbox::Array< tbox::Pointer< hier::PatchLevel< DIM > > > &levels) | |
Constructor takes an array of pointers to patch levels. | |
~MultiblockPatchLevel () | |
tbox::Pointer< hier::PatchLevel< DIM > > | getPatchLevelForBlock (const int id) const |
Return a pointer to the hier::PatchLevel<DIM> associated with the id number. | |
void | allocatePatchData (const int id, const double timestamp=0.0, tbox::Pointer< tbox::Arena > pool=NULL) |
Allocate the specified component on all patches. If no memory arena is specified, then the standard memory arena will be used. | |
void | allocatePatchData (const hier::ComponentSelector &components, const double timestamp=0.0, tbox::Pointer< tbox::Arena > pool=NULL) |
Allocate the specified components on all patches. If no memory arena is specified, then the standard memory arena will be used. | |
void | deallocatePatchData (const int id) |
Deallocate the specified component on all patches. | |
void | deallocatePatchData (const hier::ComponentSelector &components) |
Deallocate the specified components on all patches. | |
void | setTime (const double timestamp, const int id) |
Set the simulation time for the specified patch component. | |
void | setTime (const double timestamp, const hier::ComponentSelector &components) |
Set the simulation time for the specified patch components. | |
void | setTime (const double timestamp) |
Set the simulation time for all allocated patch components. | |
int | getNumberOfBlocks () const |
Get the number of blocks in the multiblock domain. | |
int | getLevelNumber () const |
Get the level number of this level. | |
const hier::IntVector< DIM > & | getRatio () const |
Get the ratio to level zero of this level. |
SAMRAI::hier::MultiblockPatchLevel< DIM >::MultiblockPatchLevel | ( | tbox::Array< tbox::Pointer< hier::PatchLevel< DIM > > > & | levels | ) |
Constructor takes an array of pointers to patch levels.
levels | Array of pointers to hier::PatchLevel<DIM>. The array indices correspond to block numbers. Pointers in the array may be null. A null pointer indicates that the MultiblockPatchLevel does not represent any space in the block associated with its array index. |
SAMRAI::hier::MultiblockPatchLevel< DIM >::~MultiblockPatchLevel | ( | ) |
Destructor is uninteresting
tbox::Pointer< hier::PatchLevel< DIM > > SAMRAI::hier::MultiblockPatchLevel< DIM >::getPatchLevelForBlock | ( | const int | id | ) | const |
Return a pointer to the hier::PatchLevel<DIM> associated with the id number.
id | corresponds to the indexing of the array passed into the constructor. |
void SAMRAI::hier::MultiblockPatchLevel< DIM >::allocatePatchData | ( | const int | id, | |
const double | timestamp = 0.0 , |
|||
tbox::Pointer< tbox::Arena > | pool = NULL | |||
) | [virtual] |
Allocate the specified component on all patches. If no memory arena is specified, then the standard memory arena will be used.
id | A patch data id | |
timestamp | Simulation time | |
pool | A memory arena |
Implements SAMRAI::hier::BasePatchLevel< DIM >.
void SAMRAI::hier::MultiblockPatchLevel< DIM >::allocatePatchData | ( | const hier::ComponentSelector & | components, | |
const double | timestamp = 0.0 , |
|||
tbox::Pointer< tbox::Arena > | pool = NULL | |||
) | [virtual] |
Allocate the specified components on all patches. If no memory arena is specified, then the standard memory arena will be used.
components | A component selector defining a set of patch data id's | |
timestamp | Simulation time | |
pool | A memory arena |
Implements SAMRAI::hier::BasePatchLevel< DIM >.
void SAMRAI::hier::MultiblockPatchLevel< DIM >::deallocatePatchData | ( | const int | id | ) | [virtual] |
Deallocate the specified component on all patches.
id | Patch data id of data to be deallocated |
Implements SAMRAI::hier::BasePatchLevel< DIM >.
void SAMRAI::hier::MultiblockPatchLevel< DIM >::deallocatePatchData | ( | const hier::ComponentSelector & | components | ) | [virtual] |
Deallocate the specified components on all patches.
components | A component selector defining a set of patch data id's which indicate the data to be deallocated |
Implements SAMRAI::hier::BasePatchLevel< DIM >.
void SAMRAI::hier::MultiblockPatchLevel< DIM >::setTime | ( | const double | timestamp, | |
const int | id | |||
) | [virtual] |
Set the simulation time for the specified patch component.
timestamp | Simulation time | |
id | A patch data id |
Implements SAMRAI::hier::BasePatchLevel< DIM >.
void SAMRAI::hier::MultiblockPatchLevel< DIM >::setTime | ( | const double | timestamp, | |
const hier::ComponentSelector & | components | |||
) | [virtual] |
Set the simulation time for the specified patch components.
timestamp | Simulation time | |
components | A component selector defining a set of patch data id's |
Implements SAMRAI::hier::BasePatchLevel< DIM >.
void SAMRAI::hier::MultiblockPatchLevel< DIM >::setTime | ( | const double | timestamp | ) | [virtual] |
Set the simulation time for all allocated patch components.
timestamp | Simulation time |
Implements SAMRAI::hier::BasePatchLevel< DIM >.
int SAMRAI::hier::MultiblockPatchLevel< DIM >::getNumberOfBlocks | ( | ) | const |
Get the number of blocks in the multiblock domain.
int SAMRAI::hier::MultiblockPatchLevel< DIM >::getLevelNumber | ( | ) | const [virtual] |
const hier::IntVector< DIM > & SAMRAI::hier::MultiblockPatchLevel< DIM >::getRatio | ( | ) | const [virtual] |