verbose mode for nonlinear solve? #2586
-
When solving a nonlinear variational problem, is there a "verbose" option? For instance, to see how many Newton iterations it takes? It would be useful to have for debugging. When I use "solve(F == 0)" now, it is silent. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
You can do |
Beta Was this translation helpful? Give feedback.
-
Thanks for the super-fast response. Seems weird that None tells it to output info, but whatever. |
Beta Was this translation helpful? Give feedback.
You can do
solve(F == 0, u, bcs, solver_parameters={"snes_monitor": None})
to get PETSc to tell you what's happening. (I wonder if this should be the default.)