Home
last modified time | relevance | path

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

/petsc/src/dm/impls/plex/tests/
H A Dex22.c163 PetscSection sec, newSec; in main() local
170 PetscCall(PetscSectionCreate(PetscObjectComm((PetscObject)sec), &newSec)); in main()
171 PetscCall(PetscSectionSetNumFields(newSec, 1)); in main()
173 PetscCall(PetscSectionSetChart(newSec, pStart, pEnd)); in main()
179 PetscCall(PetscSectionSetDof(newSec, p, (nDof / dim) * dimC)); in main()
180 PetscCall(PetscSectionSetFieldDof(newSec, p, 0, (nDof / dim) * dimC)); in main()
182 PetscCall(PetscSectionSetUp(newSec)); in main()
183 PetscCall(PetscSectionGetStorageSize(newSec, &newN)); in main()
196 PetscCall(DMSetCoordinateSection(dm, dimC, newSec)); in main()
199 PetscCall(PetscSectionDestroy(&newSec)); in main()