This is a read only copy of the old FEniCS QA forum. Please visit the new QA forum to ask questions

redirect PETSc snes output to a file instead of terminal

0 votes

Hi all,
When I use the petsc snes solver with report = true, I get lots of good info spewed in my terminal. Does anyone know a way to redirect that to a log file instead?

Thanks

asked Aug 13, 2014 by mwelland FEniCS User (8,410 points)

1 Answer

0 votes
>>> python yourproblem.py > output.txt
answered Aug 15, 2014 by mikael-mortensen FEniCS Expert (29,340 points)

Thanks, but I only want the PETSc output to go into a file, not all the output. Basically, I don't want to always see the PETSc output (and have it overwhelm the other program output), but have it available if I need to check why the solver behaviour.

...