Lines Matching refs:recvcounts

554     PetscMPIInt *recvcounts = NULL, *displs = NULL, *Nc, p, o, itotNeighbors;  in DMPlexOrient()  local
559 PetscCall(PetscCalloc4(size, &recvcounts, size + 1, &displs, size, &Nc, size + 1, &Noff)); in DMPlexOrient()
565 recvcounts[p] = 0; in DMPlexOrient()
566 for (c = 0; c < Nc[p]; ++c, ++o) recvcounts[p] += N[o]; in DMPlexOrient()
567 displs[p + 1] = displs[p] + recvcounts[p]; in DMPlexOrient()
571 …PetscCallMPI(MPI_Gatherv(nrankComp, itotNeighbors, MPIU_SF_NODE, adj, recvcounts, displs, MPIU_SF_… in DMPlexOrient()
572 …PetscCallMPI(MPI_Gatherv(match, itotNeighbors, MPI_C_BOOL, val, recvcounts, displs, MPI_C_BOOL, 0,… in DMPlexOrient()
668 PetscCall(PetscFree4(recvcounts, displs, Nc, Noff)); in DMPlexOrient()
933 PetscMPIInt *recvcounts = NULL, *displs = NULL, *Nc; in DMPlexOrientCells_Internal() local
938 PetscCall(PetscCalloc4(size, &recvcounts, size + 1, &displs, size, &Nc, size + 1, &Noff)); in DMPlexOrientCells_Internal()
945 recvcounts[p] = 0; in DMPlexOrientCells_Internal()
946 for (PetscInt c = 0; c < Nc[p]; ++c, ++o) recvcounts[p] += N[o]; in DMPlexOrientCells_Internal()
947 displs[p + 1] = displs[p] + recvcounts[p]; in DMPlexOrientCells_Internal()
951 …PetscCallMPI(MPI_Gatherv(nrankComp, itotNeighbors, MPIU_SF_NODE, adj, recvcounts, displs, MPIU_SF_… in DMPlexOrientCells_Internal()
952 …PetscCallMPI(MPI_Gatherv(match, itotNeighbors, MPI_C_BOOL, val, recvcounts, displs, MPI_C_BOOL, 0,… in DMPlexOrientCells_Internal()
1046 PetscCall(PetscFree4(recvcounts, displs, Nc, Noff)); in DMPlexOrientCells_Internal()