| /petsc/src/dm/impls/swarm/ |
| H A D | swarmpic_sort.c | 33 ctx->ncells = 0; in DMSwarmSortCreate() 41 static PetscErrorCode DMSwarmSortSetup(DMSwarmSort ctx, DM dm, PetscInt ncells) in DMSwarmSortSetup() argument 55 if (ncells != ctx->ncells) { in DMSwarmSortSetup() 56 PetscCall(PetscRealloc(sizeof(PetscInt) * (ncells + 1), &ctx->pcell_offsets)); in DMSwarmSortSetup() 57 ctx->ncells = ncells; in DMSwarmSortSetup() 59 PetscCall(PetscArrayzero(ctx->pcell_offsets, ctx->ncells + 1)); in DMSwarmSortSetup() 84 for (c = 0; c < ctx->ncells; c++) { in DMSwarmSortSetup() 140 …ncells, PETSC_COMM_SELF, PETSC_ERR_USER, "Cell index (%" PetscInt_FMT ") is greater than max numbe… in DMSwarmSortGetNumberOfPointsPerCell() 253 PetscInt ncells = 0; in DMSwarmSortGetAccess() local 274 ncells = nel; in DMSwarmSortGetAccess() [all …]
|
| H A D | swarmpic.c | 752 PetscErrorCode DMSwarmCreatePointPerCellCount(DM sw, PetscInt *ncells, PetscInt **count) in DMSwarmCreatePointPerCellCount() argument 814 if (ncells) *ncells = nel; in DMSwarmCreatePointPerCellCount()
|
| /petsc/src/dm/impls/plex/ |
| H A D | plexvtu.c | 6 PetscInt ncells; member 59 PetscCall(PetscMalloc3(piece->nconn, &conn, piece->ncells, &offsets, piece->ncells, &types)); in DMPlexGetVTKConnectivity() 114 …PetscCheck(countcell == piece->ncells, PETSC_COMM_SELF, PETSC_ERR_PLIB, "Inconsistent cell count"); in DMPlexGetVTKConnectivity() 205 piece.ncells = 0; in DMPlexVTKWriteAll_VTU() 233 piece.ncells++; in DMPlexVTKWriteAll_VTU() 245 … PetscInt_FMT "\" NumberOfCells=\"%" PetscInt_FMT "\">\n", gpiece[r].nvertices, gpiece[r].ncells)); in DMPlexVTKWriteAll_VTU() 256 … boffset += gpiece[r].ncells * sizeof(PetscVTKInt) + (gpiece[r].ncells ? sizeof(PetscInt64) : 0); in DMPlexVTKWriteAll_VTU() 258 … boffset += gpiece[r].ncells * sizeof(unsigned char) + (gpiece[r].ncells ? sizeof(PetscInt64) : 0); in DMPlexVTKWriteAll_VTU() 266 … boffset += gpiece[r].ncells * sizeof(PetscVTKInt) + (gpiece[r].ncells ? sizeof(PetscInt64) : 0); in DMPlexVTKWriteAll_VTU() 321 …boffset += gpiece[r].ncells * 3 * sizeof(PetscVTUReal) + (gpiece[r].ncells ? sizeof(PetscInt64) : … in DMPlexVTKWriteAll_VTU() [all …]
|
| H A D | plexgeometry.c | 3023 PetscInt ncells, ghost = -1, d, numChildren; in DMPlexComputeGeometryFVM() local 3028 PetscCall(DMPlexGetSupportSize(dm, f, &ncells)); in DMPlexComputeGeometryFVM() 3030 if (!ncells || ghost >= 0 || numChildren) continue; in DMPlexComputeGeometryFVM() 3042 if (ncells > 1) { in DMPlexComputeGeometryFVM() 3063 if (ncells > 1 && cells[1] < cEndInterior) { in DMPlexComputeGeometryFVM()
|
| /petsc/src/mat/tutorials/ |
| H A D | ex11.c | 16 PetscInt ncells = 2; /* number cells on this process */ in main() local 48 PetscCall(MatCreateMPIAdj(MPI_COMM_WORLD, ncells, Nvertices, ii, jj, NULL, &mesh)); in main()
|
| H A D | ex11f.F90 | 11 PetscInt, parameter :: Nvertices = 6, ncells = 2, two = 2 40 …PetscCallA(MatCreateMPIAdj(PETSC_COMM_WORLD, ncells, Nvertices, ii, jj, PETSC_NULL_INTEGER_ARRAY, …
|
| /petsc/include/petsc/private/ |
| H A D | dmswarmimpl.h | 94 PetscInt ncells, npoints; member
|
| /petsc/src/ts/tutorials/ |
| H A D | extchemfield.c | 94 PetscInt steps, ncells, xs, xm, i; in main() local 128 …PetscCall(DMDAGetInfo(user.dm, NULL, &ncells, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL… in main() 129 …user.dx = 1.0 / ncells; /* Set the coordinates of the cell centers; note final ghost cell is at x … in main()
|
| /petsc/src/binding/petsc4py/src/petsc4py/PETSc/ |
| H A D | DMSwarm.pyx | 909 ncells : int 919 cdef PetscInt ncells = asInt(0) 921 CHKERR(DMSwarmSortGetSizes(self.dm, &ncells, &npoints)) 922 return (toInt(ncells), toInt(npoints))
|
| /petsc/src/ksp/ksp/tutorials/ |
| H A D | ex42.c | 43 PetscInt ncells; member 63 cells->ncells = mx * my * mz; in CellPropertiesCreate()
|
| /petsc/src/ts/utils/dmplexlandau/ |
| H A D | plexland.c | 1707 PetscInt ncells = 0, N; in CreateStaticData() local 1711 for (PetscInt grid = 0; grid < ctx->num_grids; grid++) ncells += numCells[grid]; in CreateStaticData() 1712 …" N=%" PetscInt_FMT " nnz= %" PetscInt_FMT "\n", 0, "FormLandau", nip_glb, ncells, Nb, Nq, dim, Nb, in CreateStaticData()
|
| /petsc/src/dm/impls/forest/p4est/ |
| H A D | pforest.h | 4589 PetscInt ncells[2], gncells[2]; in DMForestTransferVecFromBase_pforest() local 4593 PetscCall(ISGetMinMax(gnum[0], NULL, &ncells[0])); in DMForestTransferVecFromBase_pforest() 4594 PetscCall(ISGetMinMax(gnum[1], NULL, &ncells[1])); in DMForestTransferVecFromBase_pforest() 4595 …PetscCallMPI(MPIU_Allreduce(ncells, gncells, 2, MPIU_INT, MPI_MAX, PetscObjectComm((PetscObject)dm… in DMForestTransferVecFromBase_pforest()
|
| /petsc/share/petsc/datafiles/meshes/ |
| H A D | testcase3D.cas | 4566 (mp/flow-regime/aiad/ncells-fs 5)
|