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

Saving number of krylov iterations

0 votes

I'm using a NonlinearVariationalSolver and am interested in the total number of Krylov iterations done in time-integration. While I know I can see the number of iterations done in every timestep by the Newton-solve with

set_log_level(PROGRESS)

on the console, I don't know how to store these or extract them from the Krylov/Newton/NonlinearVariationalSolver.

Is there a way to get these numbers for further use?

asked Mar 22, 2017 by Peter Meisrimel FEniCS Novice (250 points)
...