wiki:Software/OpenFOAM/config_2016a

!!! WORK IN PROGRESS !!!
Last Update 02.2017, Authors: Jens Henrik Göbbert, ...

OpenFOAM Settings for Software Stage 2016a on JURECA

Set Environment

The environment must be set up according to where the source code directories are located.

INST_DIR=/homeb/zam/${USER}/my_OpenFOAM # must not end with a '/'
cd $INST_DIR

# load modules
module --force purge
module load Stages/2016a
module load Intel/2016.2.181-GCC-4.9.3-2.25
module load IntelMPI/5.1.3.181
module load flex/.2.5.39 # flex 2.6.0 causes errors
module load Boost/1.60.0-Python-2.7.11
module load MPFR/3.1.3
module load GMP/6.1.0  
module load CGAL/4.7-Python-2.7.11
module load METIS/5.1.0-RTW64-IDX32 

# configure environment
export FOAM_INST_DIR=$INST_DIR
export WM_COMPILER=Icc
export WM_MPLIB=EASYBUILDMPI
export MPICC=mpicc
export MPICXX=mpiicpc
export CC=icc
export CXX=icpc
export CFLAGS="-no-prec-div -O3 -xHost -fp-model precise -diag-disable 654 -diag-disable 1125"
export CXXFLAGS="-O3 -xHost -fp-model precise -diag-disable 654 -diag-disable 1125 -DMPICH_SKIP_MPICXX"

export WM_NCOMPPROCS=8  # parallel build
export WM_LABEL_SIZE=32 # 32bit for labels/indices - relevant for METIS (if 64 needed patch METIS first)

# load environment
VERSION=3.0.1
source OpenFOAM-${VERSION}/etc/bashrc
foam
foamSystemCheck
Last modified 7 years ago Last modified on 02/17/17 21:22:29
Note: See TracWiki for help on using the wiki.