IBAMR  IBAMR version 0.19.
Public Member Functions | List of all members
SAMRAI::hier::BasePatchLevel< DIM > Class Template Referenceabstract

#include <ibamr/LSInitStrategy.h>

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

Public Member Functions

 BasePatchLevel ()
 
virtual ~BasePatchLevel ()
 
virtual int getLevelNumber () const =0
 
virtual void allocatePatchData (const int id, const double timestamp=0.0, tbox::Pointer< tbox::Arena > pool=NULL)=0
 
virtual void allocatePatchData (const hier::ComponentSelector &components, const double timestamp=0.0, tbox::Pointer< tbox::Arena > pool=NULL)=0
 
virtual void deallocatePatchData (const int id)=0
 
virtual void deallocatePatchData (const hier::ComponentSelector &components)=0
 
virtual void setTime (const double timestamp, const int id)=0
 
virtual void setTime (const double timestamp, const hier::ComponentSelector &components)=0
 
virtual void setTime (const double timestamp)=0
 
virtual const hier::IntVector< DIM > & getRatio () const =0
 

Detailed Description

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

Class BasePatchLevel in a virtual base class that provides an abstract interface for a patch level. This allows higher-level classes in SAMRAI and in applications that use SAMRAI to interface with a level in an abstract manner without knowing whether it is a PatchLevel representing a level on a rectangular domain or if it is a level that exists, for example, in a multiblock domain.

See also
hier::BasePatchHierarchy
hier::PatchLevel
hier::Patch

Constructor & Destructor Documentation

◆ BasePatchLevel()

template<int DIM>
SAMRAI::hier::BasePatchLevel< DIM >::BasePatchLevel ( )

Default constructor. BasePatchLevel must be initialized before it can be used.

◆ ~BasePatchLevel()

template<int DIM>
virtual SAMRAI::hier::BasePatchLevel< DIM >::~BasePatchLevel ( )
virtual

The virtual destructor for patch level deallocates all patches.

Member Function Documentation

◆ getLevelNumber()

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

Return the number of this level in a hierarchy, or the number of a hierarchy level matching the index space of this level. If this level does not align with the index space of a level in the hierarchy, then this value is -1. When the level is in a hierarchy, the return value os the number of the level in the hierarchy. See member function inHierarchy() below.

Implemented in SAMRAI::hier::MultiblockPatchLevel< DIM >.

◆ allocatePatchData() [1/2]

template<int DIM>
virtual void SAMRAI::hier::BasePatchLevel< DIM >::allocatePatchData ( const int  id,
const double  timestamp = 0.0,
tbox::Pointer< tbox::Arena pool = NULL 
)
pure virtual

Allocate the specified component on all patches. If no memory arena is specified, then the standard memory arena will be used.

Implemented in SAMRAI::hier::MultiblockPatchLevel< DIM >.

◆ allocatePatchData() [2/2]

template<int DIM>
virtual void SAMRAI::hier::BasePatchLevel< DIM >::allocatePatchData ( const hier::ComponentSelector components,
const double  timestamp = 0.0,
tbox::Pointer< tbox::Arena pool = NULL 
)
pure virtual

Allocate the specified components on all patches. If no memory arena is specified, then the standard memory arena will be used.

Implemented in SAMRAI::hier::MultiblockPatchLevel< DIM >.

◆ deallocatePatchData() [1/2]

template<int DIM>
virtual void SAMRAI::hier::BasePatchLevel< DIM >::deallocatePatchData ( const int  id)
pure virtual

Deallocate the specified component on all patches. This component will need to be reallocated before its next use.

Implemented in SAMRAI::hier::MultiblockPatchLevel< DIM >.

◆ deallocatePatchData() [2/2]

template<int DIM>
virtual void SAMRAI::hier::BasePatchLevel< DIM >::deallocatePatchData ( const hier::ComponentSelector components)
pure virtual

Deallocate the specified components on all patches. These components will need to be reallocated before their next use.

Implemented in SAMRAI::hier::MultiblockPatchLevel< DIM >.

◆ setTime() [1/3]

template<int DIM>
virtual void SAMRAI::hier::BasePatchLevel< DIM >::setTime ( const double  timestamp,
const int  id 
)
pure virtual

Set the simulation time for the specified patch component.

Implemented in SAMRAI::hier::MultiblockPatchLevel< DIM >.

◆ setTime() [2/3]

template<int DIM>
virtual void SAMRAI::hier::BasePatchLevel< DIM >::setTime ( const double  timestamp,
const hier::ComponentSelector components 
)
pure virtual

Set the simulation time for the specified patch components.

Implemented in SAMRAI::hier::MultiblockPatchLevel< DIM >.

◆ setTime() [3/3]

template<int DIM>
virtual void SAMRAI::hier::BasePatchLevel< DIM >::setTime ( const double  timestamp)
pure virtual

Set the simulation time for all allocated patch components.

Implemented in SAMRAI::hier::MultiblockPatchLevel< DIM >.

◆ getRatio()

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

Return a const reference to the vector ratio between the index space of this patch level and that of a reference level in AMR hierarchy (typically, level zero). Specifically, this is the ratio passed to the constructor.

Implemented in SAMRAI::hier::MultiblockPatchLevel< DIM >.


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