Lines Matching refs:numEdges

589   const PetscInt numEdges       = edges[0] * (edges[1] + 1) + (edges[0] + 1) * edges[1];  in DMPlexCreateBoxSurfaceMesh_Tensor_2D_Internal()  local
614 PetscCall(DMPlexSetChart(dm, 0, numEdges + numVertices)); in DMPlexCreateBoxSurfaceMesh_Tensor_2D_Internal()
615 for (e = 0; e < numEdges; ++e) PetscCall(DMPlexSetConeSize(dm, e, 2)); in DMPlexCreateBoxSurfaceMesh_Tensor_2D_Internal()
620 PetscInt vertex = ey * (edges[0] + 1) + vx + numEdges; in DMPlexCreateBoxSurfaceMesh_Tensor_2D_Internal()
646 PetscInt vertex = vy * (edges[0] + 1) + ex + numEdges; in DMPlexCreateBoxSurfaceMesh_Tensor_2D_Internal()
676 PetscCall(PetscSectionSetChart(coordSection, numEdges, numEdges + numVertices)); in DMPlexCreateBoxSurfaceMesh_Tensor_2D_Internal()
678 for (v = numEdges; v < numEdges + numVertices; ++v) { in DMPlexCreateBoxSurfaceMesh_Tensor_2D_Internal()
1299 const PetscInt numEdges = numTotXEdges + numTotYEdges + numZEdges; in DMPlexCreateSquareMesh_Simplex_CrissCross() local
1311 PetscCall(DMPlexSetChart(dm, 0, numCells + numEdges + numVertices)); in DMPlexCreateSquareMesh_Simplex_CrissCross()
1313 for (e = firstXEdge; e < firstXEdge + numEdges; ++e) PetscCall(DMPlexSetConeSize(dm, e, 2)); in DMPlexCreateSquareMesh_Simplex_CrissCross()
1557 const PetscInt numEdges = numTotXEdges + numTotYEdges + numTotZEdges; in DMPlexCreateCubeMesh_Internal() local
1572 PetscCall(DMPlexSetChart(dm, 0, numCells + numFaces + numEdges + numVertices)); in DMPlexCreateCubeMesh_Internal()
1575 for (e = firstXEdge; e < firstXEdge + numEdges; ++e) PetscCall(DMPlexSetConeSize(dm, e, 2)); in DMPlexCreateCubeMesh_Internal()
3184 PetscInt numCells, numEdges, numVerts = 0, firstVertex = 0, v, firstEdge, coordSize, d, e; in DMPlexCreateSphereMesh_Internal() local
3331 numEdges = rank == 0 ? 12 : 0; in DMPlexCreateSphereMesh_Internal()
3336 PetscCall(DMPlexSetChart(dm, 0, numCells + numEdges + numVerts)); in DMPlexCreateSphereMesh_Internal()
3338 for (e = firstEdge; e < firstEdge + numEdges; ++e) PetscCall(DMPlexSetConeSize(dm, e, 2)); in DMPlexCreateSphereMesh_Internal()
3836 PetscInt topoDim = 2, spaceDim = 3, numFaces = 0, numVertices = 0, numEdges = 0; in DMPlexCreateTPSMesh_Internal() local
3940 edges[numEdges][0] = pipe_lo[dir] + l; in DMPlexCreateTPSMesh_Internal()
3941 edges[numEdges][1] = pipe_lo[dir] + (l + 1) % 4; in DMPlexCreateTPSMesh_Internal()
3942 edgeSets[numEdges] = dir * 2 + 1; in DMPlexCreateTPSMesh_Internal()
3943 numEdges++; in DMPlexCreateTPSMesh_Internal()
3946 edges[numEdges][0] = pipe_hi[dir] + l; in DMPlexCreateTPSMesh_Internal()
3947 edges[numEdges][1] = pipe_hi[dir] + (l + 1) % 4; in DMPlexCreateTPSMesh_Internal()
3948 edgeSets[numEdges] = dir * 2 + 2; in DMPlexCreateTPSMesh_Internal()
3949 numEdges++; in DMPlexCreateTPSMesh_Internal()
3956numEdges == Ncuts * 4, PetscObjectComm((PetscObject)dm), PETSC_ERR_PLIB, "Edge count %" PetscInt_F… in DMPlexCreateTPSMesh_Internal()
4223 numEdges = 0; in DMPlexCreateTPSMesh_Internal()
4231 if (evCoords[0][d] == 0. && evCoords[1][d] == 0.) numEdges++; in DMPlexCreateTPSMesh_Internal()
4232 if (evCoords[0][d] == 2. * extent[d] && evCoords[1][d] == 2. * extent[d]) numEdges++; in DMPlexCreateTPSMesh_Internal()
4237 PetscCall(PetscMalloc1(numEdges, &edges)); in DMPlexCreateTPSMesh_Internal()
4238 PetscCall(PetscMalloc1(numEdges, &edgeSets)); in DMPlexCreateTPSMesh_Internal()
4281 for (PetscInt e = 0; e < numEdges; e++) { in DMPlexCreateTPSMesh_Internal()