Lines Matching refs:vy
600 PetscInt v, vx, vy; in DMPlexCreateBoxSurfaceMesh_Tensor_2D_Internal() local
643 for (vy = 0; vy <= edges[1]; vy++) { in DMPlexCreateBoxSurfaceMesh_Tensor_2D_Internal()
645 PetscInt edge = vy * edges[0] + ex; in DMPlexCreateBoxSurfaceMesh_Tensor_2D_Internal()
646 PetscInt vertex = vy * (edges[0] + 1) + ex + numEdges; in DMPlexCreateBoxSurfaceMesh_Tensor_2D_Internal()
652 if (vy == edges[1]) { in DMPlexCreateBoxSurfaceMesh_Tensor_2D_Internal()
659 } else if (vy == 0) { in DMPlexCreateBoxSurfaceMesh_Tensor_2D_Internal()
690 for (vy = 0; vy <= edges[1]; ++vy) { in DMPlexCreateBoxSurfaceMesh_Tensor_2D_Internal()
692 … coords[(vy * (edges[0] + 1) + vx) * 2 + 0] = lower[0] + ((upper[0] - lower[0]) / edges[0]) * vx; in DMPlexCreateBoxSurfaceMesh_Tensor_2D_Internal()
693 … coords[(vy * (edges[0] + 1) + vx) * 2 + 1] = lower[1] + ((upper[1] - lower[1]) / edges[1]) * vy; in DMPlexCreateBoxSurfaceMesh_Tensor_2D_Internal()
718 PetscInt v, vx, vy, vz; in DMPlexCreateBoxSurfaceMesh_Tensor_3D_Internal() local
745 for (vy = 0; vy < faces[1]; vy++) { in DMPlexCreateBoxSurfaceMesh_Tensor_3D_Internal()
747 voffset = numFaces + vertices[0] * vertices[1] * (vertices[2] - 1) + vy * vertices[0] + vx; in DMPlexCreateBoxSurfaceMesh_Tensor_3D_Internal()
763 for (vy = 0; vy < faces[1]; vy++) { in DMPlexCreateBoxSurfaceMesh_Tensor_3D_Internal()
765 voffset = numFaces + vy * (faces[0] + 1) + vx; in DMPlexCreateBoxSurfaceMesh_Tensor_3D_Internal()
818 for (vy = 0; vy < faces[1]; vy++) { in DMPlexCreateBoxSurfaceMesh_Tensor_3D_Internal()
819 voffset = numFaces + vz * vertices[0] * vertices[1] + vy * vertices[0]; 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()
873 for (vy = 0; vy <= faces[1]; ++vy) { 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()
1308 PetscInt v, vx, vy; in DMPlexCreateSquareMesh_Simplex_CrissCross() local
1373 for (vy = 0; vy < numYVertices; vy++) { in DMPlexCreateSquareMesh_Simplex_CrissCross()
1375 const PetscInt edge = firstXEdge + vy * numXEdges + ex; in DMPlexCreateSquareMesh_Simplex_CrissCross()
1376 const PetscInt v0 = firstVertex + vy * numXVertices + ex; in DMPlexCreateSquareMesh_Simplex_CrissCross()
1377 const PetscInt v1 = firstVertex + vy * numXVertices + (ex + 1) % numXVertices; in DMPlexCreateSquareMesh_Simplex_CrissCross()
1382 if (vy == numYVertices - 1) { in DMPlexCreateSquareMesh_Simplex_CrissCross()
1387 } else if (vy == 0) { in DMPlexCreateSquareMesh_Simplex_CrissCross()
1419 for (vy = 0; vy < numYVertices; ++vy) { in DMPlexCreateSquareMesh_Simplex_CrissCross()
1421 … coords[2 * (vy * numXVertices + vx) + 0] = lower[0] + ((upper[0] - lower[0]) / numXEdges) * vx; in DMPlexCreateSquareMesh_Simplex_CrissCross()
1422 … coords[2 * (vy * numXVertices + vx) + 1] = lower[1] + ((upper[1] - lower[1]) / numYEdges) * vy; in DMPlexCreateSquareMesh_Simplex_CrissCross()
1569 PetscInt v, vx, vy, vz; in DMPlexCreateCubeMesh_Internal() local
1718 for (vy = 0; vy < numYVertices; vy++) { in DMPlexCreateCubeMesh_Internal()
1721 const PetscInt edge = firstZEdge + (vy * numXVertices + vx) * numZEdges + ez; in DMPlexCreateCubeMesh_Internal()
1722 const PetscInt vertexB = firstVertex + (ez * numYVertices + vy) * numXVertices + vx; in DMPlexCreateCubeMesh_Internal()
1723 …const PetscInt vertexT = firstVertex + (((ez + 1) % numZVertices) * numYVertices + vy) * numXVerti… in DMPlexCreateCubeMesh_Internal()
1742 if (vy == numYVertices - 1) { in DMPlexCreateCubeMesh_Internal()
1746 } else if (vy == 0) { in DMPlexCreateCubeMesh_Internal()
1818 for (vy = 0; vy < numYVertices; vy++) { in DMPlexCreateCubeMesh_Internal()
1820 …ARY_TWIST && ex == numXEdges - 1) ? (numYVertices - vy - 1) * numXVertices : (vz * numYVertices + … in DMPlexCreateCubeMesh_Internal()
1821 const PetscInt edge = firstXEdge + (vz * numYVertices + vy) * numXEdges + ex; in DMPlexCreateCubeMesh_Internal()
1822 const PetscInt vertexL = firstVertex + (vz * numYVertices + vy) * numXVertices + ex; in DMPlexCreateCubeMesh_Internal()
1831 if (vy == numYVertices - 1) { in DMPlexCreateCubeMesh_Internal()
1836 } else if (vy == 0) { in DMPlexCreateCubeMesh_Internal()
1843 if (vy == 0 && cutLabel) { in DMPlexCreateCubeMesh_Internal()
1851 if (vy == numYVertices - 1) { in DMPlexCreateCubeMesh_Internal()
1855 } else if (vy == 0) { in DMPlexCreateCubeMesh_Internal()
1896 for (vy = 0; vy < numYVertices; ++vy) { in DMPlexCreateCubeMesh_Internal()
1898 …coords[((vz * numYVertices + vy) * numXVertices + vx) * dim + 0] = lower[0] + ((upper[0] - lower[0… in DMPlexCreateCubeMesh_Internal()
1899 …coords[((vz * numYVertices + vy) * numXVertices + vx) * dim + 1] = lower[1] + ((upper[1] - lower[1… in DMPlexCreateCubeMesh_Internal()
1900 …if (dim == 3) coords[((vz * numYVertices + vy) * numXVertices + vx) * dim + 2] = lower[2] + ((uppe… in DMPlexCreateCubeMesh_Internal()