Searched refs:leaveStep (Results 1 – 2 of 2) sorted by relevance
| /petsc/src/vec/is/sf/tests/ |
| H A D | ex19.c | 8 PetscInt leaveStep, nLeavesPerRank; member 20 ctx->leaveStep = 1; in GetOptions() 27 PetscCall(PetscOptionsGetInt(NULL, NULL, "-leave_step", &ctx->leaveStep, NULL)); in GetOptions() 30 ctx->contiguousLeaves = (PetscBool)(ctx->leaveStep == 1); in GetOptions() 99 ilocal[nLeaves] = -ctx->leaveStep; in CreateSF0() 104 ilocal[j] = ilocal[j + 1] + ctx->leaveStep; in CreateSF0() 142 if (!ctx->contiguousLeaves) ilocal[j + 1] = ilocal[j] + ctx->leaveStep; in CreateSF1()
|
| H A D | ex18.c | 8 PetscInt leaveStep, nsfs, n; member 24 ctx->leaveStep = 1; in GetOptions() 32 PetscCall(PetscOptionsGetInt(NULL, NULL, "-leave_step", &ctx->leaveStep, NULL)); in GetOptions() 38 ctx->sparseLeaves = (PetscBool)(ctx->leaveStep != 1); in GetOptions() 139 if (ctx->sparseLeaves) ilocal[j + 1] = ilocal[j] + ctx->leaveStep; in CreateReferenceSF_Regular() 202 if (ctx->sparseLeaves) ilocal[j + 1] = ilocal[j] + ctx->leaveStep; in CreateSFs_Irregular() 241 for (j = 0; j < nLeaves; j++) ilocal[j + 1] = ilocal[j] + ctx->leaveStep; in CreateSFs_Regular()
|