SoA (Structure-of-Arrays) 4D vector grid data. More...
#include <grid_types.hpp>
Classes | |
| struct | HostMirror |
| Host mirror type for I/O. More... | |
Public Types | |
| using | value_type = ScalarType |
| using | memory_space = typename Grid4DDataScalar< ScalarType >::memory_space |
Public Member Functions | |
| Grid4DDataVec ()=default | |
| Grid4DDataVec (const std::string &label, int s0, int s1, int s2, int s3) | |
| ScalarType & | operator() (int i0, int i1, int i2, int i3, int d) const |
| auto | extent (int i) const |
| std::string | label () const |
| Get the label (derived from first component by stripping "_d0" suffix). | |
Public Attributes | |
| Grid4DDataScalar< ScalarType > | comp_ [VecDim] |
Static Public Attributes | |
| static constexpr int | vec_dim = VecDim |
| static constexpr int | rank = 5 |
SoA (Structure-of-Arrays) 4D vector grid data.
Stores VecDim separate Grid4DDataScalar views for GPU memory coalescing. Provides the same operator()(sd, x, y, r, d) interface as the former AoS Kokkos::View<ScalarType****[VecDim]>.
| using terra::grid::Grid4DDataVec< ScalarType, VecDim >::memory_space = typename Grid4DDataScalar< ScalarType >::memory_space |
| using terra::grid::Grid4DDataVec< ScalarType, VecDim >::value_type = ScalarType |
|
default |
|
inline |
|
inline |
|
inline |
Get the label (derived from first component by stripping "_d0" suffix).
|
inline |
| Grid4DDataScalar< ScalarType > terra::grid::Grid4DDataVec< ScalarType, VecDim >::comp_[VecDim] |
|
staticconstexpr |
|
staticconstexpr |