Installation
Requirements
Please install the finite element library Firedrake first.
curl -O https://raw.githubusercontent.com/firedrakeproject/firedrake/master/scripts/firedrake-install
python3 firedrake-install
How to install Fireshape
Activate Firedrake’s virtualenv first.
source path/to/firedrake/bin/activate
On Linux, install the patchelf
library, e.g.
sudo apt install patchelf
Then install the Rapid Optimization Library along with roltrilinos
.
pip3 install --no-cache-dir roltrilinos
pip3 install --no-cache-dir ROL
On Mac, installing ROL from PyPi will fail. Instead, clone pyrol, add its submodules, and install it locally using the following instructions:
git clone -b rol-2.0-checkpointing https://github.com/APaganini/pyrol.git
git submodule update --init
python -m pip install pyrol/
Now you are ready to install fireshape.
For users:
pip3 install git+https://github.com/fireshape/fireshape.git
For developers:
git clone git@github.com:fireshape/fireshape.git
pip install -e fireshape/