Panzer  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 
14 
15 #include "Teuchos_Assert.hpp"
16 #include "Phalanx_DataLayout_MDALayout.hpp"
17 
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 
30 }
31 
32 
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 }
CellTopologyInfo(int numCells, const Teuchos::RCP< const shards::CellTopology > &cellTopo)
TEUCHOS_DEPRECATED RCP< T > rcp(T *p, Dealloc_T dealloc, bool owns_mem)
void initializeDataLayouts()
Initialize data layouts.
Teuchos::RCP< const shards::CellTopology > topology