On Mon, Jun 19, 2017 at 7:26 PM, Zack Vitoh <
jand...@gmail.com> wrote:
> I recently installed FENICS within a new environment (I was having other
> issues with an old environment):
>
> conda create -n fenicsproject -c conda-forge fenics
>
> I then tried to run a tutorial script, which did not work, so I simply tried
> to import dolfin within that environment in python3, receiving:
>
> ImportError: libhdf5.so.10: cannot open shared object file: No such file or
> directory
> ModuleNotFoundError: No module named '_common'
This should be fixed now (see
https://github.com/conda-forge/fenics-feedstock/issues/47). Please
update the fenics package.
> So next I installed h5py
> conda install -c anaconda h5py=2.7.0
If you need h5py, it would have been better to install it from the
conda-forge channel.
> The following NEW packages will be INSTALLED:
>
> h5py: 2.7.0-np113py36_0 anaconda
>
> The following packages will be SUPERSEDED by a higher-priority channel:
>
> hdf5: 1.10.1-0 conda-forge --> 1.8.17-1 anaconda
>
> I tried the (first) poisson equation example
> python3 fenics_poisson.py
> This worked as hoped for
>
> So I then tried (and received):
> $ python3 navier_stokes_cylinder.py
> Traceback (most recent call last):
> File "navier_stokes_cylinder.py", line 12, in <module>
> from mshr import *
> ModuleNotFoundError: No module named 'mshr'
> Aborted (core dumped)
> So I installed mshr
Yes, mshr needs to be installed separately. I think it would be good
to change the instructions on the web page to include mshr:
conda create -n fenicsproject -c conda-forge fenics mshr
> Following this, I tried again:
> $ python3 navier_stokes_cylinder.py
> but it seems that for whatever reason, I don't have the hypre_amg
> preconditioner in the tutorial
> *** Reason: Unknown preconditioner "hypre_amg". Use
> list_krylov_solver_preconditioners() to list available preconditioners().
>
> So as you can guess, I installed hypre:
> conda install -c conda-forge hypre=2.11.2
>
> This did not add hypre_amg to the list of available preconditioners:
No, because the petsc package in conda-forge is not built with hypre yet:
https://github.com/conda-forge/petsc-feedstock/issues/15
Johannes