Lines Matching refs:leafb
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()
52 …for (PetscInt i = 0; i < maxleaf + 1; i++) PetscCheck(leafb[i] <= 0, PETSC_COMM_SELF, PETSC_ERR_PL… in testOverlappingCommunication()
55 for (PetscInt i = 0; i < maxleaf + 1; i++) leafb[i] = 0; in testOverlappingCommunication()
58 PetscCall(PetscSFBcastBegin(sf, MPIU_INT, rootb, leafb, MPI_REPLACE)); in testOverlappingCommunication()
59 PetscCall(PetscSFBcastEnd(sf, MPIU_INT, rootb, leafb, MPI_REPLACE)); in testOverlappingCommunication()
63 …for (PetscInt i = 0; i < maxleaf + 1; i++) PetscCheck(leafb[i] <= 0, PETSC_COMM_SELF, PETSC_ERR_PL… in testOverlappingCommunication()
65 PetscCall(PetscFree4(roota, rootb, leafa, leafb)); in testOverlappingCommunication()