Cabana 0.8.0-dev
 
Loading...
Searching...
No Matches
Cabana::Grid::IndexConversion::L2G< MeshType, EntityType > Struct Template Reference

Local-to-global indexer. More...

#include <Cabana_Grid_IndexConversion.hpp>

Public Types

using mesh_type = MeshType
 Mesh type.
 
using entity_type = EntityType
 Entity type.
 

Public Member Functions

 L2G (const LocalGrid< MeshType > &local_grid)
 Constructor.
 
KOKKOS_INLINE_FUNCTION void operator() (const int lijk[num_space_dim], int gijk[num_space_dim]) const
 Convert local indices to global indices - general form.
 
template<std::size_t NSD = num_space_dim>
KOKKOS_INLINE_FUNCTION std::enable_if_t< 3==NSD, void > operator() (const int li, const int lj, const int lk, int &gi, int &gj, int &gk) const
 Convert local indices to global indices - 3D.
 
template<std::size_t NSD = num_space_dim>
KOKKOS_INLINE_FUNCTION std::enable_if_t< 2==NSD, void > operator() (const int li, const int lj, int &gi, int &gj) const
 Convert local indices to global indices - 3D.
 

Public Attributes

Kokkos::Array< int, num_space_dimlocal_own_min
 Owned local indices minimum.
 
Kokkos::Array< int, num_space_dimlocal_own_max
 Owned local indices maximum.
 
Kokkos::Array< int, num_space_dimglobal_own_min
 Owned global indices minimum.
 
Kokkos::Array< int, num_space_dimglobal_num_entity
 Global number of entities.
 
Kokkos::Array< bool, num_space_dimperiodic
 Periodicity.
 
Kokkos::Array< bool, num_space_dimboundary_lo
 True if block is on low boundary.
 
Kokkos::Array< bool, num_space_dimboundary_hi
 True if block is on high boundary.
 

Static Public Attributes

static constexpr std::size_t num_space_dim = mesh_type::num_space_dim
 Spatial dimension.
 

Detailed Description

template<class MeshType, class EntityType>
struct Cabana::Grid::IndexConversion::L2G< MeshType, EntityType >

Local-to-global indexer.


The documentation for this struct was generated from the following file: