Class SAMRAIDataCache is a utility class for caching cloned SAMRAI patch data. Patch data are allocated as needed and should not be deallocated by the caller.
More...
#include </home/runner/work/IBAMR/IBAMR/ibtk/include/ibtk/SAMRAIDataCache.h>
Class SAMRAIDataCache is a utility class for caching cloned SAMRAI patch data. Patch data are allocated as needed and should not be deallocated by the caller.
◆ getCachedPatchDataIndex()
Gets the cached patch data index.
- Parameters
-
[in] | idx | The patch data index clone or lookup. |
- Returns
- The cached patch data index.
◆ getCoarsestLevelNumber()
int IBTK::SAMRAIDataCache::getCoarsestLevelNumber |
( |
| ) |
const |
Return the coarsest patch level for which scratch data is allocated.
◆ getFinestLevelNumber()
int IBTK::SAMRAIDataCache::getFinestLevelNumber |
( |
| ) |
const |
Return the finest patch level for which scratch data is allocated.
◆ resetLevels()
void IBTK::SAMRAIDataCache::resetLevels |
( |
int |
coarsest_ln, |
|
|
int |
finest_ln |
|
) |
| |
Reset the range of patch levels over which operations occur.
- Parameters
-
[in] | coarsest_ln | The coarsest level number |
[in] | finest_ln | The finest level number |
◆ setPatchHierarchy()
Set the patch hierarchy to use in allocating patch data.
- Parameters
-
[in] | hierarchy | The patch hierarchy |
The documentation for this class was generated from the following files:
- /home/runner/work/IBAMR/IBAMR/ibtk/include/ibtk/SAMRAIDataCache.h
- /home/runner/work/IBAMR/IBAMR/ibtk/src/utilities/SAMRAIDataCache.cpp