Home
last modified time | relevance | path

Searched refs:leafSection (Results 1 – 10 of 10) sorted by relevance

/petsc/src/vec/is/sf/utils/ftn-custom/
H A Dzsfutilsf90.c25 …PetscSF *sf, PetscSection *rootSection, F90Array1d *ptr, PetscSection *leafSection, int *ierr PETS… in petscsfdistributesection_() argument
28 *ierr = PetscSFDistributeSection(*sf, *rootSection, NULL, *leafSection); in petscsfdistributesection_()
33 *ierr = PetscSFDistributeSection(*sf, *rootSection, &fa, *leafSection); in petscsfdistributesection_()
35 *ierr = PetscSectionGetChart(*leafSection, &lpStart, &lpEnd); in petscsfdistributesection_()
41 …oteoffsets_(PetscSF *pointSF, PetscSection *rootSection, PetscSection *leafSection, F90Array1d *pt… in petscsfcreateremoteoffsets_() argument
46 *ierr = PetscSFCreateRemoteOffsets(*pointSF, *rootSection, *leafSection, &fa); in petscsfcreateremoteoffsets_()
48 *ierr = PetscSectionGetChart(*leafSection, &lpStart, &lpEnd); in petscsfcreateremoteoffsets_()
/petsc/src/vec/is/sf/utils/
H A Dsfutils.c238 …eSection(PetscSF sf, PetscSection rootSection, PetscInt *remoteOffsets[], PetscSection leafSection) in PetscSFDistributeSection() argument
250 PetscValidHeaderSpecific(leafSection, PETSC_SECTION_CLASSID, 4); in PetscSFDistributeSection()
260 PetscCall(PetscSectionGetPermutation(leafSection, &perm)); in PetscSFDistributeSection()
262 PetscCall(PetscSectionSetNumFields(leafSection, numFields)); in PetscSFDistributeSection()
263 PetscCall(PetscSectionSetPermutation(leafSection, perm)); in PetscSFDistributeSection()
278 PetscCall(PetscSectionSetFieldComponents(leafSection, f, numComp)); in PetscSFDistributeSection()
279 PetscCall(PetscSectionSetFieldName(leafSection, f, name)); in PetscSFDistributeSection()
280 PetscCall(PetscSectionSetFieldSym(leafSection, f, dsym)); in PetscSFDistributeSection()
284 PetscCall(PetscSectionSetComponentName(leafSection, f, c, name)); in PetscSFDistributeSection()
307 PetscCall(PetscSectionSetChart(leafSection, lpStart, lpEnd)); in PetscSFDistributeSection()
[all …]
/petsc/src/binding/petsc4py/src/petsc4py/PETSc/
H A DSF.pyx345 …ctionSF(self, Section rootSection, remoteOffsets: Sequence[int] | None, Section leafSection) -> SF: argument
360 leafSection
375 leafSection.sec, &sectionSF.sf))
378 …def distributeSection(self, Section rootSection, Section leafSection=None) -> tuple[ArrayInt, Sect… argument
389 leafSection
402 if leafSection is None:
403 leafSection = Section()
404 if leafSection.sec == NULL:
405 CHKERR(PetscSectionCreate(ccomm, &leafSection.sec))
407 &cremoteOffsets, leafSection.sec))
[all …]
/petsc/src/dm/impls/plex/tests/
H A Dex62f90.F9017 type(tPetscSection) :: section, rootSection, leafSection
294 PetscCallA(PetscSectionCreate(PETSC_COMM_WORLD, leafSection, ierr))
295 … PetscCallA(PetscSFDistributeSection(natPointSFInv, rootSection, remoteOffsets, leafSection, ierr))
297 PetscCallA(DMSetLocalSection(dm, leafSection, ierr))
298 PetscCallA(DMPlexCreateGlobalToNaturalSF(pdm, leafSection, natPointSF, natSF, ierr))
300 PetscCallA(PetscSectionDestroy(leafSection, ierr))
/petsc/src/dm/impls/plex/
H A Dplexdistribute.c439 …uteOwnership(DM dm, PetscSection rootSection, IS *rootrank, PetscSection leafSection, IS *leafrank) in DMPlexDistributeOwnership() argument
470 PetscCall(PetscObjectSetName((PetscObject)leafSection, "Leaf Section")); in DMPlexDistributeOwnership()
471 PetscCall(DMPlexDistributeFieldIS(dm, sfPoint, rootSection, *rootrank, leafSection, leafrank)); in DMPlexDistributeOwnership()
495 …, PetscInt levels, PetscSection rootSection, IS rootrank, PetscSection leafSection, IS leafrank, D… in DMPlexCreateOverlapLabel() argument
522 PetscCall(PetscSectionGetChart(leafSection, &sStart, &sEnd)); in DMPlexCreateOverlapLabel()
540 PetscCall(PetscSectionGetDof(leafSection, p, &neighbors)); in DMPlexCreateOverlapLabel()
542 PetscCall(PetscSectionGetOffset(leafSection, p, &noff)); in DMPlexCreateOverlapLabel()
661 …etscInt exValue[], PetscSection rootSection, IS rootrank, PetscSection leafSection, IS leafrank, D… in DMPlexCreateOverlapLabelFromLabels() argument
682 PetscCall(PetscSectionGetChart(leafSection, &sStart, &sEnd)); in DMPlexCreateOverlapLabelFromLabels()
724 …PetscCall(HandlePoint_Private(dm, p, leafSection, nrank, numExLabels, exLabel, exValue, ovAdjByRan… in DMPlexCreateOverlapLabelFromLabels()
[all …]
H A Dplexpartition.c1345 PetscSection leafSection; in DMPlexPartitionLabelInvert() local
1357 PetscCall(PetscSectionCreate(PetscObjectComm((PetscObject)dm), &leafSection)); in DMPlexPartitionLabelInvert()
1358 …PetscCall(DMPlexDistributeData(dm, procSF, rootSection, MPIU_SF_NODE, rootPoints, leafSection, (vo… in DMPlexPartitionLabelInvert()
1359 PetscCall(PetscSectionGetStorageSize(leafSection, &leafSize)); in DMPlexPartitionLabelInvert()
1360 PetscCall(PetscSectionDestroy(&leafSection)); in DMPlexPartitionLabelInvert()
/petsc/src/dm/label/
H A Ddmlabel.c1907 …de DMLabelDistribute_Internal(DMLabel label, PetscSF sf, PetscSection *leafSection, PetscInt **lea… in DMLabelDistribute_Internal() argument
1951 PetscCall(PetscSectionCreate(comm, leafSection)); in DMLabelDistribute_Internal()
1952 PetscCall(PetscSFDistributeSection(sf, rootSection, &remoteOffsets, *leafSection)); in DMLabelDistribute_Internal()
1953 PetscCall(PetscSFCreateSectionSF(sf, rootSection, remoteOffsets, *leafSection, &labelSF)); in DMLabelDistribute_Internal()
1956 PetscCall(PetscSectionGetStorageSize(*leafSection, &size)); in DMLabelDistribute_Internal()
1987 PetscSection leafSection; in DMLabelDistribute() local
2023 PetscCall(DMLabelDistribute_Internal(label, sf, &leafSection, &leafStrata)); in DMLabelDistribute()
2026 PetscCall(PetscSectionGetStorageSize(leafSection, &size)); in DMLabelDistribute()
2047 PetscCall(PetscSectionGetChart(leafSection, &pStart, &pEnd)); in DMLabelDistribute()
2049 PetscCall(PetscSectionGetDof(leafSection, p, &dof)); in DMLabelDistribute()
[all …]
/petsc/src/dm/impls/plex/hdf5/
H A Dplexhdf5.c2858 …ootSection, PetscLayout layout, PetscInt globalOffsets[], PetscSection leafSection, PetscSF *secti… in DMPlexSectionLoad_HDF5_Internal_CreateDataSF() argument
2866 PetscCall(PetscObjectGetComm((PetscObject)leafSection, &comm)); in DMPlexSectionLoad_HDF5_Internal_CreateDataSF()
2867 PetscCall(PetscSectionGetChart(leafSection, &pStart, &pEnd)); in DMPlexSectionLoad_HDF5_Internal_CreateDataSF()
2869 PetscCall(PetscSectionGetIncludesConstraints(leafSection, &leafIncludeConstraints)); in DMPlexSectionLoad_HDF5_Internal_CreateDataSF()
2870 …cludeConstraints && leafIncludeConstraints) PetscCall(PetscSectionGetStorageSize(leafSection, &m)); in DMPlexSectionLoad_HDF5_Internal_CreateDataSF()
2871 else PetscCall(PetscSectionGetConstrainedStorageSize(leafSection, &m)); in DMPlexSectionLoad_HDF5_Internal_CreateDataSF()
2879 …PetscCheck(leafSection->pointMajor, PETSC_COMM_SELF, PETSC_ERR_SUP, "No support for field major or… in DMPlexSectionLoad_HDF5_Internal_CreateDataSF()
2884 PetscCall(PetscSectionGetDof(leafSection, p, &dof)); in DMPlexSectionLoad_HDF5_Internal_CreateDataSF()
2887 PetscCall(PetscSectionGetOffset(leafSection, p, &off)); in DMPlexSectionLoad_HDF5_Internal_CreateDataSF()
2888 PetscCall(PetscSectionGetConstraintDof(leafSection, p, &cdof)); in DMPlexSectionLoad_HDF5_Internal_CreateDataSF()
[all …]
/petsc/src/vec/is/section/interface/
H A Dsection.c4101 …datatype, PetscSection rootSection, const void *rootData, PetscSection leafSection, void *leafData… in PetscSectionMigrateData() argument
4116 PetscValidHeaderSpecific(leafSection, PETSC_SECTION_CLASSID, 5); in PetscSectionMigrateData()
4120 PetscCall(PetscSFDistributeSection(migratePointSF, rootSection, &remoteOffsets, leafSection)); in PetscSectionMigrateData()
4121 …PetscCall(PetscSFCreateSectionSF(migratePointSF, rootSection, remoteOffsets, leafSection, &fieldSF… in PetscSectionMigrateData()
4124 PetscCall(PetscSectionGetStorageSize(leafSection, &fieldSize)); in PetscSectionMigrateData()
/petsc/src/dm/impls/forest/p4est/
H A Dpforest.h2933 PetscSection leafSection, rootSection; in DMPforestGetTransferSF_Internal() local
2938 PetscCall(PetscSectionCreate(PETSC_COMM_SELF, &leafSection)); in DMPforestGetTransferSF_Internal()
2940 PetscCall(PetscSectionSetChart(leafSection, pStartF, pEndF)); in DMPforestGetTransferSF_Internal()
2953 for (e = startF; e < endF; e++) PetscCall(PetscSectionSetDof(leafSection, e, dofPerDim[d])); in DMPforestGetTransferSF_Internal()
2957 PetscCall(PetscSectionSetUp(leafSection)); in DMPforestGetTransferSF_Internal()
2975 PetscCall(PetscSectionGetDof(leafSection, leaf, &dof)); in DMPforestGetTransferSF_Internal()
2986 PetscCall(PetscSectionGetDof(leafSection, leaf, &dof)); in DMPforestGetTransferSF_Internal()
2987 PetscCall(PetscSectionGetOffset(leafSection, leaf, &off)); in DMPforestGetTransferSF_Internal()
2999 PetscCall(PetscSectionDestroy(&leafSection)); in DMPforestGetTransferSF_Internal()