Installation
Dependencies
SOUPy depends on FEniCS version 2019.1. and hIPPYlib version 3.0.0 or above.
FEniCS needs to be built with the following dependencies enabled:
numpy,scipy,matplotlib,mpi4pyPETScandpetsc4py(version 3.10.0 or above)SLEPcandslepc4py(version 3.10.0 or above)PETSc dependencies:
parmetis,scotch,suitesparse,superlu_dist,ml,hypre(optional):
gmsh,mshr,jupyter
Recommended installation using Anaconda
Installation with pip
Create an environment with
FEniCSand appropriate dependencies and activate environment
conda create -n soupy -c conda-forge fenics==2019.1.0 matplotlib scipy jupyter
conda activate soupy
Install
hIPPYlibvia pip
pip install hippylib
Install
SOUPyvia pip
pip install soupy@git+https://github.com/hippylib/soupy
Clone the
SOUPydirectory to access examples
git clone https://github.com/hippylib/soupy.git
Examples in the applications directory can now be run. We refer to the full FEniCS installation instructions from hIPPYlib for more detail.
Installation for developers
Create an environment with
FEniCSwith appropriate dependencies
conda create -n soupy -c conda-forge fenics==2019.1.0 matplotlib scipy jupyter
Clone the
hIPPYlibrepository.
git clone https://github.com/hippylib/hippylib.git
Clone the
SOUPyrepository
git clone https://github.com/hippylib/soupy.git
Set the path to the
hIPPYlibandSOUPyas environment variables, e.g.
conda activate soupy
conda env config vars set HIPPYLIB_PATH=path/to/hippylib
conda env config vars set SOUPY_PATH=path/to/soupy
Examples in the examples directory can now be run.
Build the SOUPy documentation using Sphinx
Documentation for SOUPy can be built using sphinx, along with extensions
myst_nb and sphinx_rtd_theme. These can be installed via pip.
To build simply run make html from doc folder.