Lines Matching refs:nroots

96   PetscInt           i, nroots, nleaves;  in PetscSFViewCustom()  local
104 PetscCall(PetscSFGetGraph(sf, &nroots, &nleaves, &ilocal, &iremote)); in PetscSFViewCustom()
107 …PetscCheck(nroots == rootLayout->n, PetscObjectComm((PetscObject)sf), PETSC_ERR_PLIB, "Assertion f… in PetscSFViewCustom()
113 …ynchronizedPrintf(viewer, "[%2d] %7" PetscInt_FMT " %6" PetscInt_FMT "\n", rank, nleaves, nroots)); in PetscSFViewCustom()
131 PetscInt nroots = ctx->n * ctx->nsfs; in CreateReferenceSF_Regular() local
157 …PetscCall(PetscSFSetGraph(sf, nroots, nLeaves, ilocal, PETSC_OWN_POINTER, iremote, PETSC_OWN_POINT… in CreateReferenceSF_Regular()
163 PetscCall(PetscLayoutCreateFromSizes(ctx->comm, nroots, PETSC_DECIDE, 1, &map)); in CreateReferenceSF_Regular()
185 PetscInt nroots = ctx->n + ctx->rank + ctx->nsfs - 1 + ctx->size - 1; in CreateSFs_Irregular() local
210 …PetscCall(PetscSFSetGraph(sf, nroots, nLeaves, ilocal, PETSC_OWN_POINTER, iremote, PETSC_OWN_POINT… in CreateSFs_Irregular()
246 PetscInt k, nroots = ctx->n; in CreateSFs_Regular() local
257 …PetscCall(PetscSFSetGraph(sf, nroots, nLeaves, ilocal, PETSC_OWN_POINTER, iremote, PETSC_OWN_POINT… in CreateSFs_Regular()
260 PetscInt k, nroots = ctx->n * ctx->nsfs; in CreateSFs_Regular() local
271 …PetscCall(PetscSFSetGraph(sf, nroots, nLeaves, ilocal, PETSC_OWN_POINTER, iremote, PETSC_OWN_POINT… in CreateSFs_Regular()
274 PetscInt nroots = ctx->n; in CreateSFs_Regular() local
278 PetscCall(PetscLayoutCreateFromSizes(ctx->comm, nroots, PETSC_DECIDE, 1, &map)); in CreateSFs_Regular()