Compiling OpenFOAM 2.1.X on ARCHER
This page outlines procedures for building OpenFOAM 2.1.X on ARCHER. We have not built this version of OpenFOAM on ARCHER, the default module version (installed version on ARCHER) is OpenFOAM 2.2.2. However, we have supported users building this version of OpenFOAM for ARCHER and the instructions below are based on their experiences.
Firstly, follow the build instructions for the 2.2.2 version on ARCHER which are located here but do not actually run the compilation.
Next change the line export SCOTCH_ARCH_PATH in etc/config/scotch.sh, replacing it with the following:
export SCOTCH_ARCH_PATH=$WM_THIRD_PARTY_DIR/platforms/$WM_ARCH$WM_COMPILER$WM_PRECISION_OPTION$WM_COMPILE_OPTION/$SCOTCH_VERSION
Finally, change the file etc/config/settings.sh, comment out the line export MPI_ARCH_PATH=$MPICH_DIR and replace it with the following lines:
export MPI_ARCH_PATH=/opt/cray/mpt/7.1.1/gni/mpich2-gnu/49 export MPI_HOME=/opt/cray/mpt/7.1.1/gni/mpich2-gnu/49
Then run the make process outlined for the 2.2.2 version of OpenFOAM. This should enable you to build the code successfully. However, if you have any problems please contact the helpdesk to for further help.
It should also be possible to build this verison of OpenFOAM using the Intel compilers as outlined in the documentation for version 2.2.2.