Lines Matching refs:subsize
38 PetscCall(PetscFree((psubcomm)->subsize)); in PetscSubcommSetFromOptions()
109 PetscMPIInt rank, size, subsize, subrank, duprank; in PetscSubcommView() local
114 PetscCallMPI(MPI_Comm_size(psubcomm->child, &subsize)); in PetscSubcommView()
118 …olor %d, sub-size %d, sub-rank %d, duprank %d\n", rank, psubcomm->color, subsize, subrank, duprank… in PetscSubcommView()
198 PetscMPIInt size, icolor, duprank, *recvbuf, sendbuf[3], mysubsize, rank, *subsize; in PetscSubcommSetTypeGeneral() local
219 PetscCall(PetscCalloc1(nsubcomm, &subsize)); in PetscSubcommSetTypeGeneral()
220 for (i = 0; i < 2 * size; i += 2) subsize[recvbuf[i]] = recvbuf[i + 1]; in PetscSubcommSetTypeGeneral()
226 duprank += subsize[icolor]; in PetscSubcommSetTypeGeneral()
240 psubcomm->subsize = subsize; in PetscSubcommSetTypeGeneral()
263 PetscCall(PetscFree((*psubcomm)->subsize)); in PetscSubcommDestroy()
301 (*psubcomm)->subsize = NULL; in PetscSubcommCreate()
375 PetscMPIInt rank, size, *subsize, duprank = -1, subrank = -1; in PetscSubcommCreate_contiguous() local
384 PetscCall(PetscMalloc1(1 + nsubcomm, &subsize)); in PetscSubcommCreate_contiguous()
389 subsize[i] = np_subcomm; in PetscSubcommCreate_contiguous()
390 if (i < nleftover) subsize[i]++; in PetscSubcommCreate_contiguous()
396 if (rank >= rankstart && rank < rankstart + subsize[i]) { in PetscSubcommCreate_contiguous()
401 } else rankstart += subsize[i]; in PetscSubcommCreate_contiguous()
414 psubcomm->subsize = subsize; in PetscSubcommCreate_contiguous()
446 PetscMPIInt rank, size, *subsize, duprank, subrank; in PetscSubcommCreate_interlaced() local
455 PetscCall(PetscMalloc1(1 + nsubcomm, &subsize)); in PetscSubcommCreate_interlaced()
460 subsize[i] = np_subcomm; in PetscSubcommCreate_interlaced()
461 if (i < nleftover) subsize[i]++; in PetscSubcommCreate_interlaced()
477 duprank += subsize[i]; in PetscSubcommCreate_interlaced()
489 psubcomm->subsize = subsize; in PetscSubcommCreate_interlaced()