Lines Matching refs:w1

62   PetscMPIInt      size, rank, tag1, tag2, *w2, *w1, nrqs, nrqr, *pa;  in MatIncreaseOverlap_MPIBAIJ_Once()  local
89 PetscCall(PetscCalloc4(size, &w1, size, &w2, size, &w3, size, &w4)); in MatIncreaseOverlap_MPIBAIJ_Once()
102 w1[j] += w4[j]; in MatIncreaseOverlap_MPIBAIJ_Once()
110 w1[rank] = 0; /* no mesg sent to itself */ in MatIncreaseOverlap_MPIBAIJ_Once()
113 if (w1[i]) { in MatIncreaseOverlap_MPIBAIJ_Once()
121 if (w1[i]) { in MatIncreaseOverlap_MPIBAIJ_Once()
130 w1[j] += w2[j] + 2 * w3[j]; in MatIncreaseOverlap_MPIBAIJ_Once()
131 msz += w1[j]; in MatIncreaseOverlap_MPIBAIJ_Once()
135 PetscCall(PetscGatherNumberOfMessages(comm, w2, w1, &nrqr)); in MatIncreaseOverlap_MPIBAIJ_Once()
136 PetscCall(PetscGatherMessageLengths(comm, nrqs, nrqr, w1, &onodes1, &olengths1)); in MatIncreaseOverlap_MPIBAIJ_Once()
151 ict = w1[j]; in MatIncreaseOverlap_MPIBAIJ_Once()
214 PetscCallMPI(MPIU_Isend(outdat[j], w1[j], MPIU_INT, j, tag1, comm, s_waits1 + i)); in MatIncreaseOverlap_MPIBAIJ_Once()
236 PetscCall(PetscFree4(w1, w2, w3, w4)); in MatIncreaseOverlap_MPIBAIJ_Once()
621 …PetscMPIInt rank, size, tag0, tag2, tag3, tag4, *w1, *w2, *w3, *w4, nrqr, nrqs = 0, *req_sour… local
755 …PetscCall(PetscCalloc4(size, &w1, size, &w2, size, &w3, size, &w4)); /* mesg size, initialize work…
776 w1[j] += w4[j];
785 w1[rank] = 0; /* no mesg sent to self */
788 if (w1[i]) {
795 if (w1[i]) pa[j++] = i;
801 w1[j] += w2[j] + 2 * w3[j];
802 msz += w1[j];
807 PetscCall(PetscGatherNumberOfMessages(comm, w2, w1, &nrqr));
808 PetscCall(PetscGatherMessageLengths(comm, nrqs, nrqr, w1, &onodes1, &olengths1));
826 k = w1[j];
873 PetscCallMPI(MPIU_Isend(sbuf1[j], w1[j], MPIU_INT, j, tag0, comm, s_waits1 + i));
880 for (PetscMPIInt i = 1; i < nrqs; ++i) rbuf2[i] = rbuf2[i - 1] + w1[pa[i - 1]];
883 PetscCallMPI(MPIU_Irecv(rbuf2[i], w1[j], MPIU_INT, j, tag2, comm, r_waits2 + i));
916 PetscCall(PetscFree4(w1, w2, w3, w4));