petsc-3.13.6 2020-09-29
DMSetApplicationContextDestroy
Sets a user function that will be called to destroy the Section 1.5 Writing Application Codes with PETSc context when the DM is destroyed
Synopsis
#include "petscdm.h"
#include "petscdmlabel.h"
#include "petscds.h"
PetscErrorCode DMSetApplicationContextDestroy(DM dm,PetscErrorCode (*destroy)(void**))
Not Collective
Input Parameters
| dm | - the DM object
|
| destroy | - the destroy function
|
See Also
DMView(), DMCreateGlobalVector(), DMCreateInterpolation(), DMCreateColoring(), DMCreateMatrix(), DMGetApplicationContext()
Level
intermediate
Location
src/dm/interface/dm.c
Examples
src/snes/tutorials/ex35.c.html
Index of all DM routines
Table of Contents for all manual pages
Index of all manual pages