cc_staff
229
edits
(these instructions work for Fenics as it was in October 2017, so adding a git checkout to get a commit from that time. Also modifying modules somewhat) |
(modify instructions to install FEniCS version 2.0) |
||
Line 6: | Line 6: | ||
=== Installation instructions === <!--T:2--> | === Installation instructions === <!--T:2--> | ||
These are instructions for installing FEniCS version 2.0. | |||
</translate> | </translate> | ||
{{File | {{File | ||
|name=fenics_install.sh | |name=fenics_install.sh | ||
Line 20: | Line 20: | ||
git clone https://bitbucket.org/fenics-project/ufl.git | git clone https://bitbucket.org/fenics-project/ufl.git | ||
git clone https://bitbucket.org/fenics-project/ffc.git | git clone https://bitbucket.org/fenics-project/ffc.git | ||
wget https://bitbucket.org/fenics-project/dolfin/downloads/dolfin-2017.2.0.tar.gz | |||
tar xvfz dolfin-2017.2.0.tar.gz | |||
mv dolfin-2017.2.0 dolfin | |||
chmod u+w ~/fenics/*/.git/objects/pack/* | chmod u+w ~/fenics/*/.git/objects/pack/* | ||
Line 30: | Line 29: | ||
cd fiat && pip3 install . && cd - | cd fiat && pip3 install . && cd - | ||
cd instant && pip3 install . && cd - | cd instant && pip3 install . && cd - | ||
cd dijitso && pip3 install . && cd - | cd dijitso && pip3 install . && cd - | ||
cd ufl && pip3 install . && cd - | cd ufl && pip3 install . && cd - | ||
cd ffc && pip3 install . && cd - | cd ffc && pip3 install . && cd - | ||
pip3 install ply | pip3 install ply | ||
cd dolfin | cd dolfin | ||
mkdir build && cd build | mkdir build && cd build | ||
cmake .. -DDOLFIN_SKIP_BUILD_TESTS=true -DEIGEN3_INCLUDE_DIR=$EBROOTEIGEN/include -DCMAKE_INSTALL_PREFIX=$HOME/software/dolfin -DCMAKE_SKIP_RPATH=ON -DRT_LIBRARY=$EBROOTNIXPKGS/lib64/librt.so -DHDF5_C_LIBRARY_dl=$EBROOTNIXPKGS/lib64/libdl.so -DHDF5_C_LIBRARY_m=$EBROOTNIXPKGS/lib64/libm.so -DHDF5_C_LIBRARY_pthread=$EBROOTNIXPKGS/lib64/libpthread.so -DHDF5_C_LIBRARY_z=$EBROOTNIXPKGS/lib/libz.so | cmake .. -DDOLFIN_SKIP_BUILD_TESTS=true -DEIGEN3_INCLUDE_DIR=$EBROOTEIGEN/include -DCMAKE_INSTALL_PREFIX=$HOME/software/dolfin -DCMAKE_SKIP_RPATH=ON -DRT_LIBRARY=$EBROOTNIXPKGS/lib64/librt.so -DHDF5_C_LIBRARY_dl=$EBROOTNIXPKGS/lib64/libdl.so -DHDF5_C_LIBRARY_m=$EBROOTNIXPKGS/lib64/libm.so -DHDF5_C_LIBRARY_pthread=$EBROOTNIXPKGS/lib64/libpthread.so -DHDF5_C_LIBRARY_z=$EBROOTNIXPKGS/lib/libz.so | ||
nice make -j 8 install && cd - | nice make -j 8 install && cd - | ||
Line 59: | Line 58: | ||
<translate> | <translate> | ||
==FEniCS add-ons== <!--T:9--> | ==FEniCS add-ons== <!--T:9--> | ||