|
struct | Cabana::Grid::TileID2HashKey< Key, HashTypes::Naive > |
| Compute the hash key from the 3D tile ijk.
|
|
struct | Cabana::Grid::TileID2HashKey< Key, HashTypes::Morton > |
| Compute the hash key from the 3D tile ijk.
|
|
struct | Cabana::Grid::HashKey2TileID< Key, HashTypes::Naive > |
| Compute the 3D tile ijk from the hash key.
|
|
struct | Cabana::Grid::HashKey2TileID< Key, HashTypes::Morton > |
| Compute the 3D tile ijk from the hash key.
|
|
class | Cabana::Grid::SparseMap< MemorySpace, CellPerTileDim, Hash, Key, Value > |
| Sparse index space, with a hierarchical structure (cell->tile->block) More...
|
|
class | Cabana::Grid::BlockMap< MemorySpace, CBits, CNumPerDim, CNumPerTile, Hash, Key, Value > |
| Declaration of BlockMap. More...
|
|
class | Cabana::Grid::TileMap< CBits, CNumPerDim, CNumPerTile > |
| Declaration of TileMap. More...
|
|
class | Cabana::Grid::TileIndexSpace< N, cellBitsPerTileDim, > |
| Index space with tile as unit; _min and _max forms the tile range. Note this is for sparse grid only, mainly used in sparse halo impl. More...
|
|
|
template<typename Integer> |
KOKKOS_INLINE_FUNCTION constexpr Integer | Cabana::Grid::bitLength (Integer input_int) noexcept |
| (Host/Device) Compute the least bit number/length needed to represent the given input integer
|
|
template<typename Integer> |
KOKKOS_INLINE_FUNCTION constexpr Integer | Cabana::Grid::bitCount (Integer input_int) noexcept |
| (Host/Device) Compute the lease bit number needed to index input integer
|
|
template<typename Integer> |
KOKKOS_INLINE_FUNCTION constexpr Integer | Cabana::Grid::binaryReverse (Integer input_int, char loc=sizeof(Integer) *8 - 1) |
| (Host/Device) Given a integer, reverse the corresponding binary string, return the resulting integer.
|
|
template<typename Integer> |
KOKKOS_INLINE_FUNCTION constexpr unsigned | Cabana::Grid::countLeadingZeros (Integer input_int) |
| (Host/Device) Count the leading zeros in the corresponding binary string of the input integer
|
|
KOKKOS_INLINE_FUNCTION constexpr int | Cabana::Grid::bitPack (const uint64_t mask, const uint64_t data) |
| (Host/Device) Pack up the data bits where the corresponding bit of the mask is 1
|
|
KOKKOS_INLINE_FUNCTION constexpr uint64_t | Cabana::Grid::bitSpread (const uint64_t mask, const int data) |
| (Host/Device) Spread out the data bits where the corresponding bit of the mask is 1
|
|
template<typename MemorySpace, class Scalar, unsigned long long CellPerTileDim = 4, HashTypes Hash = HashTypes::Naive, typename Key = uint64_t, typename Value = uint64_t> |
SparseMap< MemorySpace, CellPerTileDim, Hash, Key, Value > | Cabana::Grid::createSparseMap (const std::shared_ptr< GlobalMesh< SparseMesh< Scalar > > > &global_mesh, int pre_alloc_size) |
| Creation function for SparseMap from GlobalMesh<SparseMesh>
|
|
template<typename MemorySpace, class Scalar, unsigned long long CellPerTileDim = 4, HashTypes Hash = HashTypes::Naive, typename Key = uint64_t, typename Value = uint64_t>
SparseMap< MemorySpace, CellPerTileDim, Hash, Key, Value > Cabana::Grid::createSparseMap |
( |
const std::shared_ptr< GlobalMesh< SparseMesh< Scalar > > > & | global_mesh, |
|
|
int | pre_alloc_size ) |
Creation function for SparseMap from GlobalMesh<SparseMesh>
- Returns
- SparseMap