DMSetApplicationContext#
Set a user context into a DM
object
Synopsis#
#include "petscdm.h"
#include "petscdmlabel.h"
#include "petscds.h"
PetscErrorCode DMSetApplicationContext(DM dm, void *ctx)
Not Collective
Input Parameters#
dm - the
DM
objectctx - the user context
Note#
A user context is a way to pass problem specific information that is accessible whenever the DM
is available
See Also#
DM Basics, DM
, DMGetApplicationContext()
, DMView()
, DMCreateGlobalVector()
, DMCreateInterpolation()
, DMCreateColoring()
, DMCreateMatrix()
, DMCreateMassMatrix()
Level#
intermediate
Location#
Examples#
src/snes/tutorials/ex19.c
src/dm/tutorials/swarm_ex3.c
src/snes/tutorials/ex26.c
src/snes/tutorials/ex23.c
src/snes/tutorials/ex69.c
src/snes/tutorials/ex5.c
src/snes/tutorials/ex15.c
src/snes/tutorials/ex18.c
src/snes/tutorials/ex36.c
src/snes/tutorials/ex17.c
Index of all DM routines
Table of Contents for all manual pages
Index of all manual pages