Lines Matching refs:numCells
947 PetscInt i, fStart, fEnd, numCells = 0, numVerts = 0; in DMPlexCreateLineMesh_Internal() local
965 if (rank == 0) numCells = segments; in DMPlexCreateLineMesh_Internal()
969 numPoints[1] = numCells; in DMPlexCreateLineMesh_Internal()
970 …PetscCall(PetscMalloc4(numCells + numVerts, &coneSize, numCells * 2, &cones, numCells + numVerts, … in DMPlexCreateLineMesh_Internal()
971 PetscCall(PetscArrayzero(coneOrientations, numCells + numVerts)); in DMPlexCreateLineMesh_Internal()
972 for (i = 0; i < numCells; ++i) coneSize[i] = 2; in DMPlexCreateLineMesh_Internal()
973 for (i = 0; i < numVerts; ++i) coneSize[numCells + i] = 0; in DMPlexCreateLineMesh_Internal()
974 for (i = 0; i < numCells; ++i) { in DMPlexCreateLineMesh_Internal()
975 cones[2 * i] = numCells + i % numVerts; in DMPlexCreateLineMesh_Internal()
976 cones[2 * i + 1] = numCells + (i + 1) % numVerts; in DMPlexCreateLineMesh_Internal()
978 … < numVerts; ++i) vertexCoords[i] = lower + (upper - lower) * ((PetscReal)i / (PetscReal)numCells); in DMPlexCreateLineMesh_Internal()
1295 const PetscInt numCells = 4 * numXEdges * numYEdges; in DMPlexCreateSquareMesh_Simplex_CrissCross() local
1300 const PetscInt firstVertex = numCells; in DMPlexCreateSquareMesh_Simplex_CrissCross()
1301 const PetscInt firstXEdge = numCells + numVertices; in DMPlexCreateSquareMesh_Simplex_CrissCross()
1311 PetscCall(DMPlexSetChart(dm, 0, numCells + numEdges + numVertices)); in DMPlexCreateSquareMesh_Simplex_CrissCross()
1312 for (c = 0; c < numCells; c++) PetscCall(DMPlexSetConeSize(dm, c, 3)); in DMPlexCreateSquareMesh_Simplex_CrissCross()
1545 const PetscInt numCells = numXEdges * numYEdges * numZEdges; in DMPlexCreateCubeMesh_Internal() local
1558 const PetscInt firstVertex = (dim == 2) ? numFaces : numCells; in DMPlexCreateCubeMesh_Internal()
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()
1573 for (c = 0; c < numCells; c++) PetscCall(DMPlexSetConeSize(dm, c, 6)); in DMPlexCreateCubeMesh_Internal()
2221 PetscInt numCells = 1; in DMPlexCreateHypercubicMesh_Internal() local
2286 numCells = numVertices * dim; in DMPlexCreateHypercubicMesh_Internal()
2287 PetscCall(DMPlexSetChart(dm, 0, numCells + numVertices)); in DMPlexCreateHypercubicMesh_Internal()
2288 for (PetscInt c = 0; c < numCells; ++c) PetscCall(DMPlexSetConeSize(dm, c, 2)); in DMPlexCreateHypercubicMesh_Internal()
2289 …for (PetscInt v = numCells; v < numCells + numVertices; ++v) PetscCall(DMPlexSetSupportSize(dm, v,… in DMPlexCreateHypercubicMesh_Internal()
2295 const PetscInt vertex = TupleToIndex_Private(dim, vertices, vert) + numCells; in DMPlexCreateHypercubicMesh_Internal()
2310 cone[1] = TupleToIndex_Private(dim, vertices, vtmp) + numCells; in DMPlexCreateHypercubicMesh_Internal()
2329 supp[s++] = (vertex - numCells) * dim + d; 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()
2371 leaves[Nl2] = vertex + numCells; 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
2599 numCells = rank == 0 ? 5 : 0; in DMPlexCreateHexCylinderMesh_Internal()
2602 numCells *= 3; in DMPlexCreateHexCylinderMesh_Internal()
2605 PetscCall(DMPlexSetChart(dm, 0, numCells + numVertices)); in DMPlexCreateHexCylinderMesh_Internal()
2606 for (c = 0; c < numCells; c++) PetscCall(DMPlexSetConeSize(dm, c, 8)); 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
3053 numCells = rank == 0 ? n : 0; in DMPlexCreateWedgeCylinderMesh_Internal()
3055 PetscCall(DMPlexSetChart(dm, 0, numCells + numVertices)); in DMPlexCreateWedgeCylinderMesh_Internal()
3056 for (c = 0; c < numCells; c++) PetscCall(DMPlexSetConeSize(dm, c, 6)); in DMPlexCreateWedgeCylinderMesh_Internal()
3058 for (c = 0; c < numCells; c++) { 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()
3096 for (c = 0; c < numCells; c++) { in DMPlexCreateWedgeCylinderMesh_Internal()
3184 PetscInt numCells, numEdges, numVerts = 0, firstVertex = 0, v, firstEdge, coordSize, d, e; in DMPlexCreateSphereMesh_Internal() local
3195 numCells = 16; in DMPlexCreateSphereMesh_Internal()
3196 numVerts = numCells; in DMPlexCreateSphereMesh_Internal()
3199 PetscCall(DMPlexSetChart(dm, 0, numCells + numVerts)); in DMPlexCreateSphereMesh_Internal()
3200 for (PetscInt c = 0; c < numCells; c++) PetscCall(DMPlexSetConeSize(dm, c, embedDim)); in DMPlexCreateSphereMesh_Internal()
3202 for (PetscInt c = 0; c < numCells; ++c) { in DMPlexCreateSphereMesh_Internal()
3205 cone[0] = c + numCells; in DMPlexCreateSphereMesh_Internal()
3206 cone[1] = (c + 1) % numVerts + numCells; in DMPlexCreateSphereMesh_Internal()
3232 numCells = rank == 0 ? 20 : 0; in DMPlexCreateSphereMesh_Internal()
3234 firstVertex = numCells; in DMPlexCreateSphereMesh_Internal()
3267 PetscCall(DMPlexSetChart(dm, 0, numCells + numVerts)); in DMPlexCreateSphereMesh_Internal()
3268 for (PetscInt c = 0; c < numCells; c++) PetscCall(DMPlexSetConeSize(dm, c, embedDim)); in DMPlexCreateSphereMesh_Internal()
3330 numCells = rank == 0 ? 6 : 0; in DMPlexCreateSphereMesh_Internal()
3333 firstVertex = numCells; in DMPlexCreateSphereMesh_Internal()
3334 firstEdge = numCells + numVerts; in DMPlexCreateSphereMesh_Internal()
3336 PetscCall(DMPlexSetChart(dm, 0, numCells + numEdges + numVerts)); in DMPlexCreateSphereMesh_Internal()
3337 for (PetscInt c = 0; c < numCells; c++) PetscCall(DMPlexSetConeSize(dm, c, 4)); in DMPlexCreateSphereMesh_Internal()
3514 numCells = rank == 0 ? 600 : 0; in DMPlexCreateSphereMesh_Internal()
3516 firstVertex = numCells; in DMPlexCreateSphereMesh_Internal()
3575 PetscCall(DMPlexSetChart(dm, 0, numCells + numVerts)); in DMPlexCreateSphereMesh_Internal()
3576 for (PetscInt c = 0; c < numCells; c++) PetscCall(DMPlexSetConeSize(dm, c, embedDim)); in DMPlexCreateSphereMesh_Internal()
5961 PetscErrorCode DMPlexBuildFromCellListParallel(DM dm, PetscInt numCells, PetscInt numVertices, Pets… in DMPlexBuildFromCellListParallel() argument
5973 const PetscInt len = numCells * numCorners; in DMPlexBuildFromCellListParallel()
5992 for (c = 0; c < numCells; ++c) { in DMPlexBuildFromCellListParallel()
6003 PetscCall(DMPlexSetChart(dm, 0, numCells + numVerticesAdj)); in DMPlexBuildFromCellListParallel()
6004 for (c = 0; c < numCells; ++c) PetscCall(DMPlexSetConeSize(dm, c, numCorners)); in DMPlexBuildFromCellListParallel()
6007 for (c = 0; c < numCells; ++c) { in DMPlexBuildFromCellListParallel()
6016 cones[c * numCorners + p] = lv + numCells; in DMPlexBuildFromCellListParallel()
6024 …ndices(layout, numVerticesAdj, verticesAdj, NULL, numCells, numVerticesAdj, verticesAdj, NULL, num… in DMPlexBuildFromCellListParallel()
6106 PetscErrorCode DMPlexBuildFromCellSectionParallel(DM dm, PetscInt numCells, PetscInt numVertices, P… in DMPlexBuildFromCellSectionParallel() argument
6117 …numCells, PetscObjectComm((PetscObject)dm), PETSC_ERR_ARG_WRONG, "Section chart [%" PetscInt_FMT "… in DMPlexBuildFromCellSectionParallel()
6148 PetscCall(DMPlexSetChart(dm, 0, numCells + numVerticesAdj)); in DMPlexBuildFromCellSectionParallel()
6149 for (PetscInt c = 0; c < numCells; ++c) { in DMPlexBuildFromCellSectionParallel()
6157 for (PetscInt c = 0; c < numCells; ++c) { in DMPlexBuildFromCellSectionParallel()
6170 cones[p] = lv + numCells; in DMPlexBuildFromCellSectionParallel()
6178 …ndices(layout, numVerticesAdj, verticesAdj, NULL, numCells, numVerticesAdj, verticesAdj, NULL, num… in DMPlexBuildFromCellSectionParallel()
6309 PetscErrorCode DMPlexCreateFromCellListParallelPetsc(MPI_Comm comm, PetscInt dim, PetscInt numCells… in DMPlexCreateFromCellListParallelPetsc() argument
6319 …PetscCall(DMPlexBuildFromCellListParallel(*dm, numCells, numVertices, NVertices, numCorners, cells… in DMPlexCreateFromCellListParallelPetsc()
6367 PetscErrorCode DMPlexCreateFromCellSectionParallel(MPI_Comm comm, PetscInt dim, PetscInt numCells, … 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
6452 const PetscInt len = numCells * numCorners; in DMPlexBuildFromCellList()
6464 PetscCall(DMPlexSetChart(dm, 0, numCells + numVertices)); in DMPlexBuildFromCellList()
6465 for (c = 0; c < numCells; ++c) PetscCall(DMPlexSetConeSize(dm, c, numCorners)); in DMPlexBuildFromCellList()
6468 for (c = 0; c < numCells; ++c) { in DMPlexBuildFromCellList()
6469 … for (p = 0; p < numCorners; ++p) cones[c * numCorners + p] = cells[c * numCorners + p] + numCells; in DMPlexBuildFromCellList()
6560 PetscErrorCode DMPlexCreateFromCellListPetsc(MPI_Comm comm, PetscInt dim, PetscInt numCells, PetscI… in DMPlexCreateFromCellListPetsc() argument
6570 if (rank == 0) PetscCall(DMPlexBuildFromCellList(*dm, numCells, numVertices, numCorners, cells)); in DMPlexCreateFromCellListPetsc()