Lines Matching refs:nsubcomm
138 PetscErrorCode PetscSubcommSetNumber(PetscSubcomm psubcomm, PetscInt nsubcomm) in PetscSubcommSetNumber() argument
146 PetscCall(PetscMPIIntCast(nsubcomm, &msub)); in PetscSubcommSetNumber()
199 PetscMPIInt i, nsubcomm = psubcomm->n; in PetscSubcommSetTypeGeneral() local
203 …scCheck(nsubcomm >= 1, PETSC_COMM_SELF, PETSC_ERR_ARG_WRONG, "number of subcommunicators %d is inc… in PetscSubcommSetTypeGeneral()
219 PetscCall(PetscCalloc1(nsubcomm, &subsize)); in PetscSubcommSetTypeGeneral()
224 for (icolor = 0; icolor < nsubcomm; icolor++) { in PetscSubcommSetTypeGeneral()
376 PetscMPIInt np_subcomm, nleftover, i, color = -1, rankstart, nsubcomm = psubcomm->n; in PetscSubcommCreate_contiguous() local
384 PetscCall(PetscMalloc1(1 + nsubcomm, &subsize)); in PetscSubcommCreate_contiguous()
386 np_subcomm = size / nsubcomm; in PetscSubcommCreate_contiguous()
387 nleftover = size - nsubcomm * np_subcomm; in PetscSubcommCreate_contiguous()
388 for (i = 0; i < nsubcomm; i++) { in PetscSubcommCreate_contiguous()
395 for (i = 0; i < nsubcomm; i++) { in PetscSubcommCreate_contiguous()
447 PetscMPIInt np_subcomm, nleftover, i, j, color, nsubcomm = psubcomm->n; in PetscSubcommCreate_interlaced() local
455 PetscCall(PetscMalloc1(1 + nsubcomm, &subsize)); in PetscSubcommCreate_interlaced()
457 np_subcomm = size / nsubcomm; in PetscSubcommCreate_interlaced()
458 nleftover = size - nsubcomm * np_subcomm; in PetscSubcommCreate_interlaced()
459 for (i = 0; i < nsubcomm; i++) { in PetscSubcommCreate_interlaced()
465 color = rank % nsubcomm; in PetscSubcommCreate_interlaced()
466 subrank = rank / nsubcomm; in PetscSubcommCreate_interlaced()
472 for (i = 0; i < nsubcomm; i++) { in PetscSubcommCreate_interlaced()