Panzer
Version of the Day
|
#include <Panzer_SubcellConnectivity.hpp>
Public Member Functions | |
SubcellConnectivity ()=default | |
Default constructor. More... | |
~SubcellConnectivity ()=default | |
Default destructor. More... | |
KOKKOS_INLINE_FUNCTION int | numSubcells () const |
Gives number of subcells (e.g. faces) in connectivity. More... | |
KOKKOS_INLINE_FUNCTION int | numCells () const |
Gives number of cells in connectivity. More... | |
KOKKOS_INLINE_FUNCTION int | numSubcellsOnCell (const int cell) const |
gives number of subcells (e.g. faces) found on a given cell More... | |
int | numSubcellsOnCellHost (const int cell) const |
KOKKOS_INLINE_FUNCTION int | numCellsOnSubcell (const int subcell) const |
Returns the number of cells attached to a given subcell. More... | |
int | numCellsOnSubcellHost (const int subcell) const |
KOKKOS_INLINE_FUNCTION int | subcellForCell (const int cell, const int local_subcell_index) const |
Get the subcell index for a given cell and local subcell index. More... | |
int | subcellForCellHost (const int cell, const int local_subcell_index) const |
KOKKOS_INLINE_FUNCTION int | cellForSubcell (const int subcell, const int local_cell_index) const |
Get the cell for a given subcell and a local_cell_index. More... | |
int | cellForSubcellHost (const int subcell, const int local_cell_index) const |
KOKKOS_INLINE_FUNCTION int | localSubcellForSubcell (const int subcell, const int local_cell_index) const |
Get the local subcell index given a subcell and a local cell index. More... | |
int | localSubcellForSubcellHost (const int subcell, const int local_cell_index) const |
Protected Attributes | |
PHX::View< int * > | _subcell_to_cells_adj |
Adjacency array for indexing into subcell_to_cells array. More... | |
PHX::View< int * > ::host_mirror_type | _subcell_to_cells_adj_host |
PHX::View< int * > | _subcell_to_cells |
Mapping from subcells to cells. More... | |
PHX::View< int * > ::host_mirror_type | _subcell_to_cells_host |
PHX::View< int * > | _subcell_to_local_subcells |
Mapping from subcell indexes to local subcell indexes. More... | |
PHX::View< int * > ::host_mirror_type | _subcell_to_local_subcells_host |
PHX::View< int * > | _cell_to_subcells_adj |
Adjacency array for indexing into cell_to_subcells array. More... | |
PHX::View< int * > ::host_mirror_type | _cell_to_subcells_adj_host |
PHX::View< int * > | _cell_to_subcells |
Mapping from cells to subcells. More... | |
PHX::View< int * > ::host_mirror_type | _cell_to_subcells_host |
Definition at line 22 of file Panzer_SubcellConnectivity.hpp.
|
default |
Default constructor.
|
default |
Default destructor.
|
inline |
Gives number of subcells (e.g. faces) in connectivity.
Definition at line 38 of file Panzer_SubcellConnectivity.hpp.
|
inline |
Gives number of cells in connectivity.
Definition at line 46 of file Panzer_SubcellConnectivity.hpp.
PHALANX_HIP_HACK_KOKKOS_FUNCTION int panzer::SubcellConnectivity::numSubcellsOnCell | ( | const int | cell | ) | const |
gives number of subcells (e.g. faces) found on a given cell
If | cell is out of range |
param[in] Cell index
Definition at line 187 of file Panzer_SubcellConnectivity.hpp.
|
inline |
Definition at line 197 of file Panzer_SubcellConnectivity.hpp.
PHALANX_HIP_HACK_KOKKOS_FUNCTION int panzer::SubcellConnectivity::numCellsOnSubcell | ( | const int | subcell | ) | const |
Returns the number of cells attached to a given subcell.
For example: 1) A face joins two cells. 2) A node joins four cells on a 2D rectilinear mesh (eight in 3D)
[in] | subcell | Subcell index |
Definition at line 208 of file Panzer_SubcellConnectivity.hpp.
|
inline |
Definition at line 218 of file Panzer_SubcellConnectivity.hpp.
PHALANX_HIP_HACK_KOKKOS_FUNCTION int panzer::SubcellConnectivity::subcellForCell | ( | const int | cell, |
const int | local_subcell_index | ||
) | const |
Get the subcell index for a given cell and local subcell index.
A local subcell index is the local indexing scheme for the cell.
For example: 1) A quad cell has four faces indexed by 0,1,2,3 (local subcell indexes) 2) A hex cell has eight nodes indexed by 0,1,2,3,4,5,6,7 (local subcell indexes)
[in] | cell | Cell index |
[in] | local_subcell_index | Index of subcell in cell local indexing |
Definition at line 229 of file Panzer_SubcellConnectivity.hpp.
|
inline |
Definition at line 241 of file Panzer_SubcellConnectivity.hpp.
PHALANX_HIP_HACK_KOKKOS_FUNCTION int panzer::SubcellConnectivity::cellForSubcell | ( | const int | subcell, |
const int | local_cell_index | ||
) | const |
Get the cell for a given subcell and a local_cell_index.
A local cell index is the indexing scheme local to a subcell.
For example: 1) A 1D mesh has subcells (nodes) connects two cells (lines) with local cell indexes 0,1 2) A 2D quad can have nodal subcells (on structured mesh) that connect four cells with local cell indexes 0,1,2,3
[in] | subcell | Subcell index |
[in] | local_cell_index |
Definition at line 254 of file Panzer_SubcellConnectivity.hpp.
|
inline |
Definition at line 266 of file Panzer_SubcellConnectivity.hpp.
PHALANX_HIP_HACK_KOKKOS_FUNCTION int panzer::SubcellConnectivity::localSubcellForSubcell | ( | const int | subcell, |
const int | local_cell_index | ||
) | const |
Get the local subcell index given a subcell and a local cell index.
This is the mapping between local subcell indexes and local cell indexes
[in] | subcell | Subcell index |
[in] | local_cell_index | Local cell index on subcell |
Definition at line 279 of file Panzer_SubcellConnectivity.hpp.
|
inline |
Definition at line 291 of file Panzer_SubcellConnectivity.hpp.
|
protected |
Adjacency array for indexing into subcell_to_cells array.
Definition at line 134 of file Panzer_SubcellConnectivity.hpp.
|
protected |
Definition at line 135 of file Panzer_SubcellConnectivity.hpp.
|
protected |
Mapping from subcells to cells.
Definition at line 138 of file Panzer_SubcellConnectivity.hpp.
|
protected |
Definition at line 139 of file Panzer_SubcellConnectivity.hpp.
|
protected |
Mapping from subcell indexes to local subcell indexes.
Definition at line 142 of file Panzer_SubcellConnectivity.hpp.
|
protected |
Definition at line 143 of file Panzer_SubcellConnectivity.hpp.
|
protected |
Adjacency array for indexing into cell_to_subcells array.
Definition at line 146 of file Panzer_SubcellConnectivity.hpp.
|
protected |
Definition at line 147 of file Panzer_SubcellConnectivity.hpp.
|
protected |
Mapping from cells to subcells.
Definition at line 150 of file Panzer_SubcellConnectivity.hpp.
|
protected |
Definition at line 151 of file Panzer_SubcellConnectivity.hpp.