Home
last modified time | relevance | path

Searched refs:rcount (Results 1 – 4 of 4) sorted by relevance

/petsc/src/mat/graphops/coarsen/impls/hem/
H A Dhem.c867 PetscMPIInt rcount, scount; in MatCoarsenApply_HEM_private() local
870 PetscCallMPI(MPI_Get_count(&status, MPIU_INT, &rcount)); in MatCoarsenApply_HEM_private()
871 if (rcount > rbuff_sz) { in MatCoarsenApply_HEM_private()
873 PetscCall(PetscMalloc1(rcount, &rbuff)); in MatCoarsenApply_HEM_private()
874 rbuff_sz = rcount; in MatCoarsenApply_HEM_private()
877 PetscCallMPI(MPI_Recv(rbuff, rcount, MPIU_INT, proc, tag1, comm, &status)); in MatCoarsenApply_HEM_private()
893 …rbuff) == (ptrdiff_t)rcount, PETSC_COMM_SELF, PETSC_ERR_SUP, "receive buffer size != num read: %zu… in MatCoarsenApply_HEM_private()
930 int rcount; in MatCoarsenApply_HEM_private() local
933 PetscCallMPI(MPI_Get_count(&status, MPIU_INT, &rcount)); in MatCoarsenApply_HEM_private()
934 if (rcount > rbuff_sz) { in MatCoarsenApply_HEM_private()
[all …]
/petsc/src/vec/is/sf/interface/
H A Dsf.c1035 PetscInt *rcount; in PetscSFSetUpRanks() local
1051 PetscCall(PetscMalloc2(sf->nranks, &rcount, sf->nranks, &ranks)); in PetscSFSetUpRanks()
1056 PetscHashIterGetVal(table, pos, rcount[i]); in PetscSFSetUpRanks()
1090 tmpcount = rcount[i]; in PetscSFSetUpRanks()
1092 rcount[i] = rcount[sf->ndranks]; in PetscSFSetUpRanks()
1094 rcount[sf->ndranks] = tmpcount; in PetscSFSetUpRanks()
1099 PetscCall(PetscSortMPIIntWithIntArray(sf->ndranks, ranks, rcount)); in PetscSFSetUpRanks()
1100 …if (rcount) PetscCall(PetscSortMPIIntWithIntArray(sf->nranks - sf->ndranks, ranks + sf->ndranks, r… in PetscSFSetUpRanks()
1104 sf->roffset[i + 1] = sf->roffset[i] + rcount[i]; in PetscSFSetUpRanks()
1105 rcount[i] = 0; in PetscSFSetUpRanks()
[all …]
/petsc/src/sys/mpiuni/
H A Dmpi.c664 …_gather_(void *sendbuf, int *scount, int *sdatatype, void *recvbuf, int *rcount, int *rdatatype, i… in petsc_mpi_gather_() argument
666 *ierr = MPI_Gather(sendbuf, *scount, *sdatatype, recvbuf, rcount, rdatatype, *root, *comm); in petsc_mpi_gather_()
669 …lgather_(void *sendbuf, int *scount, int *sdatatype, void *recvbuf, int *rcount, int *rdatatype, i… in petsc_mpi_allgather_() argument
671 *ierr = MPI_Allgather(sendbuf, *scount, *sdatatype, recvbuf, rcount, rdatatype, *comm); in petsc_mpi_allgather_()
/petsc/src/vec/is/sf/impls/window/
H A Dsfwindow.c96 PetscMPIInt rcount; in PetscSFWindowGetDataTypes() local
99 PetscCall(PetscMPIIntCast(roffset[i + 1] - roffset[i], &rcount)); in PetscSFWindowGetDataTypes()
104 PetscCall(PetscMalloc2(rcount, &rmine, rcount, &rremote)); in PetscSFWindowGetDataTypes()
105 for (PetscInt j = 0; j < rcount; j++) { in PetscSFWindowGetDataTypes()
111 PetscCallMPI(MPI_Type_create_indexed_block(rcount, 1, rmine, link->unit, &link->mine[i])); in PetscSFWindowGetDataTypes()
112 PetscCallMPI(MPI_Type_create_indexed_block(rcount, 1, rremote, link->unit, &link->remote[i])); in PetscSFWindowGetDataTypes()