15 #ifndef __INTREPID2_CELLDATA_CPP__
16 #define __INTREPID2_CELLDATA_CPP__
20 const CellTopologyData*
21 Intrepid2::getCellTopologyData(
const unsigned& cellTopologyKey){
22 const CellTopologyData* cellTopologyData;
23 switch (cellTopologyKey) {
24 case shards::Node::key:
25 cellTopologyData = shards::getCellTopologyData<shards::Node>();
27 case shards::Line<2>::key:
28 cellTopologyData = shards::getCellTopologyData<shards::Line<2>>();
30 case shards::Triangle<3>::key:
31 cellTopologyData = shards::getCellTopologyData<shards::Triangle<3>>();
33 case shards::Quadrilateral<4>::key:
34 cellTopologyData = shards::getCellTopologyData<shards::Quadrilateral<4>>();
36 case shards::Tetrahedron<4>::key:
37 cellTopologyData = shards::getCellTopologyData<shards::Tetrahedron<4>>();
39 case shards::Hexahedron<8>::key:
40 cellTopologyData = shards::getCellTopologyData<shards::Hexahedron<8>>();
42 case shards::Wedge<6>::key:
43 cellTopologyData = shards::getCellTopologyData<shards::Wedge<6>>();
45 case shards::Pyramid<5>::key:
46 cellTopologyData = shards::getCellTopologyData<shards::Pyramid<5>>();
49 case shards::Line<3>::key:
50 cellTopologyData = shards::getCellTopologyData<shards::Line<3>>();
52 case shards::Triangle<6>::key:
53 cellTopologyData = shards::getCellTopologyData<shards::Triangle<6>>();
55 case shards::Quadrilateral<8>::key:
56 cellTopologyData = shards::getCellTopologyData<shards::Quadrilateral<8>>();
58 case shards::Quadrilateral<9>::key:
59 cellTopologyData = shards::getCellTopologyData<shards::Quadrilateral<9>>();
61 case shards::Tetrahedron<10>::key:
62 cellTopologyData = shards::getCellTopologyData<shards::Tetrahedron<10>>();
64 case shards::Tetrahedron<11>::key:
65 cellTopologyData = shards::getCellTopologyData<shards::Tetrahedron<11>>();
67 case shards::Hexahedron<20>::key:
68 cellTopologyData = shards::getCellTopologyData<shards::Hexahedron<20>>();
70 case shards::Hexahedron<27>::key:
71 cellTopologyData = shards::getCellTopologyData<shards::Hexahedron<27>>();
73 case shards::Wedge<15>::key:
74 cellTopologyData = shards::getCellTopologyData<shards::Wedge<15>>();
76 case shards::Wedge<18>::key:
77 cellTopologyData = shards::getCellTopologyData<shards::Wedge<18>>();
79 case shards::Pyramid<13>::key:
80 cellTopologyData = shards::getCellTopologyData<shards::Pyramid<13>>();
82 case shards::Pyramid<14>::key:
83 cellTopologyData = shards::getCellTopologyData<shards::Pyramid<14>>();
86 INTREPID2_TEST_FOR_EXCEPTION(
true, std::invalid_argument,
87 ">>> ERROR (Intrepid2::getBaseCellTopology): invalid cell topology.");
90 return cellTopologyData;
Header file for the classes: Intrepid2::RefSubcellParametrization, Intrepid2::RefCellNodes, Intrepid2::RefCellCenter.