### Using FEniCS with Anaconda: list_lu_solver_methods() returns nothing

316

views

0

I am using Anaconda (version 1.6.2) and have set up an environment in Python 3.6.1, where I have downloaded and installed FEniCS as a package. For an integrated development environment I am using Spyder (version 3.1.4).

I am trying to perform LU decomposition using a solver, but when I run

I get the following error:

When I then run

I would thus be grateful if you could provide assistance on how to add LU solvers in my installation.

I have downloaded the petsc, petsc4py, mumps and superlu packages from Anaconda, but it has not fixed the issue.

Thank you very much for your time.

I am trying to perform LU decomposition using a solver, but when I run

*sol = LUSolver('mumps')**sol.solve(A, w.vector(), b)*I get the following error:

*Error: Unable to solve linear system using LU factorization.**Reason: Unknown LU method "mumps". Use list_lu_solver_methods() to list available LU methods.**Where: This error was encountered inside LUSolver.cpp.**Process: 0**DOLFIN version: 2017.1.0**Git changeset: 70e77054c0a013e3a47e7161fa01ca1b83930c26*When I then run

*list_lu_solver_methods()*or*list_krylov_solver_methods()*, the programme returns nothing for these commands.I would thus be grateful if you could provide assistance on how to add LU solvers in my installation.

I have downloaded the petsc, petsc4py, mumps and superlu packages from Anaconda, but it has not fixed the issue.

Thank you very much for your time.

Community: FEniCS Project

### 2 Answers

2

This is a PETSc/conda-forge issue. I suggest chipping in at https://github.com/conda-forge/petsc-feedstock/issues/12.

Thank you.

You can install from source. The FEniCS conda packages are constrained by conda-forge.

written
7 months ago by
Garth Wells

Thank you.

written
7 months ago by
5B4AIP

0

Installing from source did not fix this issue for me. list_lu_solver_methods() still returns nothing. Similarly all dolfin.list_ functions return nothing. Any reason why this would be the case?

Please login to add an answer/comment or follow this question.

If I could have a suggestion for an alternative method to obtain any LU solver working to get me going, that would be much appreciated.

Thank you very much for your time.