Lines Matching refs:section
200 PetscSection section, gsection; in main() local
206 PetscCall(PetscSectionCreate(comm, §ion)); in main()
207 PetscCall(PetscSectionSetNumFields(section, 2)); in main()
209 PetscCall(PetscSectionSetChart(section, pStart, pEnd)); in main()
212 PetscCall(PetscSectionSetDof(section, 3, 2)); in main()
213 PetscCall(PetscSectionSetDof(section, 12, 3)); in main()
214 PetscCall(PetscSectionSetDof(section, 25, 2)); in main()
215 PetscCall(PetscSectionSetConstraintDof(section, 12, 1)); in main()
216 PetscCall(PetscSectionSetFieldDof(section, 3, 0, 2)); in main()
217 PetscCall(PetscSectionSetFieldDof(section, 12, 0, 2)); in main()
218 PetscCall(PetscSectionSetFieldDof(section, 12, 1, 1)); in main()
219 PetscCall(PetscSectionSetFieldDof(section, 25, 1, 2)); in main()
220 PetscCall(PetscSectionSetFieldConstraintDof(section, 12, 1, 1)); in main()
223 PetscCall(PetscSectionSetDof(section, 0, 2)); in main()
224 PetscCall(PetscSectionSetDof(section, 1, 1)); in main()
225 PetscCall(PetscSectionSetDof(section, 8, 3)); in main()
226 PetscCall(PetscSectionSetDof(section, 20, 2)); in main()
227 PetscCall(PetscSectionSetConstraintDof(section, 8, 1)); in main()
228 PetscCall(PetscSectionSetFieldDof(section, 0, 0, 2)); in main()
229 PetscCall(PetscSectionSetFieldDof(section, 8, 0, 2)); in main()
230 PetscCall(PetscSectionSetFieldDof(section, 1, 1, 1)); in main()
231 PetscCall(PetscSectionSetFieldDof(section, 8, 1, 1)); in main()
232 PetscCall(PetscSectionSetFieldDof(section, 20, 1, 2)); in main()
233 PetscCall(PetscSectionSetFieldConstraintDof(section, 8, 1, 1)); in main()
236 PetscCall(PetscSectionSetUp(section)); in main()
243 PetscCall(PetscSectionSetConstraintIndices(section, 12, indices)); in main()
244 PetscCall(PetscSectionSetFieldConstraintIndices(section, 12, 1, indices1)); in main()
247 PetscCall(PetscSectionSetConstraintIndices(section, 8, indices)); in main()
248 PetscCall(PetscSectionSetFieldConstraintIndices(section, 8, 1, indices1)); in main()
262 PetscCall(DMSetLocalSection(sdm, section)); in main()
263 PetscCall(PetscSectionDestroy(§ion)); in main()
382 PetscSection section, gsection; in main() local
398 PetscCall(PetscSectionCreate(comm, §ion)); in main()
412 PetscCall(PetscSectionSetPermutation(section, perm)); in main()
414 PetscCall(DMSetLocalSection(sdm, section)); in main()
415 PetscCall(PetscSectionDestroy(§ion)); in main()
418 PetscCall(DMGetLocalSection(sdm, §ion)); in main()
419 PetscCall(PetscObjectSetName((PetscObject)section, "Load: local section")); in main()
420 PetscCall(PetscSectionView(section, PETSC_VIEWER_STDOUT_(comm))); in main()
421 PetscCall(PetscSectionGetIncludesConstraints(section, &includesConstraints)); in main()
426 if (includesConstraints) PetscCall(PetscSectionGetStorageSize(section, &m)); in main()
427 else PetscCall(PetscSectionGetConstrainedStorageSize(section, &m)); in main()