|
waLBerla 7.3
|
Factory for derived and wrapper sweeps.
Objects of this class can be used to construct derived sweeps from existing sweep objects. This inclused fusing sweeps, restricting them to certain cell intervals (TODO) or domain borders, or selectively activating them according to certain conditions (TODO).
#include <DomainSlices.hpp>
Public Member Functions | |
| SweepFactory (const shared_ptr< StructuredBlockForest > &blocks) | |
| template<stencil::Direction Dir, CellIntervalSweep Sweep_T> | |
| BorderSweep< Dir, Sweep_T > | atDomainBorder (const Sweep_T &sweep, cell_idx_t offset=0, uint_t thickness=1, cell_idx_t expand=0) |
| Restrict a sweep to a slice at the simulation domain border. | |
| auto | fuse (const Sweep auto &... sweeps) |
| Fuse a sequence of sweeps. | |
| template<CommHidingIntervall Intervall_T, CellIntervalSweep Sweep_T> | |
| CommHidingSweep< Intervall_T, Sweep_T > | commHidingSweep (Sweep_T &sweep, Cell innerOuterSplit=Cell(1, 1, 1)) |
| INNER and OUTER sweep for communication hiding. | |
Private Attributes | |
| std::shared_ptr< StructuredBlockForest > | blocks_ |
|
inline |
|
inline |
Restrict a sweep to a slice at the simulation domain border.
Return a wrapper sweep which executes the given sweep only on cells at the simulation domain border specified by the Dir template argument.
| sweep | The original sweep object |
| offset | Offset of the outermost cell layer of the border slice from the actual border. 0 means the outermost layer of valid cells, negative numbers shift the slice into the ghost layer, while positive numbers shift it into the domain. |
| thickness | Thickness of the iteration slice; must be a positive number. |
| expand | Number of cells by which to expand the slice into ghost layers along the border. |
|
inline |
INNER and OUTER sweep for communication hiding.
Return a wrapper sweep which executes the given sweep only on cells in the inner or outer part of the simulation domain
| sweep | The original sweep object |
| innerOuterSplit | Thickness of the outer iteration slice in 3 dimensions |
|
inline |
Fuse a sequence of sweeps.
Return a new wrapper sweep which, on each block, executes all of the given sweeps in the specified order.
|
private |