|
chombo-discharge
|
Class for storing the AMR hierarchy as a collection of tiles. More...
#include <CD_LevelTiles.H>
Classes | |
| struct | TileComparator |
| For lexicographically comparing tiles. More... | |
Public Types | |
| using | BoxIDs = std::pair< unsigned int, unsigned int > |
Public Member Functions | |
| LevelTiles () noexcept | |
| Weak constructor. Must subsequently call the define function. | |
| LevelTiles (const DisjointBoxLayout &a_grids, const int a_blockingFactor) noexcept | |
| Full constructor - puts object in usable state. | |
| virtual | ~LevelTiles () noexcept |
| Destructor (does nothing) | |
| virtual void | define (const DisjointBoxLayout &a_grids, const int a_blockingFactor) noexcept |
| Define function. Puts object in usable state. | |
| virtual const std::map< IntVect, unsigned int, TileComparator > & | getMyTiles () const noexcept |
| Get the tiles own by this rank. | |
| virtual const std::map< IntVect, BoxIDs, TileComparator > & | getOtherTiles () const noexcept |
| Get the tiles own by this rank. | |
| virtual const std::map< unsigned int, DataIndex > & | getMyGrids () const noexcept |
| Get the tiles own by this rank. | |
Protected Attributes | |
| bool | m_isDefined |
| Is defined or not. | |
| std::map< IntVect, unsigned int, TileComparator > | m_myTiles |
| "Tiles" owned by this rank | |
| std::map< IntVect, BoxIDs, TileComparator > | m_otherTiles |
| Grids owned by other ranks. | |
| std::map< unsigned int, DataIndex > | m_myGrids |
| Mapping of grid index to DataIndex. | |
Class for storing the AMR hierarchy as a collection of tiles.
This class only makes sense in terms of a grid which uses constant-size grid, which is a restriction we happily accept when using particles. This class decomposes the AMR hierarchy into such tiles, each tile being the cells spanned by the blockingFactor^SpaceDim grid patch.
|
noexcept |
Full constructor - puts object in usable state.
| [in] | a_dbl | Grids |
| [in] | a_blockingFactor | Grid size. |
|
virtualnoexcept |
Define function. Puts object in usable state.
| [in] | a_dbl | Grids |
| [in] | a_blockingFactor | Grid size. |
Get the tiles own by this rank.
|
virtualnoexcept |
Get the tiles own by this rank.
|
virtualnoexcept |
Get the tiles own by this rank.