PetscSectionSetNumFields#
Sets the number of fields in a PetscSection
Synopsis#
#include "petscsection.h"
PetscErrorCode PetscSectionSetNumFields(PetscSection s, PetscInt numFields)
Not Collective
Input Parameters#
s - the
PetscSectionnumFields - the number of fields
Notes#
Calling this destroys all the information in the PetscSection including the chart.
You must call PetscSectionSetChart() after calling this.
See Also#
PetscSection, PetscSection, PetscSectionGetNumFields(), PetscSectionSetChart(), PetscSectionReset()
Level#
intermediate
Location#
Examples#
src/vec/is/tests/ex5.c
src/dm/impls/plex/tutorials/ex7.c
src/dm/impls/forest/tests/ex3.c
src/dm/impls/plex/tests/ex21.c
src/dm/impls/plex/tests/ex22.c
src/dm/impls/plex/tests/ex26.c
src/dm/impls/plex/tests/ex26f90.F90
src/dm/impls/plex/tests/ex31.c
src/dm/impls/plex/tests/ex47.c
src/dm/impls/plex/tests/ex62f90.F90
Index of all PetscSection routines
Table of Contents for all manual pages
Index of all manual pages