Grid¶
-
namespace
Cubism
::
Grid
¶ Namespace for grid data types composed of block data types.
-
template<typename
T
, size_tRANK
, Cubism::EntityTypeEntity
, typenameState
, typenameMesh
>
structBlockFieldAssembler
¶ - #include <BlockFieldAssembler.h>
Block field assembler for an externally allocated region of memory.
- Template Parameters
T
: Field data typeRANK
: Tensor rankEntity
: Entity typeState
: Field state typeMesh
: Mesh type of global and block meshes
-
template<typename
T
, typenameMesh
, Cubism::EntityTypeEntity
= Cubism::EntityType::Cell, size_tRANK
= 0, typenameUserState
= Block::FieldState, template<typename> classAlloc
= AlignedBlockAllocator>
classCartesian
- #include <Cartesian.h>
Cartesian block (tensor) field.
Cartesian topology composed of block Field.h for the specified entity type. As opposed to an individual block Field.h, this class manages a structure of arrays (SoA) memory layout for all the blocks in the Cartesian topology instead of just individual blocks. See the CartesianMPI.h grid section for a distributed variant of this class. The field state can be extended with the
UserState
extension. TheUserState
type must be trivially copyable.- Template Parameters
T
: Field data typeMesh
: Mesh type to be associated with fieldsEntity
: Entity typeRANK
: Rank of (tensor) fieldsUserState
: Type for field state user extensionAlloc
: Allocator for field data
Subclassed by Cubism::Grid::CartesianMPI< T, Mesh, Entity, RANK, UserState, Alloc >
-
template<typename
T
, typenameMesh
, Cubism::EntityTypeEntity
= Cubism::EntityType::Cell, size_tRANK
= 0, typenameUserState
= Block::FieldState, template<typename> classAlloc
= AlignedBlockAllocator>
classCartesianMPI
: public Cubism::Grid::Cartesian<T, Mesh, Entity, RANK, UserState, Alloc> - #include <CartesianMPI.h>
Cartesian MPI block (tensor) field.
Cartesian topology composed of block Field.h for the specified entity type. As opposed to an individual block Field.h, this class manages a structure of arrays (SoA) memory layout for all the blocks in the rank local Cartesian topology instead of just individual blocks. See the Cartesian.h grid section for a non-distributed variant of this class as well as the
UserState
extension.- Template Parameters
T
: Field data typeMesh
: Mesh type to be associated with fieldsEntity
: Entity typeRANK
: Rank of (tensor) fieldsAlloc
: Allocator for field data
-
template<typename