Lines Matching refs:ct
509 DMPolytopeType ct; in ReorderWedge() local
511 PetscCall(DMPlexGetCellType(dm, cone[c], &ct)); in ReorderWedge()
512 if (ct == DM_POLYTOPE_TRIANGLE) { in ReorderWedge()
531 DMPolytopeType ct; in ReorderWedge() local
535 PetscCall(DMPlexGetCellType(dm, cone[c], &ct)); in ReorderWedge()
536 if (ct != DM_POLYTOPE_QUADRILATERAL) continue; in ReorderWedge()
602 static PetscErrorCode ReorderCell(PetscViewer viewer, DM dm, PetscInt cell, DMPolytopeType ct) in ReorderCell() argument
605 switch (ct) { in ReorderCell()
620 … PetscCheck(0, PETSC_COMM_SELF, PETSC_ERR_SUP, "Celltype %s is unsupported", DMPolytopeTypes[ct]); in ReorderCell()
626 static PetscErrorCode GetNumCellFaces(int nd, PetscInt *numCellFaces, DMPolytopeType *ct) in GetNumCellFaces() argument
629 *ct = DM_POLYTOPE_POINT; in GetNumCellFaces()
636 *ct = DM_POLYTOPE_TRIANGLE; in GetNumCellFaces()
640 *ct = DM_POLYTOPE_TETRAHEDRON; in GetNumCellFaces()
644 *ct = DM_POLYTOPE_QUADRILATERAL; in GetNumCellFaces()
648 *ct = DM_POLYTOPE_HEXAHEDRON; in GetNumCellFaces()
652 *ct = DM_POLYTOPE_PYRAMID; in GetNumCellFaces()
656 *ct = DM_POLYTOPE_TRI_PRISM; in GetNumCellFaces()
822 DMPolytopeType ct; in DMPlexCreateFluent() local
826 ct = DM_POLYTOPE_SEGMENT; in DMPlexCreateFluent()
829 ct = DM_POLYTOPE_TRIANGLE; in DMPlexCreateFluent()
832 ct = DM_POLYTOPE_QUADRILATERAL; in DMPlexCreateFluent()
838 PetscCall(DMPlexSetCellType(*dm, f + numCells + numVertices, ct)); in DMPlexCreateFluent()