PetscFinalize

Checks for options to be called at the conclusion of the program and calls MPI_Finalize().

Synopsis

int PetscFinalize(void)
Collective on PETSC_COMM_WORLD

Options Database Keys

-optionstable - Calls OptionsPrint()
-optionsleft - Prints unused options that remain in the database
-mpidump - Calls PetscMPIDump()
-trdump - Calls PetscTrDump()
-trinfo - Prints total memory usage
-trdebug - Calls malloc_debug(2) to activate memory allocation diagnostics (used by PETSC_ARCH=sun4, BOPT=[g,g_c++,g_complex] only!)
-trmalloc_log - Prints summary of memory usage

Options Database Keys for Profiling

See the 'Profiling' chapter of the users manual for details.
-log_summary [filename] - Prints summary of flop and timing information to screen. If the filename is specified the summary is written to the file. (for code compiled with USE_PETSC_LOG). See PLogPrintSummary().
-log_all [filename] - Logs extensive profiling information (for code compiled with USE_PETSC_LOG). See PLogDump().
-log [filename] - Logs basic profiline information (for code compiled with USE_PETSC_LOG). See PLogDump().
-log_sync - Log the synchronization in scatters, inner products and norms
-log_mpe [filename] - Creates a logfile viewable by the utility Upshot/Nupshot (in MPICH distribution)

Note

See PetscInitialize() for more general runtime options.

Keywords

finalize, exit, end

See Also

PetscInitialize(), OptionsPrint(), PetscTrDump(), PetscMPIDump()

Examples

src/sys/examples/tutorials/ex2.c
src/sys/examples/tutorials/ex1.c

Location: src/sys/src/objectsoptions.c
System Index
Table of Contents