Home
last modified time | relevance | path

Searched refs:nsfs (Results 1 – 2 of 2) sorted by relevance

/petsc/src/vec/is/sf/tests/
H A Dex18.c8 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()
[all …]
/petsc/src/vec/is/sf/interface/
H A Dsf.c2451 PetscErrorCode PetscSFConcatenate(MPI_Comm comm, PetscInt nsfs, PetscSF sfs[], PetscSFConcatenateRo… in PetscSFConcatenate() argument
2467 PetscValidLogicalCollectiveInt(dummy, nsfs, 2); in PetscSFConcatenate()
2469 for (i = 0; i < nsfs; i++) { in PetscSFConcatenate()
2478 if (!nsfs) { in PetscSFConcatenate()
2487 PetscCall(PetscMalloc1(nsfs + 1, &leafArrayOffsets)); in PetscSFConcatenate()
2489 for (s = 0; s < nsfs; s++) { in PetscSFConcatenate()
2495 nLeaves = leafArrayOffsets[nsfs]; in PetscSFConcatenate()
2502 for (s = 1; s < nsfs; s++) { in PetscSFConcatenate()
2518 PetscCall(PetscCalloc3(nsfs, &lts, nsfs, &nls, nsfs, &inds)); in PetscSFConcatenate()
2523 for (s = 0; s < nsfs; s++) { in PetscSFConcatenate()
[all …]