PetscObjectParameterDeclarePtr — PETSc 3.25.4 documentation

Skip to main content
`Ctrl`+`K`

# PetscObjectParameterDeclarePtr

declares a pointer-valued parameter inside a `PetscObject` together with a slot for its default No Fortran Support

## Synopsis

    #include <petscsys.h>
    PetscObjectParameterDeclarePtr(type, NAME)

## Input Parameters

- type - the pointee type of the parameter, for example `PetscReal`

- NAME - the name of the parameter, unquoted

## Note

Equivalent to `PetscObjectParameterDeclare()` but for pointer-valued parameters: declares `type *NAME` and `type *default_##NAME` so that `PetscObjectParameterSetDefault()` can record and propagate the default value.

## See Also

`PetscObjectParameterDeclare()`, `PetscObjectParameterSetDefault()`, `PetscInitialize()`, `PetscFinalize()`, `PetscObject`, `SNESParametersInitialize()`

## Level

developer

## Location

include/petscsys.h

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