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
Notes#
A user context is a way to pass problem specific information that is accessible whenever the DM
is available
In a multilevel solver, the user context is shared by all the DM
in the hierarchy; it is thus not advisable
to store objects that represent discretized quantities inside the context.
See Also#
DM Basics, DM
, DMGetApplicationContext()
, DMView()
, DMCreateGlobalVector()
, DMCreateInterpolation()
, DMCreateColoring()
, DMCreateMatrix()
, DMCreateMassMatrix()
Level#
intermediate
Location#
Examples#
src/ts/tutorials/ex53.c
src/ts/tutorials/ex77.c
src/ts/tutorials/ex48.c
src/dm/tutorials/swarm_ex3.c
src/ts/tutorials/ex47.c
src/ts/tutorials/ex26.c
src/ts/tutorials/ex46.c
src/ts/tutorials/ex27.c
src/ts/tutorials/ex76.c
src/ts/tutorials/ex45.c
Index of all DM routines
Table of Contents for all manual pages
Index of all manual pages