Lines Matching refs:faces

702 …Tensor_3D_Internal(DM dm, const PetscReal lower[], const PetscReal upper[], const PetscInt faces[])  in DMPlexCreateBoxSurfaceMesh_Tensor_3D_Internal()  argument
705 …PetscInt numFaces = 2 * faces[0] * faces[1] + 2 * faces[1] * faces[2] + 2 * faces[0] * f… in DMPlexCreateBoxSurfaceMesh_Tensor_3D_Internal()
722 …PetscCheck(faces[0] >= 1 && faces[1] >= 1 && faces[2] >= 1, PetscObjectComm((PetscObject)dm), PETS… in DMPlexCreateBoxSurfaceMesh_Tensor_3D_Internal()
733 vertices[0] = faces[0] + 1; in DMPlexCreateBoxSurfaceMesh_Tensor_3D_Internal()
734 vertices[1] = faces[1] + 1; in DMPlexCreateBoxSurfaceMesh_Tensor_3D_Internal()
735 vertices[2] = faces[2] + 1; in DMPlexCreateBoxSurfaceMesh_Tensor_3D_Internal()
745 for (vy = 0; vy < faces[1]; vy++) { in DMPlexCreateBoxSurfaceMesh_Tensor_3D_Internal()
746 for (vx = 0; vx < faces[0]; vx++) { in DMPlexCreateBoxSurfaceMesh_Tensor_3D_Internal()
763 for (vy = 0; vy < faces[1]; vy++) { in DMPlexCreateBoxSurfaceMesh_Tensor_3D_Internal()
764 for (vx = 0; vx < faces[0]; vx++) { in DMPlexCreateBoxSurfaceMesh_Tensor_3D_Internal()
765 voffset = numFaces + vy * (faces[0] + 1) + vx; in DMPlexCreateBoxSurfaceMesh_Tensor_3D_Internal()
781 for (vz = 0; vz < faces[2]; vz++) { in DMPlexCreateBoxSurfaceMesh_Tensor_3D_Internal()
782 for (vx = 0; vx < faces[0]; vx++) { in DMPlexCreateBoxSurfaceMesh_Tensor_3D_Internal()
799 for (vz = 0; vz < faces[2]; vz++) { in DMPlexCreateBoxSurfaceMesh_Tensor_3D_Internal()
800 for (vx = 0; vx < faces[0]; vx++) { in DMPlexCreateBoxSurfaceMesh_Tensor_3D_Internal()
817 for (vz = 0; vz < faces[2]; vz++) { in DMPlexCreateBoxSurfaceMesh_Tensor_3D_Internal()
818 for (vy = 0; vy < faces[1]; vy++) { in DMPlexCreateBoxSurfaceMesh_Tensor_3D_Internal()
835 for (vz = 0; vz < faces[2]; vz++) { in DMPlexCreateBoxSurfaceMesh_Tensor_3D_Internal()
836 for (vy = 0; vy < faces[1]; vy++) { in DMPlexCreateBoxSurfaceMesh_Tensor_3D_Internal()
837 voffset = numFaces + vz * vertices[0] * vertices[1] + vy * vertices[0] + faces[0]; in DMPlexCreateBoxSurfaceMesh_Tensor_3D_Internal()
872 for (vz = 0; vz <= faces[2]; ++vz) { in DMPlexCreateBoxSurfaceMesh_Tensor_3D_Internal()
873 for (vy = 0; vy <= faces[1]; ++vy) { in DMPlexCreateBoxSurfaceMesh_Tensor_3D_Internal()
874 for (vx = 0; vx <= faces[0]; ++vx) { in DMPlexCreateBoxSurfaceMesh_Tensor_3D_Internal()
875 …coords[((vz * (faces[1] + 1) + vy) * (faces[0] + 1) + vx) * 3 + 0] = lower[0] + ((upper[0] - lower… in DMPlexCreateBoxSurfaceMesh_Tensor_3D_Internal()
876 …coords[((vz * (faces[1] + 1) + vy) * (faces[0] + 1) + vx) * 3 + 1] = lower[1] + ((upper[1] - lower… in DMPlexCreateBoxSurfaceMesh_Tensor_3D_Internal()
877 …coords[((vz * (faces[1] + 1) + vy) * (faces[0] + 1) + vx) * 3 + 2] = lower[2] + ((upper[2] - lower… in DMPlexCreateBoxSurfaceMesh_Tensor_3D_Internal()
887 static PetscErrorCode DMPlexCreateBoxSurfaceMesh_Internal(DM dm, PetscInt dim, const PetscInt faces in DMPlexCreateBoxSurfaceMesh_Internal() argument
896 PetscCall(DMPlexCreateBoxSurfaceMesh_Tensor_1D_Internal(dm, lower, upper, faces)); in DMPlexCreateBoxSurfaceMesh_Internal()
899 PetscCall(DMPlexCreateBoxSurfaceMesh_Tensor_2D_Internal(dm, lower, upper, faces)); in DMPlexCreateBoxSurfaceMesh_Internal()
902 PetscCall(DMPlexCreateBoxSurfaceMesh_Tensor_3D_Internal(dm, lower, upper, faces)); in DMPlexCreateBoxSurfaceMesh_Internal()
932 PetscErrorCode DMPlexCreateBoxSurfaceMesh(MPI_Comm comm, PetscInt dim, const PetscInt faces[], cons… in DMPlexCreateBoxSurfaceMesh() argument
941 …PetscCall(DMPlexCreateBoxSurfaceMesh_Internal(*dm, dim, faces ? faces : fac, lower ? lower : low, … in DMPlexCreateBoxSurfaceMesh()
1012 const PetscInt *faces; in DMPlexSetBoxLabel_Internal() local
1049 if (faces_is) PetscCall(ISGetIndices(faces_is, &faces)); in DMPlexSetBoxLabel_Internal()
1055 PetscInt face = faces[f], flip = 1, label_value = -1, coords_size; in DMPlexSetBoxLabel_Internal()
1124 if (faces_is) PetscCall(ISRestoreIndices(faces_is, &faces)); in DMPlexSetBoxLabel_Internal()
1455 … DMPlexCreateBoxMesh_Simplex_Internal(DM dm, PetscInt dim, const PetscInt faces[], const PetscReal… in DMPlexCreateBoxMesh_Simplex_Internal() argument
1465 PetscCall(DMPlexCreateSquareMesh_Simplex_CrissCross(dm, faces, lower, upper, periodicity)); in DMPlexCreateBoxMesh_Simplex_Internal()
1471 PetscCall(DMPlexCreateBoxSurfaceMesh_Internal(boundary, dim, faces, lower, upper, PETSC_FALSE)); in DMPlexCreateBoxMesh_Simplex_Internal()
1911 static PetscErrorCode DMPlexCreateBoxMesh_Tensor_Internal(DM dm, PetscInt dim, const PetscInt faces in DMPlexCreateBoxMesh_Tensor_Internal() argument
1921 fac[d] = faces[d]; in DMPlexCreateBoxMesh_Tensor_Internal()
1932 maxCell[d] = 1.1 * (L[d] / PetscMax(1, faces[d])); in DMPlexCreateBoxMesh_Tensor_Internal()
1941 …DM dm, DMPlexShape shape, PetscInt dim, PetscBool simplex, const PetscInt faces[], const PetscReal… in DMPlexCreateBoxMesh_Internal() argument
1945 …if (shape == DM_SHAPE_ZBOX) PetscCall(DMPlexCreateBoxMesh_Tensor_SFC_Internal(dm, dim, faces, lowe… in DMPlexCreateBoxMesh_Internal()
1946 …else if (dim == 1) PetscCall(DMPlexCreateLineMesh_Internal(dm, faces[0], lower[0], upper[0], perio… in DMPlexCreateBoxMesh_Internal()
1947 …else if (simplex) PetscCall(DMPlexCreateBoxMesh_Simplex_Internal(dm, dim, faces, lower, upper, per… in DMPlexCreateBoxMesh_Internal()
1948 else PetscCall(DMPlexCreateBoxMesh_Tensor_Internal(dm, dim, faces, lower, upper, periodicity)); in DMPlexCreateBoxMesh_Internal()
2026 …ateBoxMesh(MPI_Comm comm, PetscInt dim, PetscBool simplex, const PetscInt faces[], const PetscReal… in DMPlexCreateBoxMesh() argument
2036 …PetscCall(DMPlexCreateBoxMesh_Internal(*dm, DM_SHAPE_BOX, dim, simplex, faces ? faces : fac, lower… in DMPlexCreateBoxMesh()
2048 static PetscErrorCode DMPlexCreateWedgeBoxMesh_Internal(DM dm, const PetscInt faces[], const PetscR… in DMPlexCreateWedgeBoxMesh_Internal() argument
2060 …PetscCall(DMPlexCreateBoxMesh_Simplex_Internal(bdm, 2, faces, lower, upper, periodicity, PETSC_TRU… in DMPlexCreateWedgeBoxMesh_Internal()
2061 …PetscCall(DMPlexExtrude(bdm, faces[2], upper[2] - lower[2], PETSC_TRUE, PETSC_FALSE, PETSC_FALSE, … in DMPlexCreateWedgeBoxMesh_Internal()
2103 PetscErrorCode DMPlexCreateWedgeBoxMesh(MPI_Comm comm, const PetscInt faces[], const PetscReal lowe… in DMPlexCreateWedgeBoxMesh() argument
2113 …PetscCall(DMPlexCreateWedgeBoxMesh_Internal(*dm, faces ? faces : fac, lower ? lower : low, upper ?… in DMPlexCreateWedgeBoxMesh()
2948 const PetscInt *faces; in DMPlexCreateHexCylinderMesh_Internal() local
2960 PetscCall(ISGetIndices(faceIS, &faces)); in DMPlexCreateHexCylinderMesh_Internal()
2964 PetscCall(DMPlexComputeCellGeometryFVM(dm, faces[f], &vol, NULL, normal)); in DMPlexCreateHexCylinderMesh_Internal()
2965 if (PetscAbsReal(normal[2]) < PETSC_SMALL) PetscCall(DMLabelSetValue(edgelabel, faces[f], 1)); in DMPlexCreateHexCylinderMesh_Internal()
2967 PetscCall(ISRestoreIndices(faceIS, &faces)); in DMPlexCreateHexCylinderMesh_Internal()
4704 …PetscErrorCode ProcessCohesiveLabel_Faces(DM dm, DMLabel label, PetscInt n, const PetscInt faces[]) in ProcessCohesiveLabel_Faces() argument
4708 const PetscInt point = faces[p]; in ProcessCohesiveLabel_Faces()
4836 PetscInt faces[3] = {0, 0, 0}; in DMPlexCreateFromOptions_Internal() local
4844 for (i = 0; i < dim; ++i) faces[i] = (dim == 1 ? 1 : 4 - dim); in DMPlexCreateFromOptions_Internal()
4845 …ptionsIntArray("-dm_plex_box_faces", "Number of faces along each dimension", "", faces, &n, &flg)); in DMPlexCreateFromOptions_Internal()
4862 PetscCall(DMPlexCreateWedgeBoxMesh_Internal(dm, faces, lower, upper, bdt)); in DMPlexCreateFromOptions_Internal()
4871 …PetscCall(DMPlexCreateBoxMesh_Internal(dm, shape, dim, simplex, faces, lower, upper, bdt, interpol… in DMPlexCreateFromOptions_Internal()
4891 PetscInt faces[3] = {0, 0, 0}; in DMPlexCreateFromOptions_Internal() local
4897 for (i = 0; i < dim + 1; ++i) faces[i] = (dim + 1 == 1 ? 1 : 4 - (dim + 1)); in DMPlexCreateFromOptions_Internal()
4898 …ptionsIntArray("-dm_plex_box_faces", "Number of faces along each dimension", "", faces, &n, &flg)); in DMPlexCreateFromOptions_Internal()
4905 PetscCall(DMPlexCreateBoxSurfaceMesh_Internal(dm, dim + 1, faces, lower, upper, interpolate)); in DMPlexCreateFromOptions_Internal()