Lines Matching refs:c2
313 PetscInt firstVertex, lastVertex, c2; in ReorderPolygon() local
317 for (c2 = 0; c2 < coneSize; ++c2) { in ReorderPolygon()
320 PetscCall(DMPlexGetCone(dm, cone[c2], &fcone2)); in ReorderPolygon()
321 firstVertex = ornt[c2] ? fcone2[1] : fcone2[0]; in ReorderPolygon()
327 …PetscCheck(c2 < coneSize, PETSC_COMM_SELF, PETSC_ERR_ARG_WRONG, "Cell %" PetscInt_FMT " could not … in ReorderPolygon()
328 newCone[c] = cone[c2]; in ReorderPolygon()
329 newOrnt[c] = ornt[c2]; in ReorderPolygon()
367 PetscInt c2; in ReorderTetrahedron() local
374 for (c2 = 0; c2 < 3; ++c2) { in ReorderTetrahedron()
375 …edge2 = fcone2[farr2[c2 * 2 + 0]], eornt2 = DMPolytopeTypeComposeOrientation(DM_POLYTOPE_SEGMENT, … in ReorderTetrahedron()
380 …MT " edge %" PetscInt_FMT " (%" PetscInt_FMT ")\n", cell, edge, e, eornt, cone[c], c, c2, eornt2)); in ReorderTetrahedron()
385 if (c2 < 3) { in ReorderTetrahedron()
392 …newOrnt[faces[e + 1]] = DMPolytopeTypeComposeOrientation(DM_POLYTOPE_TRIANGLE, -((c2 + (!e ? 1 : 2… in ReorderTetrahedron()
394 …[e + 1]] = DMPolytopeTypeComposeOrientation(DM_POLYTOPE_TRIANGLE, !e ? (c2 + 1) % 3 : c2, ornt[c]); in ReorderTetrahedron()
430 PetscInt c2; in ReorderHexahedron() local
436 for (c2 = 0; c2 < 4; ++c2) { in ReorderHexahedron()
437 …edge2 = fcone2[farr2[c2 * 2 + 0]], eornt2 = DMPolytopeTypeComposeOrientation(DM_POLYTOPE_SEGMENT, … in ReorderHexahedron()
445 if (c2 < 4) { in ReorderHexahedron()
449 …1]] = DMPolytopeTypeComposeOrientation(DM_POLYTOPE_QUADRILATERAL, !e ? (c2 + 1) % 4 : c2, ornt[c]); in ReorderHexahedron()
458 PetscInt c, c2; in ReorderHexahedron() local
475 for (c2 = 0; c2 < 4; ++c2) { in ReorderHexahedron()
476 …edge2 = fcone2[farr2[c2 * 2 + 0]], eornt2 = DMPolytopeTypeComposeOrientation(DM_POLYTOPE_SEGMENT, … in ReorderHexahedron()
484 PetscCheck(c2 < 4, PETSC_COMM_SELF, PETSC_ERR_ARG_WRONG, "Could not fit last face in"); in ReorderHexahedron()
488 newOrnt[faces[5]] = DMPolytopeTypeComposeOrientation(DM_POLYTOPE_QUADRILATERAL, c2, ornt[c]); in ReorderHexahedron()
532 PetscInt c2; in ReorderWedge() local
541 for (c2 = 0; c2 < 4; ++c2) { in ReorderWedge()
542 …edge2 = fcone2[farr2[c2 * 2 + 0]], eornt2 = DMPolytopeTypeComposeOrientation(DM_POLYTOPE_SEGMENT, … in ReorderWedge()
550 if (c2 < 4) { in ReorderWedge()
554 … newOrnt[faces[e + 1]] = DMPolytopeTypeComposeOrientation(DM_POLYTOPE_QUADRILATERAL, c2, ornt[c]); in ReorderWedge()
563 PetscInt c, c2; in ReorderWedge() local
580 for (c2 = 0; c2 < 3; ++c2) { in ReorderWedge()
581 …edge2 = fcone2[farr2[c2 * 2 + 0]], eornt2 = DMPolytopeTypeComposeOrientation(DM_POLYTOPE_SEGMENT, … in ReorderWedge()
589 PetscCheck(c2 < 3, PETSC_COMM_SELF, PETSC_ERR_ARG_WRONG, "Could not fit last face in"); in ReorderWedge()
593 newOrnt[faces[4]] = DMPolytopeTypeComposeOrientation(DM_POLYTOPE_TRIANGLE, c2, ornt[c]); in ReorderWedge()