FEniCS: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 1: Line 1:
{{OutdatedStdEnv2020}}
<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=${HOME}/fenics
FENICS_INSTALL=$HOME/fenics
FENICS_VERSION=2019.1.0
FENICS_VERSION=2019.1.0
PYBIND11_VERSION=2.2.3
PYBIND11_VERSION=2.2.3
MODULES="hdf5-mpi/1.8.18\
export PYTHONPATH=$PYTHONPATH:$FENICS_INSTALL/lib/python3.10/site-packages
boost\
eigen\
python/3.6\
scipy-stack/2017b\
mpi4py/3.0.0\
petsc/3.7.5\
scotch/6.0.6\
fftw-mpi/3.3.6\
ipp/9.0.4"
 


module load $MODULES
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=$1
     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 ..
     nice make -j8 install
     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=$EBROOTNIXPKGS/lib64/librt.so \
           -DRT_LIBRARY=$EBROOTGENTOO/lib64/librt.so \
           -DHDF5_C_LIBRARY_dl=$EBROOTNIXPKGS/lib64/libdl.so \
           -DHDF5_C_LIBRARY_dl=$EBROOTGENTOO/lib64/libdl.so \
           -DHDF5_C_LIBRARY_m=$EBROOTNIXPKGS/lib64/libm.so \
           -DHDF5_C_LIBRARY_m=$EBROOTGENTOO/lib64/libm.so \
           -DHDF5_C_LIBRARY_pthread=$EBROOTNIXPKGS/lib64/libpthread.so \
           -DHDF5_C_LIBRARY_pthread=$EBROOTGENTOO/lib64/libpthread.so \
           -DHDF5_C_LIBRARY_z=$EBROOTNIXPKGS/lib/libz.so \
           -DHDF5_C_LIBRARY_z=$EBROOTGENTOO/lib64/libz.so \
           -DLIB_ifcore_pic=$EBROOTIFORT/lib/intel64/libifcore.so \
           -DSCOTCH_DIR=$EBROOTSCOTCH -DSCOTCH_LIBRARIES=$EBROOTSCOTCH/lib \
          -DLIB_ipgo=$EBROOTIPP/lib/intel64/libipgo.a \
           -DSCOTCH_INCLUDE_DIRS=$EBROOTSCOTCH/include \
           -DLIB_decimal=$EBROOTIPP/lib/intel64/libdecimal.a \
           -DBLAS_blas_LIBRARY=$EBROOTFLEXIBLAS/lib/libflexiblas.so
           -DLIB_irc_s=$EBROOTIPP/lib/intel64/libirc_s.a -DSCOTCH_DIR=$EBROOTSCOTCH -DSCOTCH_LIBRARIES=$EBROOTSCOTCH/lib -DSCOTCH_INCLUDE_DIRS=$EBROOTSCOTCH/include


     nice make -j 8 install
     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>
cc_staff
4

edits

Navigation menu