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

How can I set the solver in adaptivelinearsolver to something other than UMFPACK?

0 votes

I would like to set the solver used in AdaptiveLinearVariationalSolver to something other than UMFPACK (due to 4gb limit).

I have tried
solver.parameters["error_control"]["dual_variational_solver"]["linear_solver"] = "gmres"
but it still uses UMFPACK, and something like
solver.parameters["linear_variational_solver"] = "gmres"
fails with
KeyError: "'linear_variational_solver' is not a parameter"

How can I set the linear solver in AdaptiveLinearVariationalSolver?

asked Aug 27, 2014 by obm FEniCS Novice (680 points)
edited Aug 27, 2014 by obm

1 Answer

0 votes

After a bit of digging in the source code, I found out that

solver.parameters["error_control"]["dual_variational_solver"]["linear_solver"] = "gmres"
solver.parameters["linear_variational_solver"]["linear_solver"] = "gmres"

works.

Now I have a different problem.

answered Aug 27, 2014 by obm FEniCS Novice (680 points)
...