PetscFinalize#

Checks for options to be called at the conclusion of the program. MPI_Finalize() is called only if the user had not called MPI_Init() before calling PetscInitialize().

Synopsis#

#include "petscsys.h"   
PetscErrorCode PetscFinalize(void)

Collective on PETSC_COMM_WORLD

Options Database Keys#

  • -options_view - Calls PetscOptionsView()

  • -options_left - Prints unused options that remain in the database

  • -objects_dump [all] - Prints list of objects allocated by the user that have not been freed, the option all cause all outstanding objects to be listed

  • -mpidump - Calls PetscMPIDump()

  • -malloc_dump - Calls PetscMallocDump(), displays all memory allocated that has not been freed

  • -memory_view - Prints total memory usage

  • -malloc_view - Prints list of all memory allocated and in what functions

Note#

See PetscInitialize() for other runtime options.

See Also#

PetscInitialize(), PetscOptionsView(), PetscMallocDump(), PetscMPIDump(), PetscEnd()

Level#

beginner

Location#

src/sys/objects/pinit.c

Examples#

src/tao/bound/tutorials/plate2.c
src/tao/leastsquares/tutorials/cs1.c
src/tao/leastsquares/tutorials/chwirut2.c
src/tao/unconstrained/tutorials/minsurf2.c
src/tao/bound/tutorials/jbearing2.c
src/tao/leastsquares/tutorials/tomography.c
src/tao/complementarity/tutorials/minsurf1.c
src/tao/unconstrained/tutorials/rosenbrock3.c
src/tao/complementarity/tutorials/blackscholes.c
src/tao/leastsquares/tutorials/chwirut1.c


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