cc_staff
4
edits
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
<languages /> | <languages /> | ||
[[Category:Software]] | [[Category:Software]] | ||
Line 14: | Line 12: | ||
= Installation in a virtual environment = <!--T:2--> | = Installation in a virtual environment = <!--T:2--> | ||
These are instructions for installing FEniCS version 2019.1.0. | These are instructions for installing FEniCS version 2019.1.0, under StdEnv/2020 with OpenMPI and GCC 9.3.0. | ||
<!--T:21--> | <!--T:21--> | ||
Line 29: | Line 27: | ||
|lang="sh" | |lang="sh" | ||
|contents= | |contents= | ||
#!/bin/bash | #!/usr/bin/env bash | ||
# ============================================================================= | |||
# Compile script for FEniCS 2019.1.0 | |||
# ============================================================================= | |||
set -e | set -e | ||
FENICS_INSTALL=$ | FENICS_INSTALL=$HOME/fenics | ||
FENICS_VERSION=2019.1.0 | FENICS_VERSION=2019.1.0 | ||
PYBIND11_VERSION=2.2.3 | PYBIND11_VERSION=2.2.3 | ||
export PYTHONPATH=$PYTHONPATH:$FENICS_INSTALL/lib/python3.10/site-packages | |||
module load | module purge | ||
module load StdEnv/2020 | |||
module load gcc/9.3.0 | |||
module load hdf5-mpi/1.10.6 | |||
module load boost/1.72.0 | |||
module load eigen | |||
module load python/3.10.2 | |||
module load scipy-stack/2023b | |||
module load mpi4py/3.0.3 | |||
module load petsc/3.17.1 | |||
module load slepc/3.17.2 | |||
module load scotch/6.0.9 | |||
module load fftw-mpi/3.3.8 | |||
module load ipp/2020.1.217 | |||
module load swig | |||
module load flexiblas | |||
main () { | main () { | ||
Line 87: | Line 93: | ||
download_py_packages () { | download_py_packages () { | ||
version= | version=release | ||
cd $FENICS_INSTALL | cd $FENICS_INSTALL | ||
git clone --branch=$version https://bitbucket.org/fenics-project/fiat.git | git clone --branch=$version https://bitbucket.org/fenics-project/fiat.git | ||
git clone --branch=$version https://bitbucket.org/fenics-project/dijitso.git | git clone --branch=$version https://bitbucket.org/fenics-project/dijitso.git | ||
git clone https://bitbucket.org/fenics-project/ufc-deprecated.git ufc | |||
git clone --branch=$version https://bitbucket.org/fenics-project/ufl.git | git clone --branch=$version https://bitbucket.org/fenics-project/ufl.git | ||
git clone --branch=$version https://bitbucket.org/fenics-project/ffc.git | git clone --branch=$version https://bitbucket.org/fenics-project/ffc.git | ||
Line 113: | Line 120: | ||
-DCMAKE_INSTALL_PREFIX=$HOME/fenics \ | -DCMAKE_INSTALL_PREFIX=$HOME/fenics \ | ||
-DPYBIND11_CPP_STANDARD=-std=c++11 .. | -DPYBIND11_CPP_STANDARD=-std=c++11 .. | ||
make -j8 install | |||
} | } | ||
Line 134: | Line 141: | ||
cmake .. -DDOLFIN_SKIP_BUILD_TESTS=true \ | cmake .. -DDOLFIN_SKIP_BUILD_TESTS=true \ | ||
-DCMAKE_EXE_LINKER_FLAGS="-lpthread" \ | |||
-DEIGEN3_INCLUDE_DIR=$EBROOTEIGEN/include \ | -DEIGEN3_INCLUDE_DIR=$EBROOTEIGEN/include \ | ||
-DCMAKE_INSTALL_PREFIX=$HOME/fenics \ | -DCMAKE_INSTALL_PREFIX=$HOME/fenics \ | ||
-DCMAKE_SKIP_RPATH=ON \ | -DCMAKE_SKIP_RPATH=ON \ | ||
-DRT_LIBRARY=$ | -DRT_LIBRARY=$EBROOTGENTOO/lib64/librt.so \ | ||
-DHDF5_C_LIBRARY_dl=$ | -DHDF5_C_LIBRARY_dl=$EBROOTGENTOO/lib64/libdl.so \ | ||
-DHDF5_C_LIBRARY_m=$ | -DHDF5_C_LIBRARY_m=$EBROOTGENTOO/lib64/libm.so \ | ||
-DHDF5_C_LIBRARY_pthread=$ | -DHDF5_C_LIBRARY_pthread=$EBROOTGENTOO/lib64/libpthread.so \ | ||
-DHDF5_C_LIBRARY_z=$ | -DHDF5_C_LIBRARY_z=$EBROOTGENTOO/lib64/libz.so \ | ||
- | -DSCOTCH_DIR=$EBROOTSCOTCH -DSCOTCH_LIBRARIES=$EBROOTSCOTCH/lib \ | ||
-DSCOTCH_INCLUDE_DIRS=$EBROOTSCOTCH/include \ | |||
- | -DBLAS_blas_LIBRARY=$EBROOTFLEXIBLAS/lib/libflexiblas.so | ||
- | |||
make -j 8 install | |||
cd $FENICS_INSTALL/dolfin/python && pip3 install . | cd $FENICS_INSTALL/dolfin/python && pip3 install . | ||
} | } | ||
main | main | ||
Line 156: | Line 162: | ||
<translate> | <translate> | ||
{{OutdatedStdEnv2020}} | |||
==FEniCS add-ons== <!--T:9--> | ==FEniCS add-ons== <!--T:9--> | ||
<!--T:10--> | <!--T:10--> | ||
'''This section has not been updated to work with StdEnv/2020'''. | |||
First install FEniCS following instructions above. | First install FEniCS following instructions above. | ||
</translate> | </translate> |