PetscRegisterFinalize

Registers a function that is to be called in PetscFinalize()

Synopsis

#include "petsc.h"    
PetscErrorCode PETSC_DLLEXPORT PetscRegisterFinalize(PetscErrorCode (*f)(void))
Not Collective

Input Parameter

PetscErrorCode (*fun)(void) -

Notes

This is used by, for example, DMPackageInitialize() to have DMPackageFinalize() called

See Also

PetscRegisterFinalizeAll()

Level:developer
Location:
src/sys/objects/destroy.c
Index of all Sys routines
Table of Contents for all manual pages
Index of all manual pages