Home
last modified time | relevance | path

Searched refs:aSec (Results 1 – 6 of 6) sorted by relevance

/petsc/src/dm/impls/plex/
H A Dplexsection.c198 PetscSection aSec; in DMPlexCreateSectionBCDof() local
244 PetscCall(DMPlexGetAnchors(dm, &aSec, NULL)); in DMPlexCreateSectionBCDof()
245 if (aSec) { in DMPlexCreateSectionBCDof()
248 PetscCall(PetscSectionGetChart(aSec, &aStart, &aEnd)); in DMPlexCreateSectionBCDof()
252 PetscCall(PetscSectionGetDof(aSec, a, &dof)); in DMPlexCreateSectionBCDof()
272 PetscSection aSec; in DMPlexCreateSectionBCIndicesField() local
335 PetscCall(DMPlexGetAnchors(dm, &aSec, NULL)); in DMPlexCreateSectionBCIndicesField()
336 if (aSec) { in DMPlexCreateSectionBCIndicesField()
340 PetscCall(PetscSectionGetChart(aSec, &aStart, &aEnd)); in DMPlexCreateSectionBCIndicesField()
344 PetscCall(PetscSectionGetDof(aSec, a, &dof)); in DMPlexCreateSectionBCIndicesField()
[all …]
H A Dplexpreallocate.c10 PetscSection section, sectionGlobal, adjSec, aSec; in DMPlexComputeAnchorAdjacencies() local
20 PetscCall(DMPlexGetAnchors(dm, &aSec, &aIS)); in DMPlexComputeAnchorAdjacencies()
21 if (aSec) { in DMPlexComputeAnchorAdjacencies()
28 PetscCall(PetscSectionCreate(PetscObjectComm((PetscObject)aSec), &inverseSec)); in DMPlexComputeAnchorAdjacencies()
42 PetscCall(PetscSectionGetChart(aSec, &aStart, &aEnd)); in DMPlexComputeAnchorAdjacencies()
46 PetscCall(PetscSectionGetDof(aSec, p, &dof)); in DMPlexComputeAnchorAdjacencies()
47 PetscCall(PetscSectionGetOffset(aSec, p, &off)); in DMPlexComputeAnchorAdjacencies()
H A Dplextree.c656 PetscSection aSec; in DMPlexCreateAnchors_Tree() local
683 PetscCall(PetscSectionCreate(PETSC_COMM_SELF, &aSec)); in DMPlexCreateAnchors_Tree()
684 PetscCall(PetscSectionSetChart(aSec, aMin, aMax)); in DMPlexCreateAnchors_Tree()
703 PetscCall(PetscSectionSetDof(aSec, p, closureSize)); in DMPlexCreateAnchors_Tree()
707 PetscCall(PetscSectionSetUp(aSec)); in DMPlexCreateAnchors_Tree()
708 PetscCall(PetscSectionGetStorageSize(aSec, &size)); in DMPlexCreateAnchors_Tree()
727 PetscCall(PetscSectionGetOffset(aSec, p, &aOff)); in DMPlexCreateAnchors_Tree()
736 PetscSection aSecNew = aSec; in DMPlexCreateAnchors_Tree()
739 PetscCall(PetscObjectReference((PetscObject)aSec)); in DMPlexCreateAnchors_Tree()
742 PetscCall(PetscSectionDestroy(&aSec)); in DMPlexCreateAnchors_Tree()
[all …]
H A Dplexdistribute.c187 PetscSection aSec = NULL; in DMPlexGetMaxAdjacencySize_Internal() local
190 PetscCall(DMPlexGetAnchors(dm, &aSec, &aIS)); in DMPlexGetMaxAdjacencySize_Internal()
191 if (aSec) { in DMPlexGetMaxAdjacencySize_Internal()
192 PetscCall(PetscSectionGetMaxDof(aSec, &maxAnchors)); in DMPlexGetMaxAdjacencySize_Internal()
194 PetscCall(PetscSectionGetChart(aSec, &aStart, &aEnd)); in DMPlexGetMaxAdjacencySize_Internal()
229 PetscSection aSec = NULL; in DMPlexGetAdjacency_Internal() local
236 PetscCall(DMPlexGetAnchors(dm, &aSec, &aIS)); in DMPlexGetAdjacency_Internal()
237 if (aSec) { in DMPlexGetAdjacency_Internal()
238 PetscCall(PetscSectionGetChart(aSec, &aStart, &aEnd)); in DMPlexGetAdjacency_Internal()
257 if (useAnchors && aSec) { in DMPlexGetAdjacency_Internal()
[all …]
H A Dplex.c7841 PetscSection aSec, cSec; in DMPlexAnchorsGetSubMatModification() local
7862 PetscCall(DMPlexGetAnchors(dm, &aSec, &aIS)); in DMPlexAnchorsGetSubMatModification()
7864 if (aSec) { in DMPlexAnchorsGetSubMatModification()
7868 PetscCall(PetscSectionGetChart(aSec, &aStart, &aEnd)); in DMPlexAnchorsGetSubMatModification()
7886 if (b >= aStart && b < aEnd) PetscCall(PetscSectionGetDof(aSec, b, &bDof)); in DMPlexAnchorsGetSubMatModification()
7892 PetscCall(PetscSectionGetOffset(aSec, b, &bOff)); in DMPlexAnchorsGetSubMatModification()
7928 if (aSec) PetscCall(ISRestoreIndices(aIS, &anchors)); in DMPlexAnchorsGetSubMatModification()
7942 if (aSec) PetscCall(ISRestoreIndices(aIS, &anchors)); in DMPlexAnchorsGetSubMatModification()
7963 if (b >= aStart && b < aEnd) PetscCall(PetscSectionGetDof(aSec, b, &bDof)); in DMPlexAnchorsGetSubMatModification()
7965 PetscCall(PetscSectionGetOffset(aSec, b, &bOff)); in DMPlexAnchorsGetSubMatModification()
[all …]
/petsc/src/dm/impls/plex/tests/
H A Dex3.c399 PetscSection aSec; in SetupSection() local
419 PetscCall(PetscSectionCreate(PETSC_COMM_SELF, &aSec)); in SetupSection()
420 PetscCall(PetscSectionSetChart(aSec, PetscMin(fStart, vStart), PetscMax(fEnd, vEnd))); in SetupSection()
431 PetscCall(PetscSectionSetDof(aSec, v, 1)); in SetupSection()
435 PetscCall(PetscSectionSetDof(aSec, f, 1)); in SetupSection()
438 PetscCall(PetscSectionSetUp(aSec)); in SetupSection()
441 PetscCall(DMPlexSetAnchors(dm, aSec, aIS)); in SetupSection()
442 PetscCall(PetscSectionDestroy(&aSec)); in SetupSection()
450 PetscSection aSec; in SetupSection() local
453 PetscCall(DMPlexGetAnchors(dm, &aSec, &aIS)); in SetupSection()
[all …]