Panzer
Version of the Day
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
disc-fe
src
Panzer_CellTopologyInfo.cpp
Go to the documentation of this file.
1
// @HEADER
2
// *****************************************************************************
3
// Panzer: A partial differential equation assembly
4
// engine for strongly coupled complex multiphysics systems
5
//
6
// Copyright 2011 NTESS and the Panzer contributors.
7
// SPDX-License-Identifier: BSD-3-Clause
8
// *****************************************************************************
9
// @HEADER
10
11
#include "
Panzer_CellTopologyInfo.hpp
"
12
#include "
Panzer_IntegrationRule.hpp
"
13
#include "
Panzer_IntrepidBasisFactory.hpp
"
14
15
#include "Teuchos_Assert.hpp"
16
#include "Phalanx_DataLayout_MDALayout.hpp"
17
18
panzer::CellTopologyInfo::
19
CellTopologyInfo
(
int
numCells,
const
Teuchos::RCP<const shards::CellTopology>
& cellTopo)
20
{
21
num_cells
= numCells;
22
23
dimension
= cellTopo->getDimension();
24
num_edges
= cellTopo->getEdgeCount();
25
cell_topo_name
= cellTopo->getName();
26
27
topology
= cellTopo;
28
29
initializeDataLayouts
();
30
}
31
32
33
void
panzer::CellTopologyInfo::initializeDataLayouts
()
34
{
35
using
Teuchos::rcp
;
36
using
PHX::MDALayout
;
37
38
edge_scalar =
rcp
(
new
MDALayout<Cell,Edge>(num_cells, num_edges));
39
edge_vector =
rcp
(
new
MDALayout<Cell,Edge,Dim>(num_cells, num_edges, dimension));
40
41
}
panzer::CellTopologyInfo::cell_topo_name
std::string cell_topo_name
Definition:
Panzer_CellTopologyInfo.hpp:68
panzer::CellTopologyInfo::CellTopologyInfo
CellTopologyInfo(int numCells, const Teuchos::RCP< const shards::CellTopology > &cellTopo)
Definition:
Panzer_CellTopologyInfo.cpp:19
Teuchos::rcp
TEUCHOS_DEPRECATED RCP< T > rcp(T *p, Dealloc_T dealloc, bool owns_mem)
PHX::MDALayout
panzer::CellTopologyInfo::initializeDataLayouts
void initializeDataLayouts()
Initialize data layouts.
Definition:
Panzer_CellTopologyInfo.cpp:33
Panzer_IntrepidBasisFactory.hpp
panzer::CellTopologyInfo::topology
Teuchos::RCP< const shards::CellTopology > topology
Definition:
Panzer_CellTopologyInfo.hpp:66
panzer::CellTopologyInfo::num_cells
int num_cells
Definition:
Panzer_CellTopologyInfo.hpp:70
Panzer_CellTopologyInfo.hpp
Teuchos::RCP< const shards::CellTopology >
panzer::CellTopologyInfo::dimension
int dimension
Definition:
Panzer_CellTopologyInfo.hpp:71
panzer::CellTopologyInfo::num_edges
int num_edges
Definition:
Panzer_CellTopologyInfo.hpp:72
Panzer_IntegrationRule.hpp
Generated on Fri Dec 20 2024 09:16:50 for Panzer by
1.8.5