PETSC_DEFAULT — PETSc 3.21.4 documentation

Skip to main content
`Ctrl`+`K`

# PETSC_DEFAULT

standard way of passing in integer or floating point parameter where you wish PETSc to use the default.

## Fortran Note

You need to use `PETSC_DEFAULT_INTEGER` or `PETSC_DEFAULT_REAL`.

## See Also

`PETSC_DECIDE`, `PETSC_IGNORE`, `PETSC_DETERMINE`

## Level

beginner

## Location

include/petscsys.h

## Examples

src/ksp/ksp/tutorials/ex15.c
src/ksp/ksp/tutorials/ex23.c
src/dm/field/tutorials/ex1.c
src/ksp/ksp/tutorials/ex2.c
src/ksp/ksp/tutorials/ex1.c
src/ksp/ksp/tutorials/ex18.c

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