-log_view gives the performance, but for the residuals you want -ksp_monitor.

  Thanks,

     Matt

On Tue, Aug 13, 2024 at 6:15 AM Cotter, Colin J <colin.cotter@imperial.ac.uk> wrote:
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
_______________________________________________
firedrake mailing list
firedrake@imperial.ac.uk
https://mailman.ic.ac.uk/mailman/listinfo/firedrake


--
What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.
-- Norbert Wiener