The information about how many Newton iterations were made is lagging one iteration behind. Consider this line, we do the following:
newton_step
after_nonlinear_convergence, which inside updates the next time step value based on the number of iterations
iteration_counter += 1
If Newton converges after 1 linear system solved, the time manager will get the information that Newton did 0 iterations. It is easy to fix this by swapping the steps 2 and 3.
The information about how many Newton iterations were made is lagging one iteration behind. Consider this line, we do the following:
newton_step
after_nonlinear_convergence
, which inside updates the next time step value based on the number of iterationsiteration_counter += 1
If Newton converges after 1 linear system solved, the time manager will get the information that Newton did 0 iterations. It is easy to fix this by swapping the steps 2 and 3.