Lines Matching refs:rootb

8   PetscInt *leafa, *leafb, *roota, *rootb;  in testOverlappingCommunication()  local
14 PetscCall(PetscMalloc4(nroots, &roota, nroots, &rootb, maxleaf + 1, &leafa, maxleaf + 1, &leafb)); in testOverlappingCommunication()
18 for (PetscInt i = 0; i < nroots; i++) rootb[i] = 0; 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()
27 …for (PetscInt i = 0; i < nroots; i++) PetscCheck(rootb[i] <= 0, PETSC_COMM_SELF, PETSC_ERR_PLIB, "… in testOverlappingCommunication()
30 for (PetscInt i = 0; i < nroots; i++) rootb[i] = 0; 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()
38 …for (PetscInt i = 0; i < nroots; i++) PetscCheck(rootb[i] <= 0, PETSC_COMM_SELF, PETSC_ERR_PLIB, "… in testOverlappingCommunication()
42 for (PetscInt i = 0; i < nroots; i++) rootb[i] = -(i + 1); 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()
58 PetscCall(PetscSFBcastBegin(sf, MPIU_INT, rootb, leafb, MPI_REPLACE)); in testOverlappingCommunication()
59 PetscCall(PetscSFBcastEnd(sf, MPIU_INT, rootb, leafb, MPI_REPLACE)); in testOverlappingCommunication()
65 PetscCall(PetscFree4(roota, rootb, leafa, leafb)); in testOverlappingCommunication()