PETSC_DECIDE#

standard way of passing an integer or floating point parameter to indicate PETSc should determine an appropriate value

Example Usage#

indicates that the global size of the vector is 10 and the local size will be automatically determined so that the sum of the local sizes is the global size, see PetscSplitOwnership().

Fortran Note#

Use PETSC_DECIDE_INTEGER or PETSC_DECIDE_REAL.

See Also#

PETSC_DEFAULT, PETSC_IGNORE, PETSC_DETERMINE, `PETSC_UNLIMITED’

Level#

beginner

Location#

include/petscsys.h

Examples#

src/tao/pde_constrained/tutorials/elliptic.c
src/tao/unconstrained/tutorials/minsurf2.c
src/tao/constrained/tutorials/maros.c
src/tao/bound/tutorials/plate2.c
src/tao/tutorials/ex4.c
src/tao/pde_constrained/tutorials/hyperbolic.c
src/tao/leastsquares/tutorials/tomography.c
src/tao/constrained/tutorials/tomographyADMM.c
src/tao/pde_constrained/tutorials/parabolic.c


Index of all Sys routines
Table of Contents for all manual pages
Index of all manual pages