Lines Matching refs:ornt
285 static PetscErrorCode InsertFace(DM dm, PetscInt cell, PetscInt face, PetscInt ornt) in InsertFace() argument
297 PetscCall(DMPlexInsertConeOrientation(dm, cell, c, ornt)); in InsertFace()
303 const PetscInt *cone, *ornt; in ReorderPolygon() local
307 PetscCall(DMPlexGetOrientedCone(dm, cell, &cone, &ornt)); in ReorderPolygon()
310 newOrnt[0] = ornt[0]; in ReorderPolygon()
321 firstVertex = ornt[c2] ? fcone2[1] : fcone2[0]; in ReorderPolygon()
329 newOrnt[c] = ornt[c2]; in ReorderPolygon()
343 PetscCall(DMPlexRestoreOrientedCone(dm, cell, &cone, &ornt)); in ReorderPolygon()
349 const PetscInt *cone, *ornt, *fcone, *fornt, *farr, faces[4] = {0, 1, 3, 2}; in ReorderTetrahedron() local
353 PetscCall(DMPlexGetOrientedCone(dm, cell, &cone, &ornt)); in ReorderTetrahedron()
355 newOrnt[0] = ornt[0]; in ReorderTetrahedron()
372 farr2 = DMPolytopeTypeGetArrangement(DM_POLYTOPE_TRIANGLE, ornt[c]); in ReorderTetrahedron()
392 … = DMPolytopeTypeComposeOrientation(DM_POLYTOPE_TRIANGLE, -((c2 + (!e ? 1 : 2)) % 3 + 1), ornt[c]); in ReorderTetrahedron()
394 …[e + 1]] = DMPolytopeTypeComposeOrientation(DM_POLYTOPE_TRIANGLE, !e ? (c2 + 1) % 3 : c2, ornt[c]); in ReorderTetrahedron()
404 PetscCall(DMPlexRestoreOrientedCone(dm, cell, &cone, &ornt)); in ReorderTetrahedron()
410 const PetscInt *cone, *ornt, *fcone, *fornt, *farr; in ReorderHexahedron() local
416 PetscCall(DMPlexGetOrientedCone(dm, cell, &cone, &ornt)); in ReorderHexahedron()
418 newOrnt[0] = ornt[0]; in ReorderHexahedron()
434 farr2 = DMPolytopeTypeGetArrangement(DM_POLYTOPE_QUADRILATERAL, ornt[c]); in ReorderHexahedron()
449 …1]] = DMPolytopeTypeComposeOrientation(DM_POLYTOPE_QUADRILATERAL, !e ? (c2 + 1) % 4 : c2, ornt[c]); in ReorderHexahedron()
470 farr2 = DMPolytopeTypeGetArrangement(DM_POLYTOPE_QUADRILATERAL, ornt[c]); in ReorderHexahedron()
488 newOrnt[faces[5]] = DMPolytopeTypeComposeOrientation(DM_POLYTOPE_QUADRILATERAL, c2, ornt[c]); in ReorderHexahedron()
493 PetscCall(DMPlexRestoreOrientedCone(dm, cell, &cone, &ornt)); in ReorderHexahedron()
500 const PetscInt *cone, *ornt, *fcone, *fornt, *farr; in ReorderWedge() local
507 PetscCall(DMPlexGetOrientedCone(dm, cell, &cone, &ornt)); in ReorderWedge()
519 newOrnt[0] = ornt[bottom]; in ReorderWedge()
539 farr2 = DMPolytopeTypeGetArrangement(DM_POLYTOPE_QUADRILATERAL, ornt[c]); in ReorderWedge()
554 … newOrnt[faces[e + 1]] = DMPolytopeTypeComposeOrientation(DM_POLYTOPE_QUADRILATERAL, c2, ornt[c]); in ReorderWedge()
575 farr2 = DMPolytopeTypeGetArrangement(DM_POLYTOPE_TRIANGLE, ornt[c]); in ReorderWedge()
593 newOrnt[faces[4]] = DMPolytopeTypeComposeOrientation(DM_POLYTOPE_TRIANGLE, c2, ornt[c]); in ReorderWedge()
598 PetscCall(DMPlexRestoreOrientedCone(dm, cell, &cone, &ornt)); in ReorderWedge()