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

How to list solvers?

0 votes

Hi, I just want to list the solvers/preconditioners using

list_lu_methods()

just to see what will be the most suitable for my program.
I'm referring to the documentation of "solve"
http://fenicsproject.org/documentation/dolfin/dev/python/programmers-reference/fem/solving/solve.html

When I simply type in: list_lu_methods() in the fenics-terminal I get nothing but the "greater than" sign and I would expect some kind of list.

What's wrong?

asked Dec 1, 2015 by Fenics4ever FEniCS Novice (210 points)

1 Answer

0 votes

Try 'list_krylov_solver_methods', 'list_krylov_solver_preconditioners',
'list_linear_solver_methods' to get a list of Krylov solvers, preconditioners etc

Also, I assume your "fenics-terminal" is a Python shell where you
have imported fenics.

answered Dec 1, 2015 by Kent-Andre Mardal FEniCS Expert (14,380 points)
...