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 WRF on ARCHER (XC30)

This page provides compilation instructions for WRF on ARCHER (Cray XC30, Ivy Bridge).

Module Setup

Load the module to access the latest build scripts, currently

module load wrf-build/3.7.1_build1

and copy the WRF, Chem, and WPS source directories, and build scripts to your build directory

cd <your build directory>
cp -pr $WRF_BUILD_DIR/master/* .
cp -p $WRF_BUILD_DIR/pre-build.bash .
cp -p $WRF_BUILD_DIR/build.bash .
cp -p $WRF_BUILD_DIR/compile.pbs .
ln -s $WRF_GEOG geog

master contains the WRFV3 and WPS directories, and has had the relevant WRF patches applied. Archer-specific patches, mainly to the configuration defaults to add Archer-specific configurations for the Cray and Gnu compilers, have also been applied. If you want to modify the code, you should work from this master copy.

Versions 3.5.1 and 3.6.1 are still available.

Build the code

Choose the programming environment, currently Cray and Gnu have the configuration defaults set up.

Set the account to be used for the compile job that is submitted to the serial queue (the compilation takes between 1 and 8 hours depending on the compiler and the load on the post-processing node, and will exceed the CPU time limit on the login nodes).

export pbs_account=<your account here>

Set up the build environment

. ./pre-build.bash

Choose to include chemistry if you want

export WRF_CHEM=0 # without chemistry
export WRF_CHEM=1 # with chemistry

To change the nesting type from the default basic nesting, the build.bash script will need to be edited.

Then build the code with

./build.bash

This will configure WRF and WPS and then submit a serial job to compile the code. The compilation takes from 1 hour for the GNU compiler with no load on the post-processing node, to 8 hours for the Cray compiler and the post-processing node heavily loaded. The executables will be in the usual locations in the WRFV3 and WPS directories. In addition to the configure.wrf files that are generated, logs for the configuration and compilation steps are produced for you to check.

The wrf-build module also sets the $WRF_GEOG variable to the location of the geographical data for the chosen WRF version; this can be linked into your build directory as shown above.

Back to the WRF page

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

EPSRC NERC EPCC