Lines Matching refs:leafa

8   PetscInt *leafa, *leafb, *roota, *rootb;  in testOverlappingCommunication()  local
14 PetscCall(PetscMalloc4(nroots, &roota, nroots, &rootb, maxleaf + 1, &leafa, maxleaf + 1, &leafb)); in testOverlappingCommunication()
19 for (PetscInt i = 0; i < maxleaf + 1; i++) leafa[i] = (i + 1); 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()
32 PetscCall(PetscSFReduceBegin(sf, MPIU_INT, leafa, roota, MPI_REPLACE)); in testOverlappingCommunication()
35 PetscCall(PetscSFReduceEnd(sf, MPIU_INT, leafa, roota, MPI_REPLACE)); in testOverlappingCommunication()
43 for (PetscInt i = 0; i < maxleaf + 1; i++) leafa[i] = 0; in testOverlappingCommunication()
46 PetscCall(PetscSFBcastBegin(sf, MPIU_INT, roota, leafa, MPI_REPLACE)); in testOverlappingCommunication()
48 PetscCall(PetscSFBcastEnd(sf, MPIU_INT, roota, leafa, MPI_REPLACE)); in testOverlappingCommunication()
51 …for (PetscInt i = 0; i < maxleaf + 1; i++) PetscCheck(leafa[i] >= 0, PETSC_COMM_SELF, PETSC_ERR_PL… in testOverlappingCommunication()
54 for (PetscInt i = 0; i < maxleaf + 1; i++) leafa[i] = 0; in testOverlappingCommunication()
57 PetscCall(PetscSFBcastBegin(sf, MPIU_INT, roota, leafa, MPI_REPLACE)); in testOverlappingCommunication()
60 PetscCall(PetscSFBcastEnd(sf, MPIU_INT, roota, leafa, MPI_REPLACE)); in testOverlappingCommunication()
62 …for (PetscInt i = 0; i < maxleaf + 1; i++) PetscCheck(leafa[i] >= 0, PETSC_COMM_SELF, PETSC_ERR_PL… in testOverlappingCommunication()
65 PetscCall(PetscFree4(roota, rootb, leafa, leafb)); in testOverlappingCommunication()