Home
last modified time | relevance | path

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

/petsc/src/vec/is/sf/tests/
H A Dex24.c8 PetscInt *leafa, *leafb, *roota, *rootb; in testOverlappingCommunication() local
14 PetscCall(PetscMalloc4(nroots, &roota, nroots, &rootb, maxleaf + 1, &leafa, maxleaf + 1, &leafb)); in testOverlappingCommunication()
17 for (PetscInt i = 0; i < nroots; i++) roota[i] = 0; in testOverlappingCommunication()
22 PetscCall(PetscSFReduceBegin(sf, MPIU_INT, leafa, roota, MPI_REPLACE)); in testOverlappingCommunication()
24 PetscCall(PetscSFReduceEnd(sf, MPIU_INT, leafa, roota, MPI_REPLACE)); in testOverlappingCommunication()
26 …for (PetscInt i = 0; i < nroots; i++) PetscCheck(roota[i] >= 0, PETSC_COMM_SELF, PETSC_ERR_PLIB, "… in testOverlappingCommunication()
29 for (PetscInt i = 0; i < nroots; i++) roota[i] = 0; in testOverlappingCommunication()
32 PetscCall(PetscSFReduceBegin(sf, MPIU_INT, leafa, roota, MPI_REPLACE)); in testOverlappingCommunication()
35 PetscCall(PetscSFReduceEnd(sf, MPIU_INT, leafa, roota, MPI_REPLACE)); in testOverlappingCommunication()
37 …for (PetscInt i = 0; i < nroots; i++) PetscCheck(roota[i] >= 0, PETSC_COMM_SELF, PETSC_ERR_PLIB, "… in testOverlappingCommunication()
[all …]