|
AXOM
Axom provides a robust, flexible software infrastructure for the development of multi-physics applications and computational tools.
|
Compute coordset extents. More...
#include </home/docs/checkouts/readthedocs.org/user_builds/axom/checkouts/develop/src/axom/bump/CoordsetExtents.hpp>
Public Member Functions | |
| CoordsetExtents (const CoordsetView &coordsetView) | |
| 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 (double extents[NVALUES]) const |
| Compute the spatial extents of the coordset and bring results to the host. More... | |
| void | computeExtents (axom::ArrayView< double > extentsView) const |
| Compute the spatial extents of the coordset into a device array. More... | |
Public Attributes | |
| CoordsetView | m_coordsetView |
| int | m_allocator_id |
Static Public Attributes | |
| static constexpr int | NVALUES = CoordsetView::dimension() * 2 |
Compute coordset extents.
| ExecSpace | The execution space where the algorithm runs. |
| CoordsetView | The coordset view type. |
|
inline |
Constructor.
| coordsetView | The coordset view that wraps the coordset to be examined. |
|
inline |
Set the allocator id to use when allocating memory.
| allocator_id | The allocator id to use when allocating memory. |
References axom::isValidAllocatorID(), axom::bump::CoordsetExtents< ExecSpace, CoordsetView >::m_allocator_id, and SLIC_ERROR_IF.
|
inline |
Get the allocator id to use when allocating memory.
References axom::bump::CoordsetExtents< ExecSpace, CoordsetView >::m_allocator_id.
|
inline |
Compute the spatial extents of the coordset and bring results to the host.
| [out] | extents | The extents on the host. |
References axom::bump::CoordsetExtents< ExecSpace, CoordsetView >::computeExtents(), axom::copy(), axom::bump::CoordsetExtents< ExecSpace, CoordsetView >::getAllocatorID(), axom::bump::CoordsetExtents< ExecSpace, CoordsetView >::NVALUES, and axom::Array< T, DIM, SPACE, StoragePolicy >::view().
|
inline |
Compute the spatial extents of the coordset into a device array.
| [out] | extentsView | A view on the device that contains extents, stored: xmin, xmax, ymin, ymax, zmin, zmax. |
References AXOM_ANNOTATE_SCOPE, AXOM_LAMBDA, axom::bump::CoordsetExtents< ExecSpace, CoordsetView >::m_coordsetView, and axom::ArrayView< T, DIM, SPACE >::size().
|
staticconstexpr |
| CoordsetView axom::bump::CoordsetExtents< ExecSpace, CoordsetView >::m_coordsetView |
| int axom::bump::CoordsetExtents< ExecSpace, CoordsetView >::m_allocator_id |