Lines Matching refs:numVertices

534   const PetscInt numVertices    = 2;  in DMPlexCreateBoxSurfaceMesh_Tensor_1D_Internal()  local
553 PetscCall(DMPlexSetChart(dm, 0, numVertices)); in DMPlexCreateBoxSurfaceMesh_Tensor_1D_Internal()
564 PetscCall(PetscSectionSetChart(coordSection, 0, numVertices)); in DMPlexCreateBoxSurfaceMesh_Tensor_1D_Internal()
566 for (v = 0; v < numVertices; ++v) { in DMPlexCreateBoxSurfaceMesh_Tensor_1D_Internal()
588 const PetscInt numVertices = (edges[0] + 1) * (edges[1] + 1); in DMPlexCreateBoxSurfaceMesh_Tensor_2D_Internal() local
614 PetscCall(DMPlexSetChart(dm, 0, numEdges + numVertices)); 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()
704 PetscInt vertices[3], numVertices; in DMPlexCreateBoxSurfaceMesh_Tensor_3D_Internal() local
736 numVertices = vertices[0] * vertices[1] * vertices[2]; in DMPlexCreateBoxSurfaceMesh_Tensor_3D_Internal()
740 PetscCall(DMPlexSetChart(dm, 0, numFaces + numVertices)); in DMPlexCreateBoxSurfaceMesh_Tensor_3D_Internal()
858 PetscCall(PetscSectionSetChart(coordSection, numFaces, numFaces + numVertices)); in DMPlexCreateBoxSurfaceMesh_Tensor_3D_Internal()
860 for (v = numFaces; v < numFaces + numVertices; ++v) { in DMPlexCreateBoxSurfaceMesh_Tensor_3D_Internal()
1298 const PetscInt numVertices = numXVertices * numYVertices + numZVertices; in DMPlexCreateSquareMesh_Simplex_CrissCross() local
1301 const PetscInt firstXEdge = numCells + numVertices; in DMPlexCreateSquareMesh_Simplex_CrissCross()
1311 PetscCall(DMPlexSetChart(dm, 0, numCells + numEdges + numVertices)); in DMPlexCreateSquareMesh_Simplex_CrissCross()
1406 PetscCall(PetscSectionSetChart(coordSection, firstVertex, firstVertex + numVertices)); in DMPlexCreateSquareMesh_Simplex_CrissCross()
1407 for (v = firstVertex; v < firstVertex + numVertices; ++v) { in DMPlexCreateSquareMesh_Simplex_CrissCross()
1556 const PetscInt numVertices = numXVertices * numYVertices * numZVertices; in DMPlexCreateCubeMesh_Internal() local
1559 const PetscInt firstXFace = (dim == 2) ? 0 : numCells + numVertices; in DMPlexCreateCubeMesh_Internal()
1562 const PetscInt firstXEdge = numCells + numFaces + numVertices; in DMPlexCreateCubeMesh_Internal()
1572 PetscCall(DMPlexSetChart(dm, 0, numCells + numFaces + numEdges + numVertices)); in DMPlexCreateCubeMesh_Internal()
1882 PetscCall(PetscSectionSetChart(coordSection, firstVertex, firstVertex + numVertices)); in DMPlexCreateCubeMesh_Internal()
1883 for (v = firstVertex; v < firstVertex + numVertices; ++v) { in DMPlexCreateCubeMesh_Internal()
2222 PetscInt numVertices = 1; in DMPlexCreateHypercubicMesh_Internal() local
2284 numVertices *= vertices[d]; in DMPlexCreateHypercubicMesh_Internal()
2286 numCells = numVertices * dim; in DMPlexCreateHypercubicMesh_Internal()
2287 PetscCall(DMPlexSetChart(dm, 0, numCells + numVertices)); in DMPlexCreateHypercubicMesh_Internal()
2289 …for (PetscInt v = numCells; v < numCells + numVertices; ++v) PetscCall(DMPlexSetSupportSize(dm, v,… in DMPlexCreateHypercubicMesh_Internal()
2343 PetscCall(PetscSectionSetChart(coordSection, numCells, numCells + numVertices)); in DMPlexCreateHypercubicMesh_Internal()
2344 for (PetscInt v = numCells; v < numCells + numVertices; ++v) { in DMPlexCreateHypercubicMesh_Internal()
2408 …PetscCall(PetscSFSetGraph(sf, numCells + numVertices, Nl, leaves, PETSC_OWN_POINTER, remotes, PETS… in DMPlexCreateHypercubicMesh_Internal()
2588 PetscInt numCells, numVertices; in DMPlexCreateHexCylinderMesh_Internal() local
2600 numVertices = rank == 0 ? 16 : 0; in DMPlexCreateHexCylinderMesh_Internal()
2603 numVertices = rank == 0 ? 24 : 0; in DMPlexCreateHexCylinderMesh_Internal()
2605 PetscCall(DMPlexSetChart(dm, 0, numCells + numVertices)); in DMPlexCreateHexCylinderMesh_Internal()
2811 PetscCall(PetscSectionSetChart(coordSection, numCells, numCells + numVertices)); in DMPlexCreateHexCylinderMesh_Internal()
2812 for (v = numCells; v < numCells + numVertices; ++v) { in DMPlexCreateHexCylinderMesh_Internal()
3039 PetscInt numCells, numVertices, v; in DMPlexCreateWedgeCylinderMesh_Internal() local
3054 numVertices = rank == 0 ? 2 * (n + 1) : 0; in DMPlexCreateWedgeCylinderMesh_Internal()
3055 PetscCall(DMPlexSetChart(dm, 0, numCells + numVertices)); in DMPlexCreateWedgeCylinderMesh_Internal()
3071 …for (v = numCells; v < numCells + numVertices; ++v) PetscCall(DMPlexSetCellType(dm, v, DM_POLYTOPE… in DMPlexCreateWedgeCylinderMesh_Internal()
3083 PetscCall(PetscSectionSetChart(coordSection, numCells, numCells + numVertices)); in DMPlexCreateWedgeCylinderMesh_Internal()
3084 for (v = numCells; v < numCells + numVertices; ++v) { in DMPlexCreateWedgeCylinderMesh_Internal()
3836 PetscInt topoDim = 2, spaceDim = 3, numFaces = 0, numVertices = 0, numEdges = 0; in DMPlexCreateTPSMesh_Internal() local
3861 numVertices = 4 * (Npipes[0] + Npipes[1] + Npipes[2]) + 8 * Njunctions; in DMPlexCreateTPSMesh_Internal()
3862 PetscCall(PetscMalloc1(3 * numVertices, &vtxCoords)); in DMPlexCreateTPSMesh_Internal()
4190 if (seen[i]) numVertices++; in DMPlexCreateTPSMesh_Internal()
4193 PetscCall(PetscMalloc1(numVertices * 3, &vtxCoords)); in DMPlexCreateTPSMesh_Internal()
4267 if (rank == 0) PetscCall(DMPlexBuildFromCellList(dm, numFaces, numVertices, 4, cells_flat)); in DMPlexCreateTPSMesh_Internal()
5961 PetscErrorCode DMPlexBuildFromCellListParallel(DM dm, PetscInt numCells, PetscInt numVertices, Pets… in DMPlexBuildFromCellListParallel() argument
5982 if (numVertices == PETSC_DECIDE && NVertices == PETSC_DECIDE) NVertices = NVerticesInCells; in DMPlexBuildFromCellListParallel()
6022 PetscCall(PetscLayoutSetLocalSize(layout, numVertices)); in DMPlexBuildFromCellListParallel()
6106 PetscErrorCode DMPlexBuildFromCellSectionParallel(DM dm, PetscInt numCells, PetscInt numVertices, P… in DMPlexBuildFromCellSectionParallel() argument
6129 if (numVertices == PETSC_DECIDE && NVertices == PETSC_DECIDE) NVertices = NVerticesInCells; in DMPlexBuildFromCellSectionParallel()
6176 PetscCall(PetscLayoutSetLocalSize(layout, numVertices)); in DMPlexBuildFromCellSectionParallel()
6219 PetscInt numVertices, numVerticesAdj, coordSize, v, vStart, vEnd; in DMPlexBuildCoordinatesFromCellListParallel() local
6227 PetscCall(PetscSFGetGraph(sfVert, &numVertices, &numVerticesAdj, NULL, NULL)); in DMPlexBuildCoordinatesFromCellListParallel()
6256 PetscCall(PetscMalloc1(numVertices * spaceDim, &svertexCoords)); in DMPlexBuildCoordinatesFromCellListParallel()
6257 for (i = 0; i < numVertices * spaceDim; i++) svertexCoords[i] = vertexCoords[i]; in DMPlexBuildCoordinatesFromCellListParallel()
6309 …ParallelPetsc(MPI_Comm comm, PetscInt dim, PetscInt numCells, PetscInt numVertices, PetscInt NVert… in DMPlexCreateFromCellListParallelPetsc() argument
6319 …PetscCall(DMPlexBuildFromCellListParallel(*dm, numCells, numVertices, NVertices, numCorners, cells… in DMPlexCreateFromCellListParallelPetsc()
6367 …ctionParallel(MPI_Comm comm, PetscInt dim, PetscInt numCells, PetscInt numVertices, PetscInt NVert… in DMPlexCreateFromCellSectionParallel() argument
6377 …PetscCall(DMPlexBuildFromCellSectionParallel(*dm, numCells, numVertices, NVertices, cellSection, c… in DMPlexCreateFromCellSectionParallel()
6442 PetscErrorCode DMPlexBuildFromCellList(DM dm, PetscInt numCells, PetscInt numVertices, PetscInt num… in DMPlexBuildFromCellList() argument
6460 if (numVertices == PETSC_DECIDE) numVertices = NVerticesInCells; in DMPlexBuildFromCellList()
6462numVertices >= NVerticesInCells, PetscObjectComm((PetscObject)dm), PETSC_ERR_ARG_WRONG, "Specified… in DMPlexBuildFromCellList()
6464 PetscCall(DMPlexSetChart(dm, 0, numCells + numVertices)); in DMPlexBuildFromCellList()
6560 …CellListPetsc(MPI_Comm comm, PetscInt dim, PetscInt numCells, PetscInt numVertices, PetscInt numCo… in DMPlexCreateFromCellListPetsc() argument
6570 if (rank == 0) PetscCall(DMPlexBuildFromCellList(*dm, numCells, numVertices, numCorners, cells)); in DMPlexCreateFromCellListPetsc()