Where are solver parameters documented?

I know there’s

info(NonlinearSolver.parameters)

that will show me which parameters I can set, when using NonlinearSolver.

But I currently struggle to find information about the parameters for AdaptiveNonlinearVariationalSolver.
In the Dolfin docs neither the C++ nor the Python docs say anything and there is only a single parameter (reference) in the autoadaptive poisson demo that isn’t even explained in the demo file.

Can anyone help me, please?

To give a concrete example, I am using something like this:

pde = NonlinearVariationalProblem(F, n, bcs, J)
solver = AdaptiveNonlinearVariationalSolver(pde, M)

and it is working well, but it terminates after 15 iterations by default and I want to increase that.

solver.parameters["newton_solver"]["krylov_solver"]["maximum_iterations"] = 50

like for the NonlinearSolver iterface does not work (with “RuntimeError: Invalid parameter: newton_solver”).

2 Likes

I sort of found the answer by playing around. But I still think this should be explicitly mentioned somewhere.

[...]
pde = NonlinearVariationalProblem(F, n, bcs, J)
solver = AdaptiveNonlinearVariationalSolver(pde, M)

print(info(solver.parameters))

gives me the list that I was looking for.
However, I think this should be documented, because the only place I found that you can use info(...) was in the undocumented demos. :-/

1 Like