I'm trying to understand how to run a FEniCS program in parallel. I tried running the Cahn-Hilliard demo with mpirun -np 2 demo_cahn-hilliard.py and obtained the error
Number of global vertices: 9409
Number of global cells: 18432
Traceback (most recent call last):
Traceback (most recent call last):
File "demo_cahn-hilliard.py", line 115, in <module>
solver.solve(problem, u.vector())
RuntimeError:
*** -------------------------------------------------------------------------
*** DOLFIN encountered an error. If you are not able to resolve this issue
*** using the information listed below, you can ask for help at
***
*** fenics@fenicsproject.org
***
*** Remember to include the error message listed below and, if possible,
*** include a *minimal* running example to reproduce the error.
***
*** -------------------------------------------------------------------------
*** Error: Unable to solve linear system using PETSc LU solver.
*** Reason: No suitable solver for parallel LU found. Consider configuring PETSc with MUMPS or SuperLU_dist.
*** Where: This error was encountered inside PETScLUSolver.cpp.
*** Process: unknown
***
*** DOLFIN version: 1.4.0
*** Git changeset: 3b6582dfb45139c906c13b9ad57395632a2090f4
*** -------------------------------------------------------------------------
File "demo_cahn-hilliard.py", line 115, in <module>
solver.solve(problem, u.vector())
RuntimeError:
*** -------------------------------------------------------------------------
*** DOLFIN encountered an error. If you are not able to resolve this issue
*** using the information listed below, you can ask for help at
***
*** fenics@fenicsproject.org
***
*** Remember to include the error message listed below and, if possible,
*** include a *minimal* running example to reproduce the error.
***
*** -------------------------------------------------------------------------
*** Error: Unable to solve linear system using PETSc LU solver.
*** Reason: No suitable solver for parallel LU found. Consider configuring PETSc with MUMPS or SuperLU_dist.
*** Where: This error was encountered inside PETScLUSolver.cpp.
*** Process: unknown
***
*** DOLFIN version: 1.4.0
*** Git changeset: 3b6582dfb45139c906c13b9ad57395632a2090f4
*** -------------------------------------------------------------------------
--------------------------------------------------------------------------
mpirun noticed that the job aborted, but has no info as to the process
that caused that situation.
--------------------------------------------------------------------------
I'm having trouble solving this error, though I'm guessing there is an easy fix. Let me add that if I run the demo with mpirun -np 1 demo_cahn-hilliard.py, it works fine.