| /petsc/src/dm/impls/plex/tutorials/ |
| H A D | ex14.c | 17 PetscSF sectionSF; in main() local 60 PetscCall(PetscSFCreateSectionSF(pointSF, section, remoteOffsets, section, §ionSF)); in main() 73 PetscCall(PetscSFBcastBegin(sectionSF, MPIU_SCALAR, array, array, MPI_REPLACE)); in main() 75 PetscCall(PetscSFBcastEnd(sectionSF, MPIU_SCALAR, array, array, MPI_REPLACE)); in main() 83 PetscCall(PetscSFDestroy(§ionSF)); in main()
|
| H A D | ex14f90.F90 | 15 type(tPetscSF) :: sectionSF 58 PetscCallA(PetscSFCreateSectionSF(pointSF, section, remoteOffsets, section, sectionSF, ierr)) 74 PetscCallA(PetscSFBcastBegin(sectionSF, MPIU_SCALAR, array, array, MPI_REPLACE, ierr)) 76 PetscCallA(PetscSFBcastEnd(sectionSF, MPIU_SCALAR, array, array, MPI_REPLACE, ierr)) 83 PetscCallA(PetscSFDestroy(sectionSF, ierr))
|
| /petsc/src/dm/impls/plex/ |
| H A D | plexdd.c | 50 PetscSF migrationSF = NULL, sectionSF; in DMCreateDomainDecomposition_Plex() local 148 PetscCall(DMGetSectionSF(dm, §ionSF)); in DMCreateDomainDecomposition_Plex() 158 PetscCall(PetscSFBcastBegin(sectionSF, MPIU_INT, gidxs, lidxs, MPI_REPLACE)); in DMCreateDomainDecomposition_Plex() 159 PetscCall(PetscSFBcastEnd(sectionSF, MPIU_INT, gidxs, lidxs, MPI_REPLACE)); in DMCreateDomainDecomposition_Plex() 192 PetscCall(DMGetSectionSF(odm, §ionSF)); in DMCreateDomainDecomposition_Plex() 202 PetscCall(PetscSFReduceBegin(sectionSF, MPIU_INT, lidxs, gidxs, MPI_REPLACE)); in DMCreateDomainDecomposition_Plex() 203 PetscCall(PetscSFReduceEnd(sectionSF, MPIU_INT, lidxs, gidxs, MPI_REPLACE)); in DMCreateDomainDecomposition_Plex()
|
| H A D | plexsfc.c | 563 PetscSF pointSF, sectionSF; in DMPlexCorrectOrientationForIsoperiodic() local 581 PetscCall(PetscSFCreate(comm, §ionSF)); in DMPlexCorrectOrientationForIsoperiodic() 582 PetscCall(PetscSFSetGraphSection(sectionSF, localSection, globalSection)); in DMPlexCorrectOrientationForIsoperiodic() 583 PetscCall(PetscSFGetGraph(sectionSF, NULL, &nleaves, &ilocal, &iremote)); in DMPlexCorrectOrientationForIsoperiodic() 590 PetscCall(PetscSFDestroy(§ionSF)); in DMPlexCorrectOrientationForIsoperiodic()
|
| /petsc/include/petsc/private/ |
| H A D | pcpatchimpl.h | 36 PetscSF sectionSF; /* Combined SF mapping process local to global */ member
|
| H A D | dmimpl.h | 270 PetscSF sectionSF; /* SF for parallel dof overlap using section */ member
|
| /petsc/src/vec/is/sf/utils/ |
| H A D | sfutils.c | 445 …, PetscSection rootSection, PetscInt remoteOffsets[], PetscSection leafSection, PetscSF *sectionSF) in PetscSFCreateSectionSF() argument 461 PetscAssertPointer(sectionSF, 5); in PetscSFCreateSectionSF() 463 PetscCall(PetscSFCreate(comm, sectionSF)); in PetscSFCreateSectionSF() 499 …PetscCall(PetscSFSetGraph(*sectionSF, numSectionRoots, numIndices, localIndices, PETSC_OWN_POINTER… in PetscSFCreateSectionSF() 500 PetscCall(PetscSFSetUp(*sectionSF)); in PetscSFCreateSectionSF()
|
| /petsc/src/ksp/pc/impls/patch/ |
| H A D | pcpatch.c | 194 patch->sectionSF = sf[0]; in PCPatchCreateDefaultSF_Private() 195 PetscCall(PetscObjectReference((PetscObject)patch->sectionSF)); in PCPatchCreateDefaultSF_Private() 303 PetscCall(PetscSFCreate(PetscObjectComm((PetscObject)pc), &patch->sectionSF)); in PCPatchCreateDefaultSF_Private() 304 …PetscCall(PetscSFSetGraph(patch->sectionSF, allRoots, allLeaves, ilocal, PETSC_OWN_POINTER, iremot… in PCPatchCreateDefaultSF_Private() 572 PetscCall(DMGetSectionSF(dm, &patch->sectionSF)); in PCPatchSetDiscretisationInfoCombined() 573 PetscCall(PetscObjectReference((PetscObject)patch->sectionSF)); in PCPatchSetDiscretisationInfoCombined() 2671 PetscCall(PetscSFReduceBegin(patch->sectionSF, MPIU_SCALAR, input, output, MPI_SUM)); in PCSetUp_PATCH() 2672 PetscCall(PetscSFReduceEnd(patch->sectionSF, MPIU_SCALAR, input, output, MPI_SUM)); in PCSetUp_PATCH() 2680 PetscCall(PetscSFBcastBegin(patch->sectionSF, MPIU_SCALAR, input, output, MPI_REPLACE)); in PCSetUp_PATCH() 2681 PetscCall(PetscSFBcastEnd(patch->sectionSF, MPIU_SCALAR, input, output, MPI_REPLACE)); in PCSetUp_PATCH() [all …]
|
| /petsc/src/snes/impls/patch/ |
| H A D | snespatch.c | 296 …PetscCall(PetscSFBcastBegin(pcpatch->sectionSF, MPIU_SCALAR, globalState, localState, MPI_REPLACE)… in SNESSolve_Patch() 297 … PetscCall(PetscSFBcastEnd(pcpatch->sectionSF, MPIU_SCALAR, globalState, localState, MPI_REPLACE)); in SNESSolve_Patch()
|
| /petsc/src/binding/petsc4py/src/petsc4py/PETSc/ |
| H A D | SF.pyx | 369 cdef SF sectionSF = SF() 375 leafSection.sec, §ionSF.sf)) 376 return sectionSF
|
| /petsc/doc/manual/ |
| H A D | section.md | 153 …is, we introduce three new concepts; a `localSection`, `globalSection`, `pointSF`, and `sectionSF`. 168 To perform the global-to-local and local-to-global communication, we define `sectionSF` to be the `… 173 The `localSection`, `globalSection`, `pointSF`, and `sectionSF` on a `DM` can be obtained via `DMGe…
|
| /petsc/src/dm/interface/ |
| H A D | dm.c | 70 PetscCall(PetscSFCreate(comm, &v->sectionSF)); in DMCreate() 505 if (dm->sectionSF) PetscCall(PetscObjectSetOptionsPrefix((PetscObject)dm->sectionSF, prefix)); in DMSetOptionsPrefix() 745 PetscCall(PetscSFDestroy(&(*dm)->sectionSF)); in DMDestroy() 895 if (dm->sectionSF) PetscCall(PetscSFSetFromOptions(dm->sectionSF)); in DMSetFromOptions() 4424 PetscCall(PetscSFDestroy(&dm->sectionSF)); in DMSetLocalSection() 4425 PetscCall(PetscSFCreate(PetscObjectComm((PetscObject)dm), &dm->sectionSF)); in DMSetLocalSection() 4701 PetscCall(PetscSFDestroy(&dm->sectionSF)); in DMSetGlobalSection() 4702 PetscCall(PetscSFCreate(PetscObjectComm((PetscObject)dm), &dm->sectionSF)); in DMSetGlobalSection() 4732 if (!dm->sectionSF) PetscCall(PetscSFCreate(PetscObjectComm((PetscObject)dm), &dm->sectionSF)); in DMGetSectionSF() 4733 PetscCall(PetscSFGetGraph(dm->sectionSF, &nroots, NULL, NULL, NULL)); in DMGetSectionSF() [all …]
|
| /petsc/src/dm/impls/plex/hdf5/ |
| H A D | plexhdf5.c | 2858 …ection, PetscLayout layout, PetscInt globalOffsets[], PetscSection leafSection, PetscSF *sectionSF) in DMPlexSectionLoad_HDF5_Internal_CreateDataSF() argument 2901 PetscCall(PetscSFCreate(comm, sectionSF)); in DMPlexSectionLoad_HDF5_Internal_CreateDataSF() 2902 PetscCall(PetscSFSetFromOptions(*sectionSF)); in DMPlexSectionLoad_HDF5_Internal_CreateDataSF() 2903 PetscCall(PetscSFSetGraphLayout(*sectionSF, layout, m, ilocal, PETSC_OWN_POINTER, goffs)); in DMPlexSectionLoad_HDF5_Internal_CreateDataSF()
|
| /petsc/src/dm/impls/forest/p4est/ |
| H A D | pforest.h | 2154 if (dmB->sectionSF != dmA->sectionSF) { in DMShareDiscretization() 2155 PetscCall(PetscObjectReference((PetscObject)dmA->sectionSF)); in DMShareDiscretization() 2156 PetscCall(PetscSFDestroy(&dmB->sectionSF)); in DMShareDiscretization() 2157 dmB->sectionSF = dmA->sectionSF; in DMShareDiscretization()
|