1 #include <stk_mesh/fem/Stencils.hpp> 3 #include <stk_util/environment/ReportHandler.hpp> 10 element_node_stencil_2d(
11 EntityRank from_type ,
15 static const size_t spatial_dimension = 2;
19 if ( spatial_dimension == from_type && FEMMetaData::NODE_RANK == to_type ) {
20 ordinal =
static_cast<int>(identifier);
28 element_node_stencil_3d(
29 EntityRank from_type ,
33 static const size_t spatial_dimension = 3;
37 if ( spatial_dimension == from_type && FEMMetaData::NODE_RANK == to_type ) {
38 ordinal =
static_cast<int>(identifier);
46 get_element_node_stencil(
47 size_t spatial_dimension)
49 ThrowRequire(spatial_dimension == 2 || spatial_dimension == 3);
51 if (spatial_dimension == 3)
52 return & element_node_stencil_3d;
54 return & element_node_stencil_2d;
int(* relation_stencil_ptr)(unsigned from_type, unsigned to_type, unsigned identifier)
A relation stencil maps entity relationships to ordinals.