DMFieldShellGetContext — PETSc 3.25.4 documentation

Skip to main content
`Ctrl`+`K`

# DMFieldShellGetContext

Retrieve the user-supplied context associated with a `DMFIELDSHELL`.

## Synopsis

    #include "petscdmfield.h"
    PetscErrorCode DMFieldShellGetContext(DMField field, PetscCtxRt ctx)

Not Collective

## Input Parameter

- field - the `DMField` of type `DMFIELDSHELL`

## Output Parameter

- ctx - the context pointer that was passed to `DMFieldCreateShell()`

## See Also

`DMField`, `DMFIELDSHELL`, `DMFieldCreateShell()`

## Level

intermediate

## Location

src/dm/field/impls/shell/dmfieldshell.c

## Examples

src/dm/field/tutorials/ex1.c

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