Lines Matching refs:nlengths
452 PetscMPIInt *sizes, *nlengths, nreceives, nsends, tag1 = stash->tag1, tag2 = stash->tag2; in MatStashScatterBegin_Ref() local
468 PetscCall(PetscCalloc1(size, &nlengths)); in MatStashScatterBegin_Ref()
483 nlengths[j]++; in MatStashScatterBegin_Ref()
497 if (nlengths[i]) { in MatStashScatterBegin_Ref()
506 PetscCall(PetscGatherNumberOfMessages(comm, sizes, nlengths, &nreceives)); in MatStashScatterBegin_Ref()
507 PetscCall(PetscGatherMessageLengths(comm, nsends, nreceives, nlengths, &onodes, &olengths)); in MatStashScatterBegin_Ref()
529 startv[i] = startv[i - 1] + nlengths[i - 1]; in MatStashScatterBegin_Ref()
530 starti[i] = starti[i - 1] + 2 * nlengths[i - 1]; in MatStashScatterBegin_Ref()
552 sindices[starti[j] + nlengths[j]] = sp_idy[l]; in MatStashScatterBegin_Ref()
560 for (PetscMPIInt i = 1; i < size; i++) startv[i] = startv[i - 1] + nlengths[i - 1]; in MatStashScatterBegin_Ref()
564 …PetscCallMPI(MPIU_Isend(sindices + 2 * startv[i], 2 * nlengths[i], MPIU_INT, i, tag1, comm, send_w… in MatStashScatterBegin_Ref()
565 …PetscCallMPI(MPIU_Isend(svalues + bs2 * startv[i], bs2 * nlengths[i], MPIU_SCALAR, i, tag2, comm, … in MatStashScatterBegin_Ref()
571 …if (sizes[i]) PetscCall(PetscInfo(NULL, "Mesg_to: %d: size: %zu bytes\n", i, (size_t)(nlengths[i] … in MatStashScatterBegin_Ref()
574 PetscCall(PetscFree(nlengths)); in MatStashScatterBegin_Ref()