| /petsc/src/vec/is/sf/tests/ |
| H A D | ex24.c | 7 PetscInt nroots, maxleaf; in testOverlappingCommunication() local 13 PetscCall(PetscSFGetLeafRange(sf, NULL, &maxleaf)); in testOverlappingCommunication() 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() 20 for (PetscInt i = 0; i < maxleaf + 1; i++) leafb[i] = -(i + 1); in testOverlappingCommunication() 43 for (PetscInt i = 0; i < maxleaf + 1; i++) leafa[i] = 0; in testOverlappingCommunication() 44 for (PetscInt i = 0; i < maxleaf + 1; i++) leafb[i] = 0; in testOverlappingCommunication() 51 …for (PetscInt i = 0; i < maxleaf + 1; i++) PetscCheck(leafa[i] >= 0, PETSC_COMM_SELF, PETSC_ERR_PL… in testOverlappingCommunication() 52 …for (PetscInt i = 0; i < maxleaf + 1; i++) PetscCheck(leafb[i] <= 0, PETSC_COMM_SELF, PETSC_ERR_PL… in testOverlappingCommunication() 54 for (PetscInt i = 0; i < maxleaf + 1; i++) leafa[i] = 0; in testOverlappingCommunication() [all …]
|
| H A D | ex1.c | 20 …PetscCheck(sf->maxleaf == PETSC_INT_MIN, PETSC_COMM_SELF, PETSC_ERR_PLIB, "SF minimum leaf is not … in CheckGraphNotSet() 29 PetscInt minleaf, maxleaf; in CheckGraphEmpty() local 37 PetscCall(PetscSFGetLeafRange(sf, &minleaf, &maxleaf)); in CheckGraphEmpty() 39 PetscCheck(maxleaf == -1, PETSC_COMM_SELF, PETSC_ERR_PLIB, "SF maximum leaf is not -1"); in CheckGraphEmpty()
|
| /petsc/src/vec/is/sf/interface/ |
| H A D | sf.c | 67 b->maxleaf = PETSC_INT_MIN; in PetscSFCreate() 121 sf->maxleaf = PETSC_INT_MIN; in PetscSFReset() 509 sf->maxleaf = ilocal[nleaves - 1]; in PetscSFSetGraph() 513 sf->maxleaf = nleaves - 1; in PetscSFSetGraph() 629 sf->maxleaf = N - 1; in PetscSFSetGraphWithPattern() 635 sf->maxleaf = rank ? -1 : N - 1; in PetscSFSetGraphWithPattern() 641 sf->maxleaf = size - 1; in PetscSFSetGraphWithPattern() 681 maxlocal = sf->maxleaf + 1; /* TODO: We should use PetscSFGetLeafRange() */ in PetscSFCreateInverseSF() 835 PetscErrorCode PetscSFGetLeafRange(PetscSF sf, PetscInt *minleaf, PetscInt *maxleaf) in PetscSFGetLeafRange() argument 841 if (maxleaf) *maxleaf = sf->maxleaf; in PetscSFGetLeafRange() [all …]
|
| /petsc/src/vec/is/sf/utils/ |
| H A D | sfutils.c | 844 PetscInt maxleaf; in PetscSFMerge() local 855 maxleaf = PetscMax(aleaf, bleaf) + 1; // One more than the last index in PetscSFMerge() 861 PetscCall(PetscMalloc2(maxleaf, &clocal, maxleaf, &cremote)); in PetscSFMerge() 862 for (PetscInt i = 0; i < maxleaf; i++) clocal[i] = -1; in PetscSFMerge() 877 for (PetscInt i = 0; i < maxleaf; i++) { in PetscSFMerge()
|
| /petsc/src/vec/is/sf/impls/basic/ |
| H A D | sfbasic.c | 469 PetscInt j, p, q, nroots, esf_nleaves, *new_ilocal, minleaf, maxleaf, maxlocal; in PetscSFCreateEmbeddedRootSF_Basic() local 485 PetscCall(PetscSFGetLeafRange(sf, &minleaf, &maxleaf)); in PetscSFCreateEmbeddedRootSF_Basic() 486 maxlocal = maxleaf - minleaf + 1; in PetscSFCreateEmbeddedRootSF_Basic()
|
| /petsc/include/petsc/private/ |
| H A D | sfimpl.h | 71 PetscInt minleaf, maxleaf; member
|
| /petsc/src/vec/is/section/interface/ |
| H A D | section.c | 1480 PetscInt pStart, pEnd, p, dof, cdof, off, globalOff = 0, nroots, nlocal, maxleaf; in PetscSectionCreateGlobalSection() local 1502 PetscCall(PetscSFGetLeafRange(sf, NULL, &maxleaf)); in PetscSectionCreateGlobalSection() 1504 …PetscCheck(maxleaf < nroots, PETSC_COMM_SELF, PETSC_ERR_ARG_SIZ, "Max local leaf %" PetscInt_FMT "… in PetscSectionCreateGlobalSection()
|