|
waLBerla 7.3
|
Iteration slices and cell intervals over a field.
#include <Field.hpp>
Public Member Functions | |
| FieldSlices (std::array< size_t, 3 > fieldShape, size_t numGhostLayers) | |
| CellInterval | interior () const |
| Get the interior cell interval for each of a fields' per-block views. | |
| CellInterval | withGhostLayers () const |
| Get the full cell interval for each of a fields' per-block views, including the interior and all ghost layers. | |
| CellInterval | withGhostLayers (size_t gls) const |
| Get an expanded cell interval for each of a fields' per-block views, including the interior and the given number of ghost layers. | |
| CellInterval | ghostSlice (stencil::Direction dir, size_t thickness=1, bool fullSlice=false) const |
| Get a cell interval for a ghost layer slice in a certain direction. | |
| CellInterval | borderSlice (stencil::Direction dir, size_t thickness=1, bool fullSlice=false) const |
| Get a cell interval for a border slice in a certain direction. | |
Private Attributes | |
| std::array< size_t, 3 > | shape_ |
| size_t | numGhostLayers_ |
|
inline |
|
inline |
Get a cell interval for a border slice in a certain direction.
| dir | The direction in which the border slice should be taken |
| thickness | The number of cell layers to include |
| fullSlice | If true, fully expand the slice in normal directions to include all ghost layers |
|
inline |
Get a cell interval for a ghost layer slice in a certain direction.
| dir | The direction in which the ghost-layer slice should be taken |
| thickness | The number of ghost layers to include |
| fullSlice | If true, fully expand the slice in normal directions to include all ghost layers |
|
inline |
Get the interior cell interval for each of a fields' per-block views.
|
inline |
Get the full cell interval for each of a fields' per-block views, including the interior and all ghost layers.
|
inline |
Get an expanded cell interval for each of a fields' per-block views, including the interior and the given number of ghost layers.
|
private |
|
private |