Tuesday, 19 August 2014

OpenFOAM 2.3.0 with GCC 4.9.1 on SGI UV running Linux

Hardware specs
Model: SGI Altix UV 1000
OS: SUSE Linux Enterprise Server 11

To use GCC 4.9.1
  • Setup environment variable to include /apps/GNU/GCC/4.9.1 in $PATH and $LD_LIBRARY_PATH. Refer to the Readme file in that directory.
Directory Structure
/apps/OpenFOAM/OpenFOAM-2.3.0

Required:
OpenFOAM-2.3.0.tar.gz
ThirdParty-2.3.0.tar.gz

Environment variables:

#Use SGI MPI
export PATH=/opt/sgi/mpt/mpt-2.08/bin:$PATH
export LD_LIBRARY_PATH=/opt/sgi/mpt/mpt-2.08/lib:$LD_LIBRARY_PATH

#setting the flags and installation directory
export WM_CFLAGS="$WM_CFLAGS -DMPI_NO_CPPBIND -DSGIMPI"
export FOAM_INST_DIR=/apps/OpenFOAM
foamDotFile=$FOAM_INST_DIR/OpenFOAM-2.3.0/etc/bashrc

[ -f $foamDotFile ] && . $foamDotFile

Installation

./Allwmake

No comments:

Post a Comment