petsc-3.14.6 2021-03-30
Report Typos and Errors

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 object
ctx - the user context

See Also

DMView(), DMCreateGlobalVector(), DMCreateInterpolation(), DMCreateColoring(), DMCreateMatrix(), 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/ex50.c.html
src/ksp/ksp/tutorials/ex66.c.html
src/ksp/ksp/tutorials/ex73.c.html
src/snes/tutorials/ex5.c.html
src/snes/tutorials/ex12.c.html
src/snes/tutorials/ex15.c.html
src/snes/tutorials/ex17.c.html
src/snes/tutorials/ex18.c.html
src/snes/tutorials/ex19.c.html

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