| /petsc/src/dm/partitioner/impls/simple/ |
| H A D | partsimple.c | 44 …Partition_Simple_Grid(PetscPartitioner part, PetscInt nparts, PetscInt numVertices, PetscInt start… in PetscPartitionerPartition_Simple_Grid() argument 63 …numVertices % nparts == 0, comm, PETSC_ERR_ARG_INCOMP, "Number of cells %" PetscInt_FMT " is not d… in PetscPartitionerPartition_Simple_Grid() 65 Nr = numVertices / nparts; in PetscPartitionerPartition_Simple_Grid() 72 …scCheck(!numVertices || Nr == 1, PETSC_COMM_SELF, PETSC_ERR_ARG_INCOMP, "Odd number of cells %" Pe… in PetscPartitionerPartition_Simple_Grid() 78 …for (np = 0; np < nparts; ++np) PetscCall(PetscSectionSetDof(partSection, np, numVertices / nparts… in PetscPartitionerPartition_Simple_Grid() 82 if (!numVertices) pcells[0] = pcells[1] = pcells[2] = 0; in PetscPartitionerPartition_Simple_Grid() 84 PetscCall(PetscMalloc1(numVertices, &cellproc)); in PetscPartitionerPartition_Simple_Grid() 111 …= numVertices / nparts, PETSC_COMM_SELF, PETSC_ERR_ARG_INCOMP, "Offset %" PetscInt_FMT " != %" Pet… in PetscPartitionerPartition_Simple_Grid() 113 PetscCall(ISCreateGeneral(PETSC_COMM_SELF, numVertices, cellproc, PETSC_OWN_POINTER, partition)); in PetscPartitionerPartition_Simple_Grid() 117 …ionerPartition_Simple(PetscPartitioner part, PetscInt nparts, PetscInt numVertices, PetscInt start… in PetscPartitionerPartition_Simple() argument [all …]
|
| /petsc/src/dm/impls/plex/hdf5/ |
| H A D | plexhdf5xdmf.c | 67 PetscInt spatialDim, topoDim = -1, numCells, numVertices, NVertices, numCorners; in DMPlexLoad_HDF5_Xdmf_Internal() local 111 PetscCall(PetscViewerHDF5ReadSizes(viewer, geom_name, NULL, &numVertices)); in DMPlexLoad_HDF5_Xdmf_Internal() 112 PetscCall(PetscLayoutSetSize(coordinates->map, numVertices)); in DMPlexLoad_HDF5_Xdmf_Internal() 113 numVertices = rank == 0 ? numVertices : 0; in DMPlexLoad_HDF5_Xdmf_Internal() 114 PetscCall(PetscLayoutSetLocalSize(coordinates->map, numVertices)); in DMPlexLoad_HDF5_Xdmf_Internal() 117 PetscCall(VecGetLocalSize(coordinates, &numVertices)); in DMPlexLoad_HDF5_Xdmf_Internal() 121 numVertices /= spatialDim; in DMPlexLoad_HDF5_Xdmf_Internal() 124 …%" PetscInt_FMT " spatialDim %" PetscInt_FMT "\n", numCells, numCorners, numVertices, spatialDim)); in DMPlexLoad_HDF5_Xdmf_Internal() 138 PetscCall(PetscMalloc1(numVertices * spatialDim, &coordinates_arr_real)); in DMPlexLoad_HDF5_Xdmf_Internal() 139 for (i = 0; i < numVertices * spatialDim; ++i) { in DMPlexLoad_HDF5_Xdmf_Internal() [all …]
|
| /petsc/src/dm/partitioner/impls/matpart/ |
| H A D | partmatpart.c | 88 …ition_MatPartitioning(PetscPartitioner part, PetscInt nparts, PetscInt numVertices, PetscInt start… in PetscPartitionerPartition_MatPartitioning() argument 104 PetscCall(PetscSplitOwnership(comm, &numVertices, &numVerticesGlobal)); in PetscPartitionerPartition_MatPartitioning() 107 numEdges = start[numVertices]; in PetscPartitionerPartition_MatPartitioning() 108 PetscCall(PetscMalloc1(numVertices + 1, &i)); in PetscPartitionerPartition_MatPartitioning() 110 PetscCall(PetscArraycpy(i, start, numVertices + 1)); in PetscPartitionerPartition_MatPartitioning() 114 PetscCall(MatCreateMPIAdj(comm, numVertices, numVerticesGlobal, i, j, NULL, &matadj)); in PetscPartitionerPartition_MatPartitioning() 150 PetscCall(PetscMalloc1(numVertices, &vwgt)); in PetscPartitionerPartition_MatPartitioning() 151 for (v = 0; v < numVertices; ++v) PetscCall(PetscSectionGetDof(vertSection, v, &vwgt[v])); in PetscPartitionerPartition_MatPartitioning() 164 …for (v = 0; v < numVertices; ++v) PetscCall(PetscSectionAddDof(partSection, assignment_arr[v], 1)); in PetscPartitionerPartition_MatPartitioning() 180 PetscCall(ISInvertPermutation(is3, numVertices, &is1)); in PetscPartitionerPartition_MatPartitioning()
|
| /petsc/src/dm/partitioner/interface/ |
| H A D | partitioner.c | 302 …cPartitionerPartition(PetscPartitioner part, PetscInt nparts, PetscInt numVertices, PetscInt start… in PetscPartitionerPartition() argument 308 …PetscCheck(numVertices >= 0, PETSC_COMM_SELF, PETSC_ERR_ARG_OUTOFRANGE, "Number of vertices must b… in PetscPartitionerPartition() 309 if (numVertices && !part->noGraph) { in PetscPartitionerPartition() 311 PetscAssertPointer(start + numVertices, 4); in PetscPartitionerPartition() 312 if (start[numVertices]) PetscAssertPointer(adjacency, 5); in PetscPartitionerPartition() 319 …PetscCheck(s <= 0 && e >= numVertices, PETSC_COMM_SELF, PETSC_ERR_ARG_OUTOFRANGE, "Invalid vertexS… in PetscPartitionerPartition() 326 …PetscCheck(s <= 0 && e >= start[numVertices], PETSC_COMM_SELF, PETSC_ERR_ARG_OUTOFRANGE, "Invalid … in PetscPartitionerPartition() 341 PetscCall(PetscSectionSetDof(partSection, 0, numVertices)); in PetscPartitionerPartition() 342 PetscCall(ISCreateStride(PetscObjectComm((PetscObject)part), numVertices, 0, 1, partition)); in PetscPartitionerPartition() 343 …} else PetscUseTypeMethod(part, partition, nparts, numVertices, start, adjacency, vertexSection, e… in PetscPartitionerPartition() [all …]
|
| /petsc/src/dm/partitioner/impls/chaco/ |
| H A D | partchaco.c | 42 …tionerPartition_Chaco(PetscPartitioner part, PetscInt nparts, PetscInt numVertices, PetscInt start… in PetscPartitionerPartition_Chaco() argument 50 int nvtxs = numVertices; /* number of vertices in full graph */ in PetscPartitionerPartition_Chaco() 83 ival = (numVertices > 0); in PetscPartitionerPartition_Chaco() 88 if (!numVertices) { /* distributed case, return if not holding the graph */ in PetscPartitionerPartition_Chaco() 93 for (i = 0; i < start[numVertices]; ++i) ++adjacency[i]; in PetscPartitionerPartition_Chaco() 149 for (i = 0; i < start[numVertices]; ++i) --adjacency[i]; in PetscPartitionerPartition_Chaco()
|
| /petsc/src/dm/partitioner/impls/shell/ |
| H A D | partshell.c | 83 …tionerPartition_Shell(PetscPartitioner part, PetscInt nparts, PetscInt numVertices, PetscInt start… in PetscPartitionerPartition_Shell() argument 98 PetscCall(PetscCalloc2(nparts, &sizes, numVertices, &points)); in PetscPartitionerPartition_Shell() 99 for (v = 0; v < numVertices; ++v) points[v] = v; in PetscPartitionerPartition_Shell() 100 …for (p = 0; p < nparts; ++p) sizes[p] = numVertices / nparts + (PetscInt)(p < numVertices % nparts… in PetscPartitionerPartition_Shell() 101 for (v = numVertices - 1; v > 0; --v) { in PetscPartitionerPartition_Shell() 120 …numVertices == np, PETSC_COMM_SELF, PETSC_ERR_ARG_OUTOFRANGE, "Number of input vertices %" PetscIn… in PetscPartitionerPartition_Shell()
|
| /petsc/src/dm/partitioner/impls/gather/ |
| H A D | partgather.c | 14 …ionerPartition_Gather(PetscPartitioner part, PetscInt nparts, PetscInt numVertices, PetscInt start… in PetscPartitionerPartition_Gather() argument 19 PetscCall(ISCreateStride(PETSC_COMM_SELF, numVertices, 0, 1, partition)); in PetscPartitionerPartition_Gather() 20 PetscCall(PetscSectionSetDof(partSection, 0, numVertices)); in PetscPartitionerPartition_Gather()
|
| /petsc/src/dm/impls/plex/adaptors/pragmatic/ |
| H A D | pragmaticadapt.c | 22 …PetscInt dim, cStart, cEnd, numCells, c, coff, vStart, vEnd, numVertices, numLocVertices… in DMAdaptMetric_Pragmatic_Plex() local 65 numVertices = vEnd - vStart; in DMAdaptMetric_Pragmatic_Plex() 66 …PetscCall(PetscCalloc5(numVertices, &x, numVertices, &y, numVertices, &z, numVertices * PetscSqr(d… in DMAdaptMetric_Pragmatic_Plex() 79 PetscCall(PetscCalloc1(numVertices, &l2gv)); in DMAdaptMetric_Pragmatic_Plex() 82 for (v = 0, numLocVertices = 0; v < numVertices; ++v) { in DMAdaptMetric_Pragmatic_Plex() 162 …PetscStackCallExternalVoid("pragmatic_2d_mpi_init", pragmatic_2d_mpi_init(&numVertices, &numCells,… in DMAdaptMetric_Pragmatic_Plex() 165 …PetscStackCallExternalVoid("pragmatic_3d_mpi_init", pragmatic_3d_mpi_init(&numVertices, &numCells,… in DMAdaptMetric_Pragmatic_Plex()
|
| /petsc/src/dm/impls/plex/tests/ |
| H A D | ex18.c | 320 PetscInt numCells, numVertices, network; in CreateMesh_1D() local 334 numVertices = numCells + 1; in CreateMesh_1D() 335 PetscCall(PetscMalloc2(2 * numCells, &cells, 2 * numVertices, &coords)); in CreateMesh_1D() 343 …PetscCall(DMPlexCreateFromCellListPetsc(comm, user->dim, numCells, numVertices, numCorners, PETSC_… in CreateMesh_1D() 354 numVertices = numCells; in CreateMesh_1D() 367 numVertices = numCells + 1; in CreateMesh_1D() 384 numVertices = 3; in CreateMesh_1D() 393 numVertices = 1; in CreateMesh_1D() 402 …PetscCall(DMPlexCreateFromCellListParallelPetsc(comm, user->dim, numCells, numVertices, PETSC_DECI… in CreateMesh_1D() 420 const PetscInt numCells = 1, numVertices = 2, numCorners = 3; in CreateSimplex_2D() local [all …]
|
| H A D | ex1f90.F90 | 12 PetscInt v, numVertices, numPoints 24 numVertices = 6 25 numPoints = numCells + numVertices
|
| H A D | dmplexcomputecellgeometryfem.F90 | 10 PetscInt :: numVertices = 3, numCorners = 3 39 …PetscCallA(DMPlexCreateFromCellListPetsc(PETSC_COMM_WORLD, numDim, numCells, numVertices, numCorne… 71 numVertices = 4 73 …PetscCallA(DMPlexCreateFromCellListPetsc(PETSC_COMM_WORLD, numDim, numCells, numVertices, numCorne…
|
| /petsc/src/dm/impls/plex/generators/tetgen/ |
| H A D | tetgenerate.cxx | 119 PetscInt *points = nullptr, numPoints, p, numVertices = 0, v, val = -1; in DMPlexGenerate_Tetgen() local 129 if ((point >= vStart) && (point < vEnd)) points[numVertices++] = point; in DMPlexGenerate_Tetgen() 133 poly->numberofvertices = numVertices; in DMPlexGenerate_Tetgen() 135 for (v = 0; v < numVertices; ++v) { in DMPlexGenerate_Tetgen() 163 const PetscInt numVertices = out.numberofpoints; in DMPlexGenerate_Tetgen() local 172 meshCoords = new PetscReal[dim * numVertices]; in DMPlexGenerate_Tetgen() 173 for (i = 0; i < dim * numVertices; ++i) meshCoords[i] = (PetscReal)out.pointlist[i]; in DMPlexGenerate_Tetgen() 185 …PetscCall(DMPlexCreateFromCellListPetsc(comm, dim, numCells, numVertices, numCorners, interpolate,… in DMPlexGenerate_Tetgen() 189 for (v = 0; v < numVertices; ++v) { in DMPlexGenerate_Tetgen() 383 PetscInt *points = nullptr, numPoints, p, numVertices = 0, v, val; in DMPlexRefine_Tetgen() local [all …]
|
| /petsc/lib/petsc/bin/ |
| H A D | petsc_gen_xdmf.py | 35 def writeVertices(self, fp, geometryPath, numVertices, spaceDim): argument 43 ''' % (numVertices, spaceDim, geometryPath)) 205 …Corners, cellDim, htopologyPath, numHCells, numHCorners, geometryPath, numVertices, spaceDim, time… argument 215 self.writeVertices(fp, geometryPath, numVertices, spaceDim) 265 numVertices = vertices.shape[0] 294 …lls, numCorners, cellDim, htopoPath, numHCells, numHCorners, geomPath, numVertices, spaceDim, time…
|
| /petsc/src/dm/impls/plex/ |
| H A D | plexpartition.c | 12 …DMPlexCreatePartitionerGraph_Overlap(DM dm, PetscInt height, PetscInt *numVertices, PetscInt **off… in DMPlexCreatePartitionerGraph_Overlap() argument 30 PetscCall(DMPlexCreateNeighborCSR(dm, height, numVertices, offsets, adjacency)); in DMPlexCreatePartitionerGraph_Overlap() 34 if (!*numVertices) { in DMPlexCreatePartitionerGraph_Overlap() 39 …if (rank) PetscCheck(!*numVertices, PETSC_COMM_SELF, PETSC_ERR_SUP, "Parallel partitioning of unin… in DMPlexCreatePartitionerGraph_Overlap() 62 for (*numVertices = 0, c = cStart; c < cEnd; ++c) { in DMPlexCreatePartitionerGraph_Overlap() 65 (*numVertices)++; in DMPlexCreatePartitionerGraph_Overlap() 67 PetscCall(PetscCalloc1(*numVertices + 1, &vOffsets)); in DMPlexCreatePartitionerGraph_Overlap() 81 PetscCall(PetscMalloc1(vOffsets[*numVertices], &vAdj)); in DMPlexCreatePartitionerGraph_Overlap() 111 … DMPlexCreatePartitionerGraph_Native(DM dm, PetscInt height, PetscInt *numVertices, PetscInt **off… in DMPlexCreatePartitionerGraph_Native() argument 132 PetscCall(DMPlexCreateNeighborCSR(dm, height, numVertices, offsets, adjacency)); in DMPlexCreatePartitionerGraph_Native() [all …]
|
| H A D | plexfluent.c | 685 PetscInt numVertices = 0; in DMPlexCreateFluent() local 720 numVertices = s.last; in DMPlexCreateFluent() 721 …etscInfo((PetscObject)viewer, "CASE: Found number of vertices: %" PetscInt_FMT "\n", numVertices)); in DMPlexCreateFluent() 813 PetscCall(DMPlexSetChart(*dm, 0, numCells + numFaces + numVertices)); in DMPlexCreateFluent() 820 …for (PetscInt v = numCells; v < numCells + numVertices; ++v) PetscCall(DMPlexSetCellType(*dm, v, D… in DMPlexCreateFluent() 837 PetscCall(DMPlexSetConeSize(*dm, f + numCells + numVertices, faceSizes[f])); in DMPlexCreateFluent() 838 PetscCall(DMPlexSetCellType(*dm, f + numCells + numVertices, ct)); in DMPlexCreateFluent() 854 const PetscInt face = f + numCells + numVertices; in DMPlexCreateFluent() 946 PetscCall(PetscSectionSetChart(coordSection, numCells, numCells + numVertices)); in DMPlexCreateFluent() 947 for (PetscInt v = numCells; v < numCells + numVertices; ++v) { in DMPlexCreateFluent() [all …]
|
| H A D | plexcreate.c | 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() [all …]
|
| /petsc/src/ts/tutorials/network/ |
| H A D | pipes.c | 22 …PetscInt i, e, v, numEdges, numVertices, nedges, *eowners = NULL, estart, eend, *vtype = NULL, … in WashNetworkDistribute() local 31 numVertices = wash->nvertex; in WashNetworkDistribute() 41 PetscCall(PetscCalloc3(size + 1, &eowners, size, &nvtx, numVertices, &vtxDone)); in WashNetworkDistribute() 88 PetscCallMPI(MPI_Bcast(&numVertices, 1, MPIU_INT, 0, PETSC_COMM_WORLD)); in WashNetworkDistribute() 92 wash->Nvertex = numVertices; in WashNetworkDistribute() 424 PetscInt i, numVertices, numEdges, *vtype; in WashNetworkCreate() local 442 numVertices = 0; in WashNetworkCreate() 463 numVertices = 0; in WashNetworkCreate() 467 numVertices = wash->nvertex; in WashNetworkCreate() 478 PetscCall(PetscCalloc2(numVertices, &junctions, numEdges, &pipes)); in WashNetworkCreate() [all …]
|
| /petsc/src/dm/impls/plex/generators/triangle/ |
| H A D | trigenerate.c | 170 const PetscInt numVertices = out.numberofpoints; in DMPlexGenerate_Triangle() local 179 PetscCall(PetscMalloc1(dim * numVertices, &meshCoords)); in DMPlexGenerate_Triangle() 180 for (i = 0; i < dim * numVertices; i++) meshCoords[i] = (PetscReal)out.pointlist[i]; in DMPlexGenerate_Triangle() 190 …PetscCall(DMPlexCreateFromCellListPetsc(comm, dim, numCells, numVertices, numCorners, interpolate,… in DMPlexGenerate_Triangle() 202 for (v = 0; v < numVertices; ++v) { in DMPlexGenerate_Triangle() 335 const PetscInt numVertices = out.numberofpoints; in DMPlexRefine_Triangle() local 345 PetscCall(PetscMalloc1(dim * numVertices, &meshCoords)); in DMPlexRefine_Triangle() 346 for (i = 0; i < dim * numVertices; i++) meshCoords[i] = (PetscReal)out.pointlist[i]; in DMPlexRefine_Triangle() 357 …PetscCall(DMPlexCreateFromCellListPetsc(comm, dim, numCells, numVertices, numCorners, interpolate,… in DMPlexRefine_Triangle() 365 for (v = 0; v < numVertices; ++v) { in DMPlexRefine_Triangle()
|
| /petsc/src/dm/impls/plex/adaptors/mmg/ |
| H A D | mmgadapt.c | 29 …nt cStart, cEnd, c, numCells, fStart, fEnd, numFaceTags, f, vStart, vEnd, v, numVertices; in DMAdaptMetric_Mmg_Plex() local 59 numVertices = vEnd - vStart; in DMAdaptMetric_Mmg_Plex() 77 PetscCall(PetscMalloc2(numVertices * Neq, &metric, dim * numVertices, &vertices)); in DMAdaptMetric_Mmg_Plex() 124 PetscCall(PetscCalloc2(numVertices, &verTags, numCells, &cellTags)); in DMAdaptMetric_Mmg_Plex() 169 PetscCallMMG_NONSTANDARD(MMG2D_Set_meshSize, mmg_mesh, numVertices, numCells, 0, numFaceTags); in DMAdaptMetric_Mmg_Plex() 173 …PetscCallMMG_NONSTANDARD(MMG2D_Set_solSize, mmg_mesh, mmg_metric, MMG5_Vertex, numVertices, MMG5_T… in DMAdaptMetric_Mmg_Plex() 186 …PetscCallMMG_NONSTANDARD(MMG3D_Set_meshSize, mmg_mesh, numVertices, numCells, 0, numFaceTags, 0, 0… in DMAdaptMetric_Mmg_Plex() 190 …PetscCallMMG_NONSTANDARD(MMG3D_Set_solSize, mmg_mesh, mmg_metric, MMG5_Vertex, numVertices, MMG5_T… in DMAdaptMetric_Mmg_Plex()
|
| /petsc/src/dm/impls/plex/generators/ctetgen/ |
| H A D | ctetgenerate.c | 98 PetscInt *points = NULL, numPoints, p, numVertices = 0, v, m = -1; in DMPlexGenerate_CTetgen() local 109 if ((point >= vStart) && (point < vEnd)) points[numVertices++] = point; in DMPlexGenerate_CTetgen() 113 poly->numberofvertices = numVertices; in DMPlexGenerate_CTetgen() 115 for (v = 0; v < numVertices; ++v) { in DMPlexGenerate_CTetgen() 148 const PetscInt numVertices = out->numberofpoints; in DMPlexGenerate_CTetgen() local 157 PetscCall(PetscMalloc1(dim * numVertices, &meshCoords)); in DMPlexGenerate_CTetgen() 158 for (i = 0; i < dim * numVertices; ++i) meshCoords[i] = (PetscReal)out->pointlist[i]; in DMPlexGenerate_CTetgen() 170 …PetscCall(DMPlexCreateFromCellListPetsc(comm, dim, numCells, numVertices, numCorners, interpolate,… in DMPlexGenerate_CTetgen() 176 for (v = 0; v < numVertices; ++v) { in DMPlexGenerate_CTetgen() 422 const PetscInt numVertices = out->numberofpoints; in DMPlexRefine_CTetgen() local [all …]
|
| /petsc/src/dm/partitioner/impls/multistage/ |
| H A D | mspart.c | 584 …rPartition_Multistage(PetscPartitioner part, PetscInt nparts, PetscInt numVertices, PetscInt start… in PetscPartitionerPartition_Multistage() argument 650 …PetscCheck(numVertices == cum, PETSC_COMM_SELF, PETSC_ERR_PLIB, "Unexpected %" PetscInt_FMT " != %… in PetscPartitionerPartition_Multistage() 657 PetscCall(ISCreateGeneral(pcomm, numVertices, idxs2, PETSC_OWN_POINTER, &gid)); in PetscPartitionerPartition_Multistage() 665 PetscCall(PetscMalloc2(numVertices + 1, &pstart, start[numVertices], &padjacency)); in PetscPartitionerPartition_Multistage() 667 for (i = 0; i < numVertices; i++) { in PetscPartitionerPartition_Multistage() 685 …PetscCall(PetscPartitionerPartition(ppart, pparts, numVertices, pstart, padjacency, vertSection, e… in PetscPartitionerPartition_Multistage() 689 PetscCall(ISCreateStride(PETSC_COMM_SELF, numVertices, 0, 1, &lpartition)); in PetscPartitionerPartition_Multistage() 690 pparts = numVertices > 0 ? 1 : 0; in PetscPartitionerPartition_Multistage()
|
| /petsc/src/tao/tutorials/ |
| H A D | ex3.c | 82 PetscInt numVertices; in CreateMesh() local 110 PetscCall(VecGetSize(coordinates, &numVertices)); in CreateMesh() 111 numVertices = numVertices / dim; in CreateMesh() 120 …PetscCall(DMPlexCreateFromCellListPetsc(comm, dim, numCells, numVertices, vertices_per_cell, PETSC… in CreateMesh()
|
| /petsc/src/dm/impls/plex/exodusii/ |
| H A D | plexexodusii2.c | 778 …PetscInt pStart, pEnd, p, cStart, cEnd, numCells, vStart, vEnd, numVertices, eStart, eEn… in DMView_PlexExodusII() local 816 numVertices = vEnd - vStart; in DMView_PlexExodusII() 817 …PetscCheck(!(rank && (numCells || numEdges || numVertices)), PETSC_COMM_SELF, PETSC_ERR_SUP, "Writ… in DMView_PlexExodusII() 865 numNodes = numVertices; in DMView_PlexExodusII() 1675 int dim = 0, dimEmbed = 0, numVertices = 0, numCells = 0; in DMPlexCreateExodus() local 1686 …PetscCallExternal(ex_get_init, exoid, title, &dimEmbed, &numVertices, &numCells, &num_cs, &num_vs,… in DMPlexCreateExodus() 1692 PetscCall(DMPlexSetChart(*dm, 0, numCells + numVertices)); in DMPlexCreateExodus() 1748 …for (v = numCells; v < numCells + numVertices; ++v) PetscCall(DMPlexSetCellType(*dm, v, DM_POLYTOP… in DMPlexCreateExodus() 1814 PetscCall(PetscSectionSetChart(coordSection, numCells, numCells + numVertices)); in DMPlexCreateExodus() 1815 for (v = numCells; v < numCells + numVertices; ++v) { in DMPlexCreateExodus() [all …]
|
| /petsc/src/snes/tutorials/network/ |
| H A D | ex1.c | 459 PetscInt Nsubnet = 2, numVertices[2], numEdges[2], i, j, nv, ne, it_max = 10; in main() local 497 numVertices[i] = 0; in main() 510 numVertices[0] = pfdata->nbus; in main() 531 numVertices[1] = waterdata->nvertex; in main() 556 … PetscInt_FMT " = %" PetscInt_FMT "\n", rank, numVertices[0], numVertices[1], numVertices[0] + num… in main()
|
| /petsc/src/dm/impls/da/ |
| H A D | dalocal.c | 143 … dm, PetscInt *numVerticesX, PetscInt *numVerticesY, PetscInt *numVerticesZ, PetscInt *numVertices) in DMDAGetNumVertices() argument 166 if (numVertices) { in DMDAGetNumVertices() 167 PetscAssertPointer(numVertices, 5); in DMDAGetNumVertices() 168 *numVertices = nV; in DMDAGetNumVertices()
|