Home
last modified time | relevance | path

Searched refs:gsection (Results 1 – 8 of 8) sorted by relevance

/petsc/src/dm/impls/plex/tests/
H A Dex31.c46 PetscSection s = NULL, gsection = NULL; in main() local
95 …PetscCall(PetscSectionCreateGlobalSection(s, sf, PETSC_TRUE, PETSC_FALSE, PETSC_FALSE, &gsection)); in main()
96 PetscCall(PetscSectionGetStorageSize(gsection, &gSizeBefore)); in main()
102 PetscCall(PetscSectionDestroy(&gsection)); in main()
108 …PetscCall(PetscSectionCreateGlobalSection(s, sf, PETSC_TRUE, PETSC_FALSE, PETSC_FALSE, &gsection)); in main()
109 PetscCall(PetscSectionGetStorageSize(gsection, &gSizeAfter)); in main()
117 PetscCall(PetscSectionDestroy(&gsection)); in main()
H A Dex21.c200 PetscSection section, gsection; in main() local
266 PetscCall(DMGetGlobalSection(sdm, &gsection)); in main()
267 PetscCall(PetscSectionGetIncludesConstraints(gsection, &includesConstraints)); in main()
272 if (includesConstraints) PetscCall(PetscSectionGetStorageSize(gsection, &n)); in main()
273 else PetscCall(PetscSectionGetConstrainedStorageSize(gsection, &n)); in main()
382 PetscSection section, gsection; in main() local
444 PetscCall(DMGetGlobalSection(sdm, &gsection)); in main()
445 PetscCall(PetscObjectSetName((PetscObject)gsection, "Load: global section")); in main()
446 PetscCall(PetscSectionView(gsection, PETSC_VIEWER_STDOUT_(comm))); in main()
447 PetscCall(PetscSectionGetIncludesConstraints(gsection, &includesConstraints)); in main()
[all …]
/petsc/src/vec/is/tests/
H A Dex5.c125 PetscSection section, gsection; in main() local
192 …onCreateGlobalSection(section, sf, PETSC_TRUE, user.includes_constraints, PETSC_FALSE, &gsection)); in main()
196 PetscCall(PetscSectionView(gsection, viewer)); in main()
200 PetscCall(PetscObjectSetName((PetscObject)gsection, "Save: global section")); in main()
201 PetscCall(PetscSectionView(gsection, PETSC_VIEWER_STDOUT_(comm))); in main()
202 PetscCall(PetscSectionDestroy(&gsection)); in main()
/petsc/src/vec/is/section/interface/
H A Dsection.c1475 …cBool usePermutation, PetscBool includeConstraints, PetscBool localOffsets, PetscSection *gsection) in PetscSectionCreateGlobalSection() argument
1490 PetscAssertPointer(gsection, 6); in PetscSectionCreateGlobalSection()
1588 *gsection = gs; in PetscSectionCreateGlobalSection()
1621 …scBool includeConstraints, PetscInt numExcludes, const PetscInt excludes[], PetscSection *gsection) in PetscSectionCreateGlobalSectionCensored() argument
1631 PetscAssertPointer(gsection, 6); in PetscSectionCreateGlobalSectionCensored()
1632 PetscCall(PetscSectionCreate(PetscObjectComm((PetscObject)s), gsection)); in PetscSectionCreateGlobalSectionCensored()
1634 PetscCall(PetscSectionSetChart(*gsection, pStart, pEnd)); in PetscSectionCreateGlobalSectionCensored()
1642 tmpOff = &(*gsection)->atlasDof[-pStart]; in PetscSectionCreateGlobalSectionCensored()
1649 PetscCall(PetscSectionSetDof(*gsection, p, 0)); in PetscSectionCreateGlobalSectionCensored()
1655 PetscCall(PetscSectionSetDof(*gsection, p, dof)); in PetscSectionCreateGlobalSectionCensored()
[all …]
/petsc/src/dm/label/
H A Ddmlabel.c2592 …tscSF sf, PetscBool includeConstraints, DMLabel label, PetscInt labelValue, PetscSection *gsection) in PetscSectionCreateGlobalSectionLabel() argument
2601 PetscCall(PetscSectionCreate(PetscObjectComm((PetscObject)s), gsection)); in PetscSectionCreateGlobalSectionLabel()
2603 PetscCall(PetscSectionSetChart(*gsection, pStart, pEnd)); in PetscSectionCreateGlobalSectionLabel()
2611 tmpOff = &(*gsection)->atlasDof[-pStart]; in PetscSectionCreateGlobalSectionLabel()
2621 PetscCall(PetscSectionSetDof(*gsection, p, dof)); in PetscSectionCreateGlobalSectionLabel()
2623 … if (!includeConstraints && cdof > 0) PetscCall(PetscSectionSetConstraintDof(*gsection, p, cdof)); in PetscSectionCreateGlobalSectionLabel()
2626 PetscCall(PetscSectionSetUpBC(*gsection)); in PetscSectionCreateGlobalSectionLabel()
2632 if (tmpOff[p] < 0) (*gsection)->atlasDof[p - pStart] = tmpOff[p]; in PetscSectionCreateGlobalSectionLabel()
2639 (*gsection)->atlasOff[p] = off; in PetscSectionCreateGlobalSectionLabel()
2640 off += (*gsection)->atlasDof[p] > 0 ? (*gsection)->atlasDof[p] - cdof : 0; in PetscSectionCreateGlobalSectionLabel()
[all …]
/petsc/src/dm/impls/plex/hdf5/
H A Dplexhdf5.c1601 PetscSection gsection; in DMPlexSectionView_HDF5_Internal() local
1617 PetscCall(DMGetGlobalSection(sectiondm, &gsection)); in DMPlexSectionView_HDF5_Internal()
1619 PetscCall(PetscSectionView(gsection, viewer)); in DMPlexSectionView_HDF5_Internal()
1628 PetscCall(PetscSectionGetChart(gsection, &pStart, &pEnd)); in DMPlexSectionView_HDF5_Internal()
/petsc/src/dm/interface/
H A Ddm.c6547 PetscSection newSection, gsection; in DMGetOutputDM() local
6559 …tscCall(PetscSectionCreateGlobalSection(section, sf, usePerm, PETSC_TRUE, PETSC_FALSE, &gsection)); in DMGetOutputDM()
6560 PetscCall(DMSetGlobalSection(dm->dmBC, gsection)); in DMGetOutputDM()
6561 PetscCall(PetscSectionDestroy(&gsection)); in DMGetOutputDM()
/petsc/src/dm/impls/plex/
H A Dplex.c10212 PetscSection section, newSection, gsection; in DMGetFullDM() local
10231 …l(PetscSectionCreateGlobalSection(newSection, sf, PETSC_TRUE, PETSC_TRUE, PETSC_FALSE, &gsection)); in DMGetFullDM()
10232 PetscCall(DMSetGlobalSection(*odm, gsection)); in DMGetFullDM()
10233 PetscCall(PetscSectionDestroy(&gsection)); in DMGetFullDM()