IBAMR  IBAMR version 0.19.
Public Member Functions | Private Attributes | List of all members
SAMRAI::hier::MultiblockPatchLevel< DIM > Class Template Reference

Class MultiblockPatchLevel<DIM> contains an array of hier::PatchLevel<DIM> that contains all of the patch levels that have the same level of refinement in a multiblock domain. More...

#include <MultiblockPatchLevel.h>

Inheritance diagram for SAMRAI::hier::MultiblockPatchLevel< DIM >:
Inheritance graph
[legend]

Public Member Functions

 MultiblockPatchLevel (tbox::Array< tbox::Pointer< hier::PatchLevel< DIM > > > &levels)
 Constructor takes an array of pointers to patch levels. More...
 
 ~MultiblockPatchLevel ()
 
tbox::Pointer< hier::PatchLevel< DIM > > getPatchLevelForBlock (const int id) const
 Return a pointer to the hier::PatchLevel<DIM> associated with the id number. More...
 
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. More...
 
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. More...
 
void deallocatePatchData (const int id)
 Deallocate the specified component on all patches. More...
 
void deallocatePatchData (const hier::ComponentSelector &components)
 Deallocate the specified components on all patches. More...
 
void setTime (const double timestamp, const int id)
 Set the simulation time for the specified patch component. More...
 
void setTime (const double timestamp, const hier::ComponentSelector &components)
 Set the simulation time for the specified patch components. More...
 
void setTime (const double timestamp)
 Set the simulation time for all allocated patch components. More...
 
int getNumberOfBlocks () const
 Get the number of blocks in the multiblock domain. More...
 
int getLevelNumber () const
 Get the level number of this level. More...
 
const hier::IntVector< DIM > & getRatio () const
 Get the ratio to level zero of this level. More...
 

Private Attributes

tbox::Array< tbox::Pointer< hier::PatchLevel< DIM > > > d_levels
 
int d_number_blocks
 

Detailed Description

template<int DIM>
class SAMRAI::hier::MultiblockPatchLevel< DIM >

See also
hier::PatchLevel
hier::MultiblockPatchHierarchy

Constructor & Destructor Documentation

◆ MultiblockPatchLevel()

Parameters
levelsArray 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.

◆ ~MultiblockPatchLevel()

Destructor is uninteresting

Member Function Documentation

◆ getPatchLevelForBlock()

template<int DIM>
tbox::Pointer< hier::PatchLevel<DIM> > SAMRAI::hier::MultiblockPatchLevel< DIM >::getPatchLevelForBlock ( const int  id) const
Parameters
idcorresponds to the indexing of the array passed into the constructor.

◆ allocatePatchData() [1/2]

template<int DIM>
void SAMRAI::hier::MultiblockPatchLevel< DIM >::allocatePatchData ( const int  id,
const double  timestamp = 0.0,
tbox::Pointer< tbox::Arena pool = NULL 
)
virtual
Parameters
idA patch data id
timestampSimulation time
poolA memory arena

Implements SAMRAI::hier::BasePatchLevel< DIM >.

◆ allocatePatchData() [2/2]

template<int DIM>
void SAMRAI::hier::MultiblockPatchLevel< DIM >::allocatePatchData ( const hier::ComponentSelector components,
const double  timestamp = 0.0,
tbox::Pointer< tbox::Arena pool = NULL 
)
virtual
Parameters
componentsA component selector defining a set of patch data id's
timestampSimulation time
poolA memory arena

Implements SAMRAI::hier::BasePatchLevel< DIM >.

◆ deallocatePatchData() [1/2]

template<int DIM>
void SAMRAI::hier::MultiblockPatchLevel< DIM >::deallocatePatchData ( const int  id)
virtual
Parameters
idPatch data id of data to be deallocated

Implements SAMRAI::hier::BasePatchLevel< DIM >.

◆ deallocatePatchData() [2/2]

template<int DIM>
void SAMRAI::hier::MultiblockPatchLevel< DIM >::deallocatePatchData ( const hier::ComponentSelector components)
virtual
Parameters
componentsA component selector defining a set of patch data id's which indicate the data to be deallocated

Implements SAMRAI::hier::BasePatchLevel< DIM >.

◆ setTime() [1/3]

template<int DIM>
void SAMRAI::hier::MultiblockPatchLevel< DIM >::setTime ( const double  timestamp,
const int  id 
)
virtual
Parameters
timestampSimulation time
idA patch data id

Implements SAMRAI::hier::BasePatchLevel< DIM >.

◆ setTime() [2/3]

template<int DIM>
void SAMRAI::hier::MultiblockPatchLevel< DIM >::setTime ( const double  timestamp,
const hier::ComponentSelector components 
)
virtual
Parameters
timestampSimulation time
componentsA component selector defining a set of patch data id's

Implements SAMRAI::hier::BasePatchLevel< DIM >.

◆ setTime() [3/3]

template<int DIM>
void SAMRAI::hier::MultiblockPatchLevel< DIM >::setTime ( const double  timestamp)
virtual
Parameters
timestampSimulation time

Implements SAMRAI::hier::BasePatchLevel< DIM >.

◆ getNumberOfBlocks()

template<int DIM>
int SAMRAI::hier::MultiblockPatchLevel< DIM >::getNumberOfBlocks ( ) const

◆ getLevelNumber()

template<int DIM>
int SAMRAI::hier::MultiblockPatchLevel< DIM >::getLevelNumber ( ) const
virtual

◆ getRatio()

template<int DIM>
const hier::IntVector<DIM>& SAMRAI::hier::MultiblockPatchLevel< DIM >::getRatio ( ) const
virtual

Member Data Documentation

◆ d_levels

template<int DIM>
tbox::Array< tbox::Pointer< hier::PatchLevel<DIM> > > SAMRAI::hier::MultiblockPatchLevel< DIM >::d_levels
private

◆ d_number_blocks

template<int DIM>
int SAMRAI::hier::MultiblockPatchLevel< DIM >::d_number_blocks
private

The documentation for this class was generated from the following file: