Searched refs:leafb (Results 1 – 1 of 1) sorted by relevance
| /petsc/src/vec/is/sf/tests/ |
| H A D | ex24.c | 8 PetscInt *leafa, *leafb, *roota, *rootb; in testOverlappingCommunication() local 14 PetscCall(PetscMalloc4(nroots, &roota, nroots, &rootb, maxleaf + 1, &leafa, maxleaf + 1, &leafb)); in testOverlappingCommunication() 20 for (PetscInt i = 0; i < maxleaf + 1; i++) leafb[i] = -(i + 1); in testOverlappingCommunication() 23 PetscCall(PetscSFReduceBegin(sf, MPIU_INT, leafb, rootb, MPI_REPLACE)); in testOverlappingCommunication() 25 PetscCall(PetscSFReduceEnd(sf, MPIU_INT, leafb, rootb, MPI_REPLACE)); in testOverlappingCommunication() 33 PetscCall(PetscSFReduceBegin(sf, MPIU_INT, leafb, rootb, MPI_REPLACE)); in testOverlappingCommunication() 34 PetscCall(PetscSFReduceEnd(sf, MPIU_INT, leafb, rootb, MPI_REPLACE)); in testOverlappingCommunication() 44 for (PetscInt i = 0; i < maxleaf + 1; i++) leafb[i] = 0; in testOverlappingCommunication() 47 PetscCall(PetscSFBcastBegin(sf, MPIU_INT, rootb, leafb, MPI_REPLACE)); in testOverlappingCommunication() 49 PetscCall(PetscSFBcastEnd(sf, MPIU_INT, rootb, leafb, MPI_REPLACE)); in testOverlappingCommunication() [all …]
|