Panzer  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Protected Attributes | List of all members
panzer::SubcellConnectivity Class Reference

#include <Panzer_SubcellConnectivity.hpp>

Inheritance diagram for panzer::SubcellConnectivity:
Inheritance graph
[legend]

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 * >::HostMirror _subcell_to_cells_adj_host
 
PHX::View< int * > _subcell_to_cells
 Mapping from subcells to cells. More...
 
PHX::View< int * >::HostMirror _subcell_to_cells_host
 
PHX::View< int * > _subcell_to_local_subcells
 Mapping from subcell indexes to local subcell indexes. More...
 
PHX::View< int * >::HostMirror _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 * >::HostMirror _cell_to_subcells_adj_host
 
PHX::View< int * > _cell_to_subcells
 Mapping from cells to subcells. More...
 
PHX::View< int * >::HostMirror _cell_to_subcells_host
 

Detailed Description

Definition at line 22 of file Panzer_SubcellConnectivity.hpp.

Constructor & Destructor Documentation

panzer::SubcellConnectivity::SubcellConnectivity ( )
default

Default constructor.

panzer::SubcellConnectivity::~SubcellConnectivity ( )
default

Default destructor.

Member Function Documentation

KOKKOS_INLINE_FUNCTION int panzer::SubcellConnectivity::numSubcells ( ) const
inline

Gives number of subcells (e.g. faces) in connectivity.

Returns
Number of subcells associated with the cells

Definition at line 38 of file Panzer_SubcellConnectivity.hpp.

KOKKOS_INLINE_FUNCTION int panzer::SubcellConnectivity::numCells ( ) const
inline

Gives number of cells in connectivity.

Returns
Number of subcells associated with the cells

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

Exceptions
Ifcell is out of range

param[in] Cell index

Returns
Number of subcells on a given cell

Definition at line 187 of file Panzer_SubcellConnectivity.hpp.

int panzer::SubcellConnectivity::numSubcellsOnCellHost ( const int  cell) const
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)

Parameters
[in]subcellSubcell index
Returns
Number of cells connected to subcell

Definition at line 208 of file Panzer_SubcellConnectivity.hpp.

int panzer::SubcellConnectivity::numCellsOnSubcellHost ( const int  subcell) const
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)

Parameters
[in]cellCell index
[in]local_subcell_indexIndex of subcell in cell local indexing
Returns
Subcell index

Definition at line 229 of file Panzer_SubcellConnectivity.hpp.

int panzer::SubcellConnectivity::subcellForCellHost ( const int  cell,
const int  local_subcell_index 
) const
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

Parameters
[in]subcellSubcell index
[in]local_cell_index
Returns
Cell index

Definition at line 254 of file Panzer_SubcellConnectivity.hpp.

int panzer::SubcellConnectivity::cellForSubcellHost ( const int  subcell,
const int  local_cell_index 
) const
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

Parameters
[in]subcellSubcell index
[in]local_cell_indexLocal cell index on subcell
Returns
Local subcell index for cell identified by subcell index and local_cell_index

Definition at line 279 of file Panzer_SubcellConnectivity.hpp.

int panzer::SubcellConnectivity::localSubcellForSubcellHost ( const int  subcell,
const int  local_cell_index 
) const
inline

Definition at line 291 of file Panzer_SubcellConnectivity.hpp.

Member Data Documentation

PHX::View<int*> panzer::SubcellConnectivity::_subcell_to_cells_adj
protected

Adjacency array for indexing into subcell_to_cells array.

Definition at line 134 of file Panzer_SubcellConnectivity.hpp.

PHX::View<int*>::HostMirror panzer::SubcellConnectivity::_subcell_to_cells_adj_host
protected

Definition at line 135 of file Panzer_SubcellConnectivity.hpp.

PHX::View<int*> panzer::SubcellConnectivity::_subcell_to_cells
protected

Mapping from subcells to cells.

Definition at line 138 of file Panzer_SubcellConnectivity.hpp.

PHX::View<int*>::HostMirror panzer::SubcellConnectivity::_subcell_to_cells_host
protected

Definition at line 139 of file Panzer_SubcellConnectivity.hpp.

PHX::View<int*> panzer::SubcellConnectivity::_subcell_to_local_subcells
protected

Mapping from subcell indexes to local subcell indexes.

Definition at line 142 of file Panzer_SubcellConnectivity.hpp.

PHX::View<int*>::HostMirror panzer::SubcellConnectivity::_subcell_to_local_subcells_host
protected

Definition at line 143 of file Panzer_SubcellConnectivity.hpp.

PHX::View<int*> panzer::SubcellConnectivity::_cell_to_subcells_adj
protected

Adjacency array for indexing into cell_to_subcells array.

Definition at line 146 of file Panzer_SubcellConnectivity.hpp.

PHX::View<int*>::HostMirror panzer::SubcellConnectivity::_cell_to_subcells_adj_host
protected

Definition at line 147 of file Panzer_SubcellConnectivity.hpp.

PHX::View<int*> panzer::SubcellConnectivity::_cell_to_subcells
protected

Mapping from cells to subcells.

Definition at line 150 of file Panzer_SubcellConnectivity.hpp.

PHX::View<int*>::HostMirror panzer::SubcellConnectivity::_cell_to_subcells_host
protected

Definition at line 151 of file Panzer_SubcellConnectivity.hpp.


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