Searched refs:newSec (Results 1 – 1 of 1) sorted by relevance
| /petsc/src/dm/impls/plex/tests/ |
| H A D | ex22.c | 163 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()
|