python myfile.py -log_view > file.txt On 13 Aug 2024, at 10:30, Aaron <aarawork@gmail.com> wrote:  Dear Firedrake Team, I'm PhD student and recently started to use Firedrake for my work. I'm implementing a FEM simulation and wanted to log the convergence of the PETSc KSP solver (e.g. residuals) in a log-file for later analysis. Maybe this is trivial, but unfortunately I did not find any information in the example codes on the firedrake homepage, the mailing list and GitHub Issues/Discussions. Could you please help me with this problem? Thanks in advance. All the best, Aaron P.S. I'm working with the Firedrake Docker Image 2024-07. _______________________________________________ firedrake mailing list firedrake@imperial.ac.uk https://mailman.ic.ac.uk/mailman/listinfo/firedrake