petsc-3.3-p7 2013-05-11

DMSNESGetContext

get read-only private SNESDM context from a DM

Synopsis

#include "petscsnes.h" 
#include "petscdm.h" 
PetscErrorCode DMSNESGetContext(DM dm,SNESDM *snesdm)
Not Collective

Input Argument

dm -DM to be used with SNES

Output Argument

snesdm -private SNESDM context

Notes

Use DMSNESGetContextWrite() if write access is needed. The DMSNESSetXXX API should be used wherever possible.

See Also

DMSNESGetContextWrite()

Level:developer
Location:
src/snes/utils/dmsnes.c
Index of all SNES routines
Table of Contents for all manual pages
Index of all manual pages