|
MeshFields
GPU accelerated mesh-based fields
|
Provides access to individual entries of a single Field provided by MeshField::makeField and helper functions that operate on the entire Field. More...
#include <MeshField_Field.hpp>
Public Member Functions | |
| KOKKOS_INLINE_FUNCTION size_t | size (int i) const |
| get the size/extent of the specified rank More... | |
| KOKKOS_INLINE_FUNCTION auto & | operator() (int s) const |
| Kokkos::View< base_type * > | serialize () const |
| copy the Field into a single rank Kokkos View More... | |
| void | serialize (Kokkos::View< base_type * > &serial) const |
| copy the Field into a given Kokkos View More... | |
| void | deserialize (const Kokkos::View< const base_type * > &serialized) |
| copy the given Kokkos View into the Field More... | |
| template<class View > | |
| void | set (View &view) |
Provides access to individual entries of a single Field provided by MeshField::makeField and helper functions that operate on the entire Field.
Each Field stores DOFs associated with exactly one topological mesh entity type. For example, a quadratic field over triangles will have one Field for DOFs at the vertices and another for the DOFs at edges.
| Slice | is the underlying storage object provided by the KokkosController or CabanaController |
| Slice | see Slice template parameter |
Definition at line 46 of file MeshField_Field.hpp.
|
inline |
copy the given Kokkos View into the Field
See linearIdxToTensorIdx
| serial | (in/out) the Kokkow View to copy into |
Definition at line 200 of file MeshField_Field.hpp.
|
inline |
access the underlying field at the specified index
Definition at line 124 of file MeshField_Field.hpp.
|
inline |
copy the Field into a single rank Kokkos View
See linearIdxToTensorIdx
Definition at line 172 of file MeshField_Field.hpp.
|
inline |
copy the Field into a given Kokkos View
The Kokkos View needs to have extent = the product of the Field extents. See linearIdxToTensorIdx
| serial | (in/out) the Kokkow View to copy into |
Definition at line 187 of file MeshField_Field.hpp.
|
inline |
sets field(i,j,...) = view(i,j,...) for all i,j,... up to rank 5.
| View | to copy from, must have matching extent and rank |
Definition at line 278 of file MeshField_Field.hpp.
|
inline |
get the size/extent of the specified rank
| i | (in) the rank to query |
Definition at line 118 of file MeshField_Field.hpp.