Lines Matching refs:nroots

7   PetscInt  nroots, maxleaf;  in testOverlappingCommunication()  local
12 PetscCall(PetscSFGetGraph(sf, &nroots, NULL, NULL, NULL)); in testOverlappingCommunication()
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()
18 for (PetscInt i = 0; i < nroots; i++) rootb[i] = 0; in testOverlappingCommunication()
26 …for (PetscInt i = 0; i < nroots; i++) PetscCheck(roota[i] >= 0, PETSC_COMM_SELF, PETSC_ERR_PLIB, "… in testOverlappingCommunication()
27 …for (PetscInt i = 0; i < nroots; i++) PetscCheck(rootb[i] <= 0, PETSC_COMM_SELF, PETSC_ERR_PLIB, "… in testOverlappingCommunication()
29 for (PetscInt i = 0; i < nroots; i++) roota[i] = 0; in testOverlappingCommunication()
30 for (PetscInt i = 0; i < nroots; i++) rootb[i] = 0; in testOverlappingCommunication()
37 …for (PetscInt i = 0; i < nroots; i++) PetscCheck(roota[i] >= 0, PETSC_COMM_SELF, PETSC_ERR_PLIB, "… in testOverlappingCommunication()
38 …for (PetscInt i = 0; i < nroots; i++) PetscCheck(rootb[i] <= 0, PETSC_COMM_SELF, PETSC_ERR_PLIB, "… in testOverlappingCommunication()
41 for (PetscInt i = 0; i < nroots; i++) roota[i] = (i + 1); in testOverlappingCommunication()
42 for (PetscInt i = 0; i < nroots; i++) rootb[i] = -(i + 1); in testOverlappingCommunication()
72 PetscInt nroots, nleaves; in createSparseSF() local
78 nroots = (rank & 1) ? 1 : 0; in createSparseSF()
83 …PetscCall(PetscSFSetGraph(*sf, nroots, nleaves, NULL, PETSC_COPY_VALUES, &remote, PETSC_COPY_VALUE… in createSparseSF()