|
AXOM
Axom provides a robust, flexible software infrastructure for the development of multi-physics applications and computational tools.
|
Slices the input matset view and outputs a new matset (unibuffer flavor). More...
#include </home/docs/checkouts/readthedocs.org/user_builds/axom/checkouts/develop/src/axom/bump/MatsetSlicer.hpp>
Public Types | |
| using | SelectedZonesView = axom::ArrayView< axom::IndexType > |
Public Member Functions | |
| MatsetSlicer (const MatsetView &matsetView) | |
| Constructor. More... | |
| void | setAllocatorID (int allocator_id) |
| Set the allocator id to use when allocating memory. More... | |
| int | getAllocatorID () const |
| Get the allocator id to use when allocating memory. More... | |
| void | execute (const SliceData &slice, const conduit::Node &n_matset, conduit::Node &n_newMatset) |
| Slice the input matset and output a new matset. More... | |
Slices the input matset view and outputs a new matset (unibuffer flavor).
| ExecSpace | The execution space where the algorithm will run. |
| MatsetView | The matset view type that wraps the Blueprint matset. |
| using axom::bump::MatsetSlicer< ExecSpace, MatsetView >::SelectedZonesView = axom::ArrayView<axom::IndexType> |
|
inline |
Constructor.
|
inline |
Set the allocator id to use when allocating memory.
| allocator_id | The allocator id to use when allocating memory. |
References axom::isValidAllocatorID(), and SLIC_ERROR_IF.
|
inline |
Get the allocator id to use when allocating memory.
|
inline |
Slice the input matset and output a new matset.
| matsetView | A view that wraps the input matset. | |
| slice | Slice data that contains the zone ids that we're extracting from the matset. | |
| n_matset | The input matset. | |
| [out] | n_newMatset | The output matset. |
References AXOM_ANNOTATE_BEGIN, AXOM_ANNOTATE_END, AXOM_ANNOTATE_SCOPE, AXOM_LAMBDA, axom::sidre::ConduitMemory::axomAllocIdToConduit(), axom::serial::reductions::ReduceSum< ExecSpace, T >::get(), axom::bump::MatsetSlicer< ExecSpace, MatsetView >::getAllocatorID(), axom::ArrayView< T, DIM, SPACE >::size(), SLIC_ASSERT, SLIC_ERROR_IF, and axom::primal::slice().