Skip to main content
`Ctrl`+`K`

# PETSC_DECIDE

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

## Example Usage

       VecSetSizes(ksp, PETSC_DECIDE, 10);

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/dm/tutorials/ex10.c
src/dm/dt/dualspace/impls/lagrange/tutorials/ex2.c
src/dm/impls/swarm/tutorials/ex1.c
src/dm/impls/stag/tutorials/ex4.c
src/dm/tutorials/ex12.c
src/dm/impls/stag/tutorials/ex3.c
src/dm/impls/stag/tutorials/ex2.c
src/dm/tutorials/ex1.c
src/dm/impls/stag/tutorials/ex6.c
src/dm/tutorials/ex14.c

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