2 int USERD_get_nfaced_nodes_per_face
9 Info<< "Entering: USERD_get_nfaced_nodes_per_face"
10 << ", part_number = " << part_number
17 const cellShapeList& cellShapes = meshPtr->cellShapes();
18 const cellList& cells = meshPtr->cells();
19 const faceList& faces = meshPtr->faces();
21 label nCells = cellShapes.size();
23 for (label n=0; n<nCells; n++)
25 label nFacesInCell = cells[n].size();
26 labelList points = cellShapes[n];
27 label nPoints = points.size();
29 if ((nFacesInCell == 6) && (nPoints == 8))
31 else if ((nFacesInCell == 4) && (nPoints == 4))
33 else if (nFacesInCell == 5)
37 else if (nPoints == 5)
41 for (label i=0; i<nFacesInCell; i++)
43 label facei = cells[n][i];
44 label nFacePoints = faces[facei].size();
45 nfaced_npf_array[nFaced++] = nFacePoints;
51 for (label i=0; i<nFacesInCell; i++)
53 label facei = cells[n][i];
54 label nFacePoints = faces[facei].size();
55 nfaced_npf_array[nFaced++] = nFacePoints;
61 else if (part_number < nPatches+2)
70 Info<< "Exiting: USERD_get_nfaced_nodes_per_face" << endl