Home
last modified time | relevance | path

Searched refs:sectionSF (Results 1 – 14 of 14) sorted by relevance

/petsc/src/dm/impls/plex/tutorials/
H A Dex14.c17 PetscSF sectionSF; in main() local
60 PetscCall(PetscSFCreateSectionSF(pointSF, section, remoteOffsets, section, &sectionSF)); 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(&sectionSF)); in main()
H A Dex14f90.F9015 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 Dplexdd.c50 PetscSF migrationSF = NULL, sectionSF; in DMCreateDomainDecomposition_Plex() local
148 PetscCall(DMGetSectionSF(dm, &sectionSF)); 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, &sectionSF)); 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 Dplexsfc.c563 PetscSF pointSF, sectionSF; in DMPlexCorrectOrientationForIsoperiodic() local
581 PetscCall(PetscSFCreate(comm, &sectionSF)); in DMPlexCorrectOrientationForIsoperiodic()
582 PetscCall(PetscSFSetGraphSection(sectionSF, localSection, globalSection)); in DMPlexCorrectOrientationForIsoperiodic()
583 PetscCall(PetscSFGetGraph(sectionSF, NULL, &nleaves, &ilocal, &iremote)); in DMPlexCorrectOrientationForIsoperiodic()
590 PetscCall(PetscSFDestroy(&sectionSF)); in DMPlexCorrectOrientationForIsoperiodic()
/petsc/include/petsc/private/
H A Dpcpatchimpl.h36 PetscSF sectionSF; /* Combined SF mapping process local to global */ member
H A Ddmimpl.h270 PetscSF sectionSF; /* SF for parallel dof overlap using section */ member
/petsc/src/vec/is/sf/utils/
H A Dsfutils.c445 …, 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 Dpcpatch.c194 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 Dsnespatch.c296 …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 DSF.pyx369 cdef SF sectionSF = SF()
375 leafSection.sec, &sectionSF.sf))
376 return sectionSF
/petsc/doc/manual/
H A Dsection.md153 …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 Ddm.c70 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 Dplexhdf5.c2858 …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 Dpforest.h2154 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()