12.7. Saving Output to a File

Up: Contents Next: Accurate Profiling: Overcoming the Overhead of Paging Previous: Time

All output from PETSc programs (including informative messages, profiling information, and convergence data) can be saved to a file by using the command line option -log_history [filename]. If no file name is specified, the output is stored in the file $HOME/.petschistory. Note that this option only saves output printed with the PetscPrintf() and PetscFPrintf() commands, not the standard printf() and fprintf() statements.


Up: Contents Next: Accurate Profiling: Overcoming the Overhead of Paging Previous: Time