4 namespace GridConversion{
namespace DriverProgram{
8 std::ostringstream Ostr;
11 FunctionEntry(
"ConnectivityMaps");
13 std::cout <<
"In ConnectivityMaps function" << std::endl;
23 std::cout <<
"node " <<
i+1 <<
":" << std::endl;
25 for(
int j=0;
j < nodesToElems[
i].size();
j++){
26 std::cout <<
"element " << nodesToElems[
i][
j] <<
":" << std::endl;
27 elem = nodesToElems[
i][
j]-1;
30 node =
elems[numNodesPerElem*elem +
k];
53 Ostr <<
"Node to node map:" << std::endl;
55 Ostr <<
i+1 <<
":" << std::endl;
83 Ostr <<
"Element edges:" << std::endl;
85 Ostr <<
i+1 <<
":" << std::endl;
87 Ostr <<
elemEdges[
i*numNodesPerElemEdge +
j] <<
" ";
101 n1 =
elems[
i*numNodesPerElem +
j];
104 n2 =
elems[
i*numNodesPerElem +
k];
121 Ostr <<
"Element to element edges:" << std::endl;
123 Ostr <<
i+1 <<
":" << std::endl;
134 FunctionExit(
"ConnectivityMaps");
int numElemEdges
number of element edges in mesh
virtual int ConnectivityMaps(SolverUtils::Mesh::Connectivity nodesToElems)
This function creates a few different connectivity maps that are needed.
std::vector< unsigned int > elemToElemEdges
map of elements to element edges
GridConversion interface.
std::vector< unsigned int > elems
vector for holding element connectivies read from input
int numElems
number of elements in mesh
int verblevel
Verbosity level.
int numNodesPerElemEdge
number of nodes per element edge
int numNodesPerElem
number of nodes per element
std::vector< std::vector< unsigned int > > nodeToNode
vector for holding node to node map
std::vector< unsigned int > elemEdges
vector for holding element edges
int numNodes
number of nodes in mesh