|
AXOM
Axom provides a robust, flexible software infrastructure for the development of multi-physics applications and computational tools.
|
This class provides a view for Conduit/Blueprint single shape unstructured grids. More...
#include </home/docs/checkouts/readthedocs.org/user_builds/axom/checkouts/develop/src/axom/bump/views/UnstructuredTopologySingleShapeView.hpp>
Public Types | |
| using | ShapeType = ShapeT |
| using | ConnectivityType = typename ShapeType::ConnectivityType |
| using | ConnectivityView = axom::ArrayView< ConnectivityType > |
| using | IndexingPolicy = BasicIndexing |
Public Member Functions | |
| AXOM_HOST_DEVICE | UnstructuredTopologySingleShapeView (const ConnectivityView &conn) |
| Constructor. More... | |
| AXOM_HOST_DEVICE | UnstructuredTopologySingleShapeView (const ConnectivityView &conn, const ConnectivityView &sizes, const ConnectivityView &offsets) |
| Constructor. More... | |
| AXOM_HOST_DEVICE IndexType | numberOfZones () const |
| Return the number of zones. More... | |
| AXOM_HOST_DEVICE IndexType | connectivitySize () const |
| Return the size of the connectivity. More... | |
| AXOM_HOST_DEVICE const IndexingPolicy & | indexing () const |
| Return the size of the connectivity. More... | |
| template<bool _variable_size = ShapeType::is_variable_size()> | |
| AXOM_HOST_DEVICE std::enable_if< _variable_size, ShapeType >::type | zone (axom::IndexType zoneIndex) const |
| Return a zone. More... | |
| template<bool _variable_size = ShapeType::is_variable_size()> | |
| AXOM_HOST_DEVICE std::enable_if<!_variable_size, ShapeType >::type | zone (axom::IndexType zoneIndex) const |
Static Public Member Functions | |
| static constexpr AXOM_HOST_DEVICE int | dimension () |
| Return the dimension of the shape. More... | |
This class provides a view for Conduit/Blueprint single shape unstructured grids.
| IndexT | The index type that will be used for connectivity, etc. |
| ShapeT | The shape type. |
| using axom::bump::views::UnstructuredTopologySingleShapeView< ShapeT >::ShapeType = ShapeT |
| using axom::bump::views::UnstructuredTopologySingleShapeView< ShapeT >::ConnectivityType = typename ShapeType::ConnectivityType |
| using axom::bump::views::UnstructuredTopologySingleShapeView< ShapeT >::ConnectivityView = axom::ArrayView<ConnectivityType> |
| using axom::bump::views::UnstructuredTopologySingleShapeView< ShapeT >::IndexingPolicy = BasicIndexing |
|
inline |
Constructor.
| conn | The mesh connectivity. |
References axom::bump::views::BasicIndexing::m_size, and axom::bump::views::UnstructuredTopologySingleShapeView< ShapeT >::numberOfZones().
|
inline |
Constructor.
| conn | The mesh connectivity. |
| sizes | The number of nodes in each zone. |
| offsets | The offset to each zone in the connectivity. |
References axom::ArrayView< T, DIM, SPACE >::size(), and SLIC_ERROR_IF.
|
inlinestaticconstexpr |
Return the dimension of the shape.
|
inline |
Return the number of zones.
References axom::ArrayView< T, DIM, SPACE >::size().
|
inline |
Return the size of the connectivity.
References axom::ArrayView< T, DIM, SPACE >::size().
|
inline |
Return the size of the connectivity.
|
inline |
Return a zone.
| zoneIndex | The requested zone. |
References axom::ArrayView< T, DIM, SPACE >::data(), axom::bump::views::UnstructuredTopologySingleShapeView< ShapeT >::numberOfZones(), and SLIC_ASSERT.
|
inline |