# PassiveScalar

PETSc type that represents either a double precision real number or a double precision complex number if the code is compiled with BOPT=g_complex or O_complex

This is the same as a PetscScalar except in code that is automatically differentiated it is treated as a constant (not an indendent or dependent variable)

### See Also

PetscReal, PassiveReal, PetscScalar

Level:beginner
Location: include/petsc.h
Index of all Sys routines
Table of Contents for all manual pages
Index of all manual pages

### Examples

src/snes/examples/tutorials/ex24.c.html
src/snes/examples/tutorials/ex30.c.html