ARCHER logo ARCHER banner

The ARCHER Service is now closed and has been superseded by ARCHER2.

  • ARCHER homepage
  • About ARCHER
    • About ARCHER
    • News & Events
    • Calendar
    • Blog Articles
    • Hardware
    • Software
    • Service Policies
    • Service Reports
    • Partners
    • People
    • Media Gallery
  • Get Access
    • Getting Access
    • TA Form and Notes
    • kAU Calculator
    • Cost of Access
  • User Support
    • User Support
    • Helpdesk
    • Frequently Asked Questions
    • ARCHER App
  • Documentation
    • User Guides & Documentation
    • Essential Skills
    • Quick Start Guide
    • ARCHER User Guide
    • ARCHER Best Practice Guide
    • Scientific Software Packages
    • UK Research Data Facility Guide
    • Knights Landing Guide
    • Data Management Guide
    • SAFE User Guide
    • ARCHER Troubleshooting Guide
    • ARCHER White Papers
    • Screencast Videos
  • Service Status
    • Detailed Service Status
    • Maintenance
  • Training
    • Upcoming Courses
    • Online Training
    • Driving Test
    • Course Registration
    • Course Descriptions
    • Virtual Tutorials and Webinars
    • Locations
    • Training personnel
    • Past Course Materials Repository
    • Feedback
  • Community
    • ARCHER Community
    • ARCHER Benchmarks
    • ARCHER KNL Performance Reports
    • Cray CoE for ARCHER
    • Embedded CSE
    • ARCHER Champions
    • ARCHER Scientific Consortia
    • HPC Scientific Advisory Committee
    • ARCHER for Early Career Researchers
  • Industry
    • Information for Industry
  • Outreach
    • Outreach (on EPCC Website)

You are here:

  • ARCHER
  • User Guides & Documentation
  • Essential Skills
  • Quick Start Guide
  • ARCHER User Guide
  • ARCHER Best Practice Guide
  • Scientific Software Packages
  • UK Research Data Facility Guide
  • Knights Landing Guide
  • Data Management Guide
  • SAFE User Guide
  • ARCHER Troubleshooting Guide
  • ARCHER White Papers
  • Screencast Videos

Contact Us

support@archer.ac.uk

Twitter Feed

Tweets by @ARCHER_HPC

ISO 9001 Certified

ISO 27001 Certified

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.

Copyright © Design and Content 2013-2019 EPCC. All rights reserved.

EPSRC NERC EPCC