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

How do I compile DOLFIN with Hypre or ML?

+3 votes

I'm a beginner at FEniCS. I recently installed FEniCS 1.2.0 for the MAC OS X10.8.
I'm trying to get the stokes-iterative demo to run but I keep encountering the error
"Sorry, this demo is only available when DOLFIN is compiled with AMG preconditioner,
Hypre or ML." I've been trying to read up on how to compile DOLFIN with Hypre using
PETSc but am unsure how to do this in the FEniCS framework. How do I load FEniCS to where DOLFIN is compiled with one of these AMG proconditioners?

Just to be clear, I can get the other demos to run, such as the Poisson demo. It is
just the stoke-iterative demo I'm having trouble running.

Thanks,

Amanda

asked Aug 5, 2013 by adiegel FEniCS Novice (290 points)
edited Aug 6, 2013 by Garth N. Wells

I had actually downloaded and installed PETSc and could never get the stokes-iterative demo running on the Mac operating system. I eventually downloaded Ubuntu as a dual operating system. The linux version seems to work fine.

1 Answer

+1 vote
 
Best answer

You'll need to build your own version of PETSc with ML and/or Hypre enabled. PETSc has build instructions on how to do this. If you install PETSc via MacPorts, it comes with ML.

answered Aug 6, 2013 by Garth N. Wells FEniCS Expert (35,930 points)
selected Aug 14, 2013 by Jan Blechta
...