Lines Matching refs:nreceives
97 PetscMPIInt nreceives, nsends; in AOMap_MemoryScalable_private() local
140 PetscCall(PetscMPIIntCast(inreceives, &nreceives)); in AOMap_MemoryScalable_private()
146 PetscCall(PetscMalloc2(nreceives * nmax, &rindices, nreceives, &recv_waits)); in AOMap_MemoryScalable_private()
150 PetscCall(PetscMalloc3(n, &sindices2, nreceives, &send_waits2, nreceives, &send_status2)); in AOMap_MemoryScalable_private()
157 …for (PetscMPIInt i = 0; i < nreceives; i++) PetscCallMPI(MPIU_Irecv(rindices + nmax * i, nmax, MPI… in AOMap_MemoryScalable_private()
195 for (j = 0; j < nreceives; j++) { in AOMap_MemoryScalable_private()
196 …PetscCallMPI(MPI_Waitany(nreceives, recv_waits, &widx, &recv_status)); /* idx: index of handle for… in AOMap_MemoryScalable_private()
210 if (nreceives) PetscCallMPI(MPI_Waitall(nreceives, send_waits2, send_status2)); in AOMap_MemoryScalable_private()
272 PetscInt *owner, *start, *sizes, nsends, nreceives; in AOCreateMemoryScalable_private() local
314 PetscCall(PetscMaxSum(comm, sizes, &nmax, &nreceives)); in AOCreateMemoryScalable_private()
318 PetscCall(PetscMalloc2(nreceives * nmax, &rindices, nreceives, &recv_waits)); in AOCreateMemoryScalable_private()
323 …for (i = 0; i < nreceives; i++) PetscCallMPI(MPIU_Irecv(rindices + nmax * i, nmax, MPIU_INT, MPI_A… in AOCreateMemoryScalable_private()
356 PetscCall(PetscMPIIntCast(nreceives, &nreceives_i)); in AOCreateMemoryScalable_private()
363 for (j = nreceives; j > 0; j--) { in AOCreateMemoryScalable_private()