petsc-3.3-p7 2013-05-11

DMKSPGetContext

get read-only private KSPDM context from a DM

Synopsis

#include "petscksp.h" 
#include "petscdm.h"  
PetscErrorCode DMKSPGetContext(DM dm,KSPDM *snesdm)
Not Collective

Input Argument

dm -DM to be used with KSP

Output Argument

snesdm -private KSPDM context

Notes

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

See Also

DMKSPGetContextWrite()

Level:developer
Location:
src/ksp/ksp/interface/dmksp.c
Index of all KSP routines
Table of Contents for all manual pages
Index of all manual pages