Lines Matching refs:cell
285 static PetscErrorCode InsertFace(DM dm, PetscInt cell, PetscInt face, PetscInt ornt) in InsertFace() argument
291 PetscCall(DMPlexGetCone(dm, cell, &cone)); in InsertFace()
292 PetscCall(DMPlexGetConeSize(dm, cell, &coneSize)); in InsertFace()
295 …not be inserted in cone of cell %" PetscInt_FMT " with size %" PetscInt_FMT, face, cell, coneSize); in InsertFace()
296 PetscCall(DMPlexInsertCone(dm, cell, c, face)); in InsertFace()
297 PetscCall(DMPlexInsertConeOrientation(dm, cell, c, ornt)); in InsertFace()
301 static PetscErrorCode ReorderPolygon(DM dm, PetscInt cell) in ReorderPolygon() argument
307 PetscCall(DMPlexGetOrientedCone(dm, cell, &cone, &ornt)); in ReorderPolygon()
308 PetscCall(DMPlexGetConeSize(dm, cell, &coneSize)); in ReorderPolygon()
327 …G_WRONG, "Cell %" PetscInt_FMT " could not find a face match as position %" PetscInt_FMT, cell, c); in ReorderPolygon()
339 …ETSC_COMM_SELF, PETSC_ERR_ARG_WRONG, "Cell %" PetscInt_FMT " did not match at the endpoint", cell); in ReorderPolygon()
341 PetscCall(DMPlexSetCone(dm, cell, newCone)); in ReorderPolygon()
342 PetscCall(DMPlexSetConeOrientation(dm, cell, newOrnt)); in ReorderPolygon()
343 PetscCall(DMPlexRestoreOrientedCone(dm, cell, &cone, &ornt)); in ReorderPolygon()
347 static PetscErrorCode ReorderTetrahedron(PetscViewer viewer, DM dm, PetscInt cell) in ReorderTetrahedron() argument
353 PetscCall(DMPlexGetOrientedCone(dm, cell, &cone, &ornt)); in ReorderTetrahedron()
380 …nt_FMT "/%" PetscInt_FMT " edge %" PetscInt_FMT " (%" PetscInt_FMT ")\n", cell, edge, e, eornt, co… in ReorderTetrahedron()
399 …_ARG_WRONG, "Cell %" PetscInt_FMT " could not find a face match for edge %" PetscInt_FMT, cell, e); in ReorderTetrahedron()
402 PetscCall(DMPlexSetCone(dm, cell, newCone)); in ReorderTetrahedron()
403 PetscCall(DMPlexSetConeOrientation(dm, cell, newOrnt)); in ReorderTetrahedron()
404 PetscCall(DMPlexRestoreOrientedCone(dm, cell, &cone, &ornt)); in ReorderTetrahedron()
408 static PetscErrorCode ReorderHexahedron(DM dm, PetscInt cell) in ReorderHexahedron() argument
416 PetscCall(DMPlexGetOrientedCone(dm, cell, &cone, &ornt)); in ReorderHexahedron()
453 …_ARG_WRONG, "Cell %" PetscInt_FMT " could not find a face match for edge %" PetscInt_FMT, cell, e); in ReorderHexahedron()
462 …C_COMM_SELF, PETSC_ERR_ARG_WRONG, "Cell %" PetscInt_FMT " could not find an available face", cell); in ReorderHexahedron()
491 PetscCall(DMPlexSetCone(dm, cell, newCone)); in ReorderHexahedron()
492 PetscCall(DMPlexSetConeOrientation(dm, cell, newOrnt)); in ReorderHexahedron()
493 PetscCall(DMPlexRestoreOrientedCone(dm, cell, &cone, &ornt)); in ReorderHexahedron()
498 static PetscErrorCode ReorderWedge(DM dm, PetscInt cell) in ReorderWedge() argument
506 PetscCall(DMPlexGetConeSize(dm, cell, &cS)); in ReorderWedge()
507 PetscCall(DMPlexGetOrientedCone(dm, cell, &cone, &ornt)); in ReorderWedge()
558 …_ARG_WRONG, "Cell %" PetscInt_FMT " could not find a face match for edge %" PetscInt_FMT, cell, e); in ReorderWedge()
567 …C_COMM_SELF, PETSC_ERR_ARG_WRONG, "Cell %" PetscInt_FMT " could not find an available face", cell); in ReorderWedge()
596 PetscCall(DMPlexSetCone(dm, cell, newCone)); in ReorderWedge()
597 PetscCall(DMPlexSetConeOrientation(dm, cell, newOrnt)); in ReorderWedge()
598 PetscCall(DMPlexRestoreOrientedCone(dm, cell, &cone, &ornt)); in ReorderWedge()
602 static PetscErrorCode ReorderCell(PetscViewer viewer, DM dm, PetscInt cell, DMPolytopeType ct) in ReorderCell() argument
608 PetscCall(ReorderPolygon(dm, cell)); in ReorderCell()
611 PetscCall(ReorderTetrahedron(viewer, dm, cell)); in ReorderCell()
614 PetscCall(ReorderHexahedron(dm, cell)); in ReorderCell()
617 PetscCall(ReorderWedge(dm, cell)); in ReorderCell()