Lines Matching refs:nsfs
8 PetscInt leaveStep, nsfs, n; member
22 ctx->nsfs = 3; in GetOptions()
30 PetscCall(PetscOptionsGetInt(NULL, NULL, "-nsfs", &ctx->nsfs, NULL)); in GetOptions()
130 PetscInt nLeaves = ctx->nsfs * ctx->n * ctx->size; in CreateReferenceSF_Regular()
131 PetscInt nroots = ctx->n * ctx->nsfs; in CreateReferenceSF_Regular()
149 for (i = 0, j = 0; i < ctx->nsfs; i++) { in CreateReferenceSF_Regular()
185 PetscInt nroots = ctx->n + ctx->rank + ctx->nsfs - 1 + ctx->size - 1; in CreateSFs_Irregular()
188 if (ctx->sparseLeaves) PetscCall(PetscCalloc1(ctx->nsfs + 1, &lOffsets)); in CreateSFs_Irregular()
189 PetscCall(PetscMalloc1(ctx->nsfs, &sfs)); in CreateSFs_Irregular()
190 for (i = 0; i < ctx->nsfs; i++) { in CreateSFs_Irregular()
230 if (ctx->sparseLeaves) PetscCall(PetscCalloc1(ctx->nsfs + 1, &lOffsets)); in CreateSFs_Regular()
231 PetscCall(PetscCalloc1(ctx->nsfs, &sfs)); in CreateSFs_Regular()
232 for (i = 0; i < ctx->nsfs; i++) { in CreateSFs_Regular()
260 PetscInt k, nroots = ctx->n * ctx->nsfs; in CreateSFs_Regular()
303 for (i = 0; i < ctx->nsfs; i++) PetscCall(PetscSFDestroy(&(*sfs)[i])); in DestroySFs()
327 PetscCall(PetscSFConcatenate(comm, ctx->nsfs, sfs, ctx->rootMode, leafOffsets, &sf)); in main()