FEniCS: Difference between revisions

Jump to navigation Jump to search
modified instructions to compile latest Fenics version (2019.1.0)
No edit summary
(modified instructions to compile latest Fenics version (2019.1.0))
Line 12: Line 12:


= Installation in a virtual environment = <!--T:2-->
= Installation in a virtual environment = <!--T:2-->
These are instructions for installing FEniCS version 2017.2.0.
These are instructions for installing FEniCS version 2019.1.0.


<!--T:21-->
<!--T:21-->
Line 32: Line 32:


FENICS_INSTALL=${HOME}/fenics
FENICS_INSTALL=${HOME}/fenics
FENICS_VERSION=2017.2.0
FENICS_VERSION=2019.1.0
PYBIND11_VERSION=2.2.3
PYBIND11_VERSION=2.2.3
MODULES="hdf5-mpi/1.8.18\
MODULES="hdf5-mpi/1.8.18\
  boost\
  boost\
  eigen\
  eigen\
  python/3.5\
  python/3.6\
  scipy-stack/2017b\
  scipy-stack/2017b\
mpi4py/3.0.0\
  petsc/3.7.5\
  petsc/3.7.5\
scotch/6.0.6\
  fftw-mpi/3.3.6\
  fftw-mpi/3.3.6\
  ipp/9.0.4\
  ipp/9.0.4"
gcc/5.4.0"
 


module load $MODULES
module load $MODULES
Line 86: Line 88:
     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/instant.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 --branch=$version https://bitbucket.org/fenics-project/ufl.git
     git clone --branch=$version https://bitbucket.org/fenics-project/ufl.git
Line 93: Line 94:
     git clone --branch=$version https://bitbucket.org/fenics-project/mshr.git
     git clone --branch=$version https://bitbucket.org/fenics-project/mshr.git
     git clone --branch=v$PYBIND11_VERSION \
     git clone --branch=v$PYBIND11_VERSION \
https://github.com/pybind/pybind11.git
        https://github.com/pybind/pybind11.git
 
     chmod u+w ~/fenics/*/.git/objects/pack/*
     chmod u+w ~/fenics/*/.git/objects/pack/*


Line 108: Line 109:


     cmake -DPYBIND11_TEST=off \
     cmake -DPYBIND11_TEST=off \
  -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
     nice make -j8 install
}
}
Line 120: Line 121:
     pip3 install numpy
     pip3 install numpy
     cd $FENICS_INSTALL/fiat    && pip3 install .
     cd $FENICS_INSTALL/fiat    && pip3 install .
    cd $FENICS_INSTALL/instant && pip3 install .
     cd $FENICS_INSTALL/dijitso && pip3 install .
     cd $FENICS_INSTALL/dijitso && pip3 install .
     cd $FENICS_INSTALL/ufl    && pip3 install .
     cd $FENICS_INSTALL/ufl    && pip3 install .
Line 132: Line 132:


     cmake .. -DDOLFIN_SKIP_BUILD_TESTS=true \
     cmake .. -DDOLFIN_SKIP_BUILD_TESTS=true \
  -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=$EBROOTNIXPKGS/lib64/librt.so \
  -DHDF5_C_LIBRARY_dl=$EBROOTNIXPKGS/lib64/libdl.so \
          -DHDF5_C_LIBRARY_dl=$EBROOTNIXPKGS/lib64/libdl.so \
  -DHDF5_C_LIBRARY_m=$EBROOTNIXPKGS/lib64/libm.so \
          -DHDF5_C_LIBRARY_m=$EBROOTNIXPKGS/lib64/libm.so \
  -DHDF5_C_LIBRARY_pthread=$EBROOTNIXPKGS/lib64/libpthread.so \
          -DHDF5_C_LIBRARY_pthread=$EBROOTNIXPKGS/lib64/libpthread.so \
  -DHDF5_C_LIBRARY_z=$EBROOTNIXPKGS/lib/libz.so \
          -DHDF5_C_LIBRARY_z=$EBROOTNIXPKGS/lib/libz.so \
  -DLIB_ifcore_pic=$EBROOTIFORT/lib/intel64/libifcore.so \
          -DLIB_ifcore_pic=$EBROOTIFORT/lib/intel64/libifcore.so \
  -DLIB_ipgo=$EBROOTIPP/lib/intel64/libipgo.a \
          -DLIB_ipgo=$EBROOTIPP/lib/intel64/libipgo.a \
  -DLIB_decimal=$EBROOTIPP/lib/intel64/libdecimal.a \
          -DLIB_decimal=$EBROOTIPP/lib/intel64/libdecimal.a \
  -DLIB_irc_s=$EBROOTIPP/lib/intel64/libirc_s.a
          -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
     nice make -j 8 install
     cd $FENICS_INSTALL/dolfin/python && pip3 install .
     cd $FENICS_INSTALL/dolfin/python && pip3 install .
}
}


main
main
}}
}}


cc_staff
229

edits

Navigation menu