Lines Matching refs:nleaves

21   PetscInt           i, nroots, nleaves;  in PetscSFViewCustomLocals_Private()  local
26 PetscCall(PetscSFGetGraph(sf, &nroots, &nleaves, NULL, &iremote)); in PetscSFViewCustomLocals_Private()
30 …s=%" PetscInt_FMT ", leaves=%" PetscInt_FMT ", remote ranks=%d\n", rank, nroots, nleaves, nranks)); in PetscSFViewCustomLocals_Private()
31 …for (i = 0; i < nleaves; i++) PetscCall(PetscViewerASCIISynchronizedPrintf(viewer, "[%d] %" PetscI… in PetscSFViewCustomLocals_Private()
40 PetscInt i, bs = 2, nroots, nrootsalloc, nleaves, nleavesalloc, *mine, stride; in main() local
112 nleaves = size; in main()
115 PetscCall(PetscMalloc1(nleaves, &remote)); in main()
123 nleaves = 2 + (PetscInt)(rank > 0); in main()
124 nleavesalloc = nleaves * stride; in main()
129 PetscCall(PetscMalloc1(nleaves, &mine)); in main()
130 for (i = 0; i < nleaves; i++) mine[i] = stride * i; in main()
132 PetscCall(PetscMalloc1(nleaves, &remote)); in main()
148 …PetscCall(PetscSFSetGraph(sf, nrootsalloc, nleaves, mine, PETSC_OWN_POINTER, remote, PETSC_OWN_POI… in main()
160 nleaves *= bs; in main()
265 for (i = 0; i < nleaves; i++) leafdata[i * stride] = 1000 * (rank + 1) + 10 * i; in main()
289 for (i = 0; i < nleaves; i++) leafdata[i * stride] = (signed char)(50 * (rank + 1) + 10 * i); in main()
343 for (i = 0; i < nleaves; i++) leafdata[i * stride] = (unsigned char)(50 * (rank + 1) + 10 * i); in main()
400 for (i = 0; i < nleaves; i++) leafdata[i * stride] = 1; in main()
420 for (i = 0; i < nleaves; i++) outdata[i * stride] = 1000 * (rank + 1) + i; in main()