DMGetApplicationContext#

Gets a user context from a DM object

Synopsis#

#include "petscdm.h"          
#include "petscdmlabel.h"     
#include "petscds.h"     
PetscErrorCode DMGetApplicationContext(DM dm, void *ctx)

Not Collective

Input Parameter#

  • dm - the DM object

Output Parameter#

  • ctx - 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#

DMGetApplicationContext(), DMView(), DMCreateGlobalVector(), DMCreateInterpolation(), DMCreateColoring(), DMCreateMatrix(), DMCreateMassMatrix(), DMGetApplicationContext()

Level#

intermediate

Location#

src/dm/interface/dm.c

Examples#

src/dm/tutorials/swarm_ex3.c.html
src/ksp/ksp/tutorials/ex28.c.html
src/ksp/ksp/tutorials/ex73.c.html
src/snes/tutorials/ex18.c.html
src/snes/tutorials/ex22.c.html
src/snes/tutorials/ex30.c.html
src/snes/tutorials/ex35.c.html
src/snes/tutorials/ex48.c.html
src/snes/tutorials/ex55.c.html
src/snes/tutorials/ex5.c.html
src/ts/tutorials/ex53.c.html


Edit on GitLab

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