2 int USERD_get_nfaced_conn
9 Info<< "Entering: USERD_get_nfaced_conn"
10 << ", part_number = " << part_number
18 const cellShapeList& cellShapes = meshPtr->cellShapes();
19 const cellList& cells = meshPtr->cells();
20 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 if ((nFacesInCell == 6) && (points.size() == 8))
29 else if ((nFacesInCell == 4) && (points.size() == 4))
31 else if (nFacesInCell == 5)
33 if (points.size() == 6)
35 else if (points.size() == 5)
39 for (label i=0; i<nFacesInCell; i++)
41 label facei = cells[n][i];
42 label nPoints = faces[facei].size();
43 for (label j=0; j<nPoints; j++)
45 nfaced_conn_array[nPoint++] = faces[facei][j] + 1;
52 for (label i=0; i<nFacesInCell; i++)
54 label facei = cells[n][i];
55 label nPoints = faces[facei].size();
56 for (label j=0; j<nPoints; j++)
58 nfaced_conn_array[nPoint++] = faces[facei][j] + 1;
65 else if (part_number < nPatches+2)
75 Info<< "Exiting: USERD_get_nfaced_conn" << endl