Class allowing storage of patches by level. More...
#include <arcane/cartesianmesh/internal/AMRPatchPositionLevelGroup.h>
Public Member Functions | |
| AMRPatchPositionLevelGroup (Int32 max_level) | |
| Int32 | maxLevel () const |
| ConstArrayView< AMRPatchPosition > | patches (Int32 level) |
| void | addPatch (const AMRPatchPosition &patch) |
| void | fusionPatches (Int32 level) |
| Method allowing the merging of all patches of a certain level that can be merged. | |
Static Public Member Functions | |
| static void | fusionPatches (UniqueArray< AMRPatchPosition > &patch_position, bool remove_null) |
| Method allowing the merging of a maximum number of patches from the array passed as a parameter. | |
Private Attributes | |
| Int32 | m_max_level |
| UniqueArray< UniqueArray< AMRPatchPosition > > | m_patches |
Class allowing storage of patches by level.
Note: this class is used during patch construction, a level 0 patch actually designates a future level 1 patch.
Definition at line 36 of file AMRPatchPositionLevelGroup.h.
|
explicit |
Definition at line 29 of file AMRPatchPositionLevelGroup.cc.
| void Arcane::AMRPatchPositionLevelGroup::addPatch | ( | const AMRPatchPosition & | patch | ) |
Definition at line 62 of file AMRPatchPositionLevelGroup.cc.
| void Arcane::AMRPatchPositionLevelGroup::fusionPatches | ( | Int32 | level | ) |
Method allowing the merging of all patches of a certain level that can be merged.
| level | The level to merge. |
Definition at line 71 of file AMRPatchPositionLevelGroup.cc.
References fusionPatches().
Referenced by fusionPatches().
|
static |
Method allowing the merging of a maximum number of patches from the array passed as a parameter.
| patch_position | [IN/OUT] The array of patches. |
| remove_null | Should null patches be removed? |
Definition at line 80 of file AMRPatchPositionLevelGroup.cc.
References Arcane::Array< T >::begin(), Arcane::Array< T >::end(), Arcane::AMRPatchPosition::fusion(), Arcane::AMRPatchPosition::isNull(), Arcane::Array< T >::remove(), and Arcane::AbstractArray< T >::size().
| Int32 Arcane::AMRPatchPositionLevelGroup::maxLevel | ( | ) | const |
Definition at line 44 of file AMRPatchPositionLevelGroup.cc.
| ConstArrayView< AMRPatchPosition > Arcane::AMRPatchPositionLevelGroup::patches | ( | Int32 | level | ) |
Definition at line 53 of file AMRPatchPositionLevelGroup.cc.
|
private |
Definition at line 66 of file AMRPatchPositionLevelGroup.h.
|
private |
Definition at line 67 of file AMRPatchPositionLevelGroup.h.