[petsc-users] petsc4py and python's logging module

David Nolte dnolte at dim.uchile.cl
Mon May 29 11:17:30 CDT 2017


Dear all,

is it possible to use python's logging module
(https://docs.python.org/2/howto/logging.html) to handle PETSc output in
python, such as the residuals during a KSP/SNES solve?
I log my solver's activity to a file using the logging module, it would
be great to include the PETSc output aswell.

Regards,
David



More information about the petsc-users mailing list