| /petsc/src/dm/impls/da/ |
| H A D | grvtk.c | 88 PetscInt xs = -1, xm = -1, ys = -1, ym = -1, zs = -1, zm = -1, nnodes = 0; in DMDAVTKWriteAll_VTS() local 97 nnodes = xm * ym * zm; in DMDAVTKWriteAll_VTS() 99 maxnnodes = PetscMax(maxnnodes, nnodes); in DMDAVTKWriteAll_VTS() 103 boffset += 3 * nnodes * sizeof(PetscScalar) + sizeof(PetscInt64); in DMDAVTKWriteAll_VTS() 132 boffset += nnodes * sizeof(PetscScalar) + sizeof(PetscInt64); in DMDAVTKWriteAll_VTS() 136 boffset += bs * nnodes * sizeof(PetscScalar) + sizeof(PetscInt64); in DMDAVTKWriteAll_VTS() 151 PetscInt xs = -1, xm = -1, ys = -1, ym = -1, zs = -1, zm = -1, nnodes = 0; in DMDAVTKWriteAll_VTS() local 160 nnodes = xm * ym * zm; in DMDAVTKWriteAll_VTS() 162 nnodes = info.xm * info.ym * info.zm; in DMDAVTKWriteAll_VTS() 174 PetscCallMPI(MPIU_Recv(array, nnodes * cdim, MPIU_SCALAR, r, tag, comm, &status)); in DMDAVTKWriteAll_VTS() [all …]
|
| /petsc/src/ksp/pc/impls/gamg/ |
| H A D | util.c | 27 PetscInt nnodes, num_ghosts, dir, kk, jj, my0, Iend, nloc; in PCGAMGGetDataWithGhosts() local 39 nnodes = num_ghosts + nloc; in PCGAMGGetDataWithGhosts() 40 *a_stride = nnodes; in PCGAMGGetDataWithGhosts() 43 PetscCall(PetscMalloc1(data_sz * nnodes, &datas)); in PCGAMGGetDataWithGhosts() 49 datas[dir * nnodes + kk] = PetscRealPart(crd); // get local part now in PCGAMGGetDataWithGhosts() 59 …for (kk = nloc, jj = 0; jj < num_ghosts; kk++, jj++) datas[dir * nnodes + kk] = PetscRealPart(data… in PCGAMGGetDataWithGhosts()
|
| /petsc/src/ts/tutorials/network/ |
| H A D | pipes.c | 206 nend = pipe->nnodes - 1; in WASHIFunction() 616 PetscInt steps = 1, nedges, nnodes = 6; in main() local 638 PetscCall(PetscOptionsGetInt(NULL, NULL, "-npipenodes", &nnodes, NULL)); in main() 678 pipes[e - eStart].nnodes = nnodes; in main() 679 …ll(DMNetworkAddComponent(networkdm, e, KeyPipe, &pipes[e - eStart], 2 * pipes[e - eStart].nnodes)); in main() 683 …PetscCall(DMNetworkMonitorAdd(monitor, "Pipe Q", e, pipes[e - eStart].nnodes, 0, 2, 0.0, pipes[e -… in main() 684 …PetscCall(DMNetworkMonitorAdd(monitor, "Pipe H", e, pipes[e - eStart].nnodes, 1, 2, 0.0, pipes[e -… in main() 743 …wash->nnodes_loc += pipe->nnodes; /* local total number of nodes, will be used by PipesView… in main()
|
| H A D | pipe.h | 30 PetscInt nnodes; /* number of nodes in da discretization */ member
|
| H A D | pipeInterface.c | 68 …PetscCall(DMDACreate1d(PETSC_COMM_SELF, DM_BOUNDARY_GHOSTED, pipe->nnodes, 2, 1, NULL, &pipe->da)); in PipeSetUp()
|
| /petsc/src/dm/impls/moab/ |
| H A D | dmmbutil.cxx | 200 PetscInt x, y, z, ix, nnodes; in DMMoab_GenerateVertices_Private() local 211 …nnodes = genCtx.blockSizeVertexXYZ[0] * (genCtx.dim > 1 ? genCtx.blockSizeVertexXYZ[1] * (genCtx.d… in DMMoab_GenerateVertices_Private() 212 PetscCall(PetscMalloc1(nnodes, &gids)); in DMMoab_GenerateVertices_Private() 214 merr = iface->get_node_coords(3, nnodes, 0, startv, arrays); in DMMoab_GenerateVertices_Private() 227 moab::Range verts(startv, startv + nnodes - 1); in DMMoab_GenerateVertices_Private()
|
| H A D | dmmoab.cxx | 776 PetscInt nnodes; in DMMoabGetElementConnectivity() local 784 merr = dmmoab->mbiface->get_connectivity(ehandle, connect, nnodes); in DMMoabGetElementConnectivity() 787 if (nconn) *nconn = nnodes; in DMMoabGetElementConnectivity()
|
| /petsc/include/petsc/mpiuni/ |
| H A D | mpi.h | 546 …#define MPI_Dims_create(nnodes, ndims, dims) … argument 548 …#define MPI_Graphdims_Get(comm, nnodes, nedges) … argument
|