# PassiveScalar

PETSc type that represents either a double precision real number or a double precision complex number if the code is code is configured with --with-scalar-type=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