This version is from 2016. Look for the latest version available at NCI at this page.

Foreword


This document is intended to serve as a handy reference for new users in building and running the WRF and WPS on the RAIJIN cluster at NCI without the need of making site-specific modification to WRF and WPS.
This document is only valid from version 3.8.1 of WRF. Please refer to the older version pages for other instructions.

Source Code


The source code tar files of WRF and WPS (V3.8.1) have been downloaded and placed in the subdirectory /projects/WRF/Downloads on the RAIJIN cluster. The uncompressed source code for V3.8.1 of WRF and WPS, which have been ported to build on RAIJIN cluster, is located in the subdirectory /projects/WRF/WRFV_3.8.1.

Prerequisites


If configuring to build GRIB2 support, run (tcsh):
setenv JASPERINC /usr/include
setenv JASPERLIB /usr/lib64
or in bash
export JASPERINC=/usr/include
export JASPERLIB=/usr/lib64
Clone the WRF repository to your own space under /short:
cd /short/$PROJECT/$USER/
git clone /projects/WRF/WRFV_3.8.1

Building WRF (ARW)


Go to the WRFV3/ subdirectory, run:
cd /short/$PROJECT/$USER/WRFV_3.8.1/WRFV3/
Start with a clean installation before compiling WRF, run:
./clean -a
Edit run_compile file. You'll need to update the modules used if necessary, check and choose which configure options you want and uncomment the WRF-Chem option if desired. Then configure and compile WRF, run:
qsub run_compile
A file configure.wrf should be created after configuring has completed.

After a successful build, one should see the following executable files for WRF (the ARW core):
[abc123@raijin3 WRFV3]$ ls -l main/*.exe
 
-rwx------ 1 abc123 wrf 35559897 Aug 22 17:14 main/ndown.exe
-rwx------ 1 abc123 wrf 35471615 Aug 22 17:14 main/real.exe
-rwx------ 1 abc123 wrf 35081246 Aug 22 17:14 main/tc.exe
-rwx------ 1 abc123 wrf 38763058 Aug 22 17:13 main/wrf.exe

Building WPS


Go to the WPS/ subdirectory, run:
cd /short/$PROJECT/$USER/WRFV_3.8.1/WPS/
Start with a clean installation before compiling WPS, run:
clean -a
Edit run_compile to update the modules if necessary, check and choose the configure options you want to use. Then run run_compile:
qsub run_compile
A file configure.wps should be created after configuring has completed.

After a successful build, one should see the following executable files:
[abc123@raijin3 WPS]$ ls -l *.exe
 
lrwxrwxrwx 1 abc123 wrf 23 Aug 23 10:19 geogrid.exe -> geogrid/src/geogrid.exe
lrwxrwxrwx 1 abc123 wrf 23 Aug 23 10:20 metgrid.exe -> metgrid/src/metgrid.exe
lrwxrwxrwx 1 abc123 wrf 21 Aug 23 10:20 ungrib.exe -> ungrib/src/ungrib.exe
[abc123@raijin3 WPS]$ ls -l */src/*.exe
 
-rwx------ 1 abc123 wrf 3412782 Aug 23 10:19 geogrid/src/geogrid.exe
-rwx------ 1 abc123 wrf 3206974 Aug 23 10:20 metgrid/src/metgrid.exe
-rwx------ 1 abc123 wrf 1209622 Aug 23 10:20 ungrib/src/g1print.exe
-rwx------ 1 abc123 wrf 1407507 Aug 23 10:20 ungrib/src/g2print.exe
-rwx------ 1 abc123 wrf 2169010 Aug 23 10:20 ungrib/src/ungrib.exe
-rwx------ 1 abc123 wrf 1184660 Aug 23 10:20 util/src/avg_tsfc.exe
-rwx------ 1 abc123 wrf 1250303 Aug 23 10:20 util/src/calc_ecmwf_p.exe
-rwx------ 1 abc123 wrf 1217842 Aug 23 10:20 util/src/height_ukmo.exe
-rwx------ 1 abc123 wrf 953821 Aug 23 10:20 util/src/int2nc.exe
-rwx------ 1 abc123 wrf 1118699 Aug 23 10:20 util/src/mod_levs.exe
-rwx------ 1 abc123 wrf 3704627 Aug 23 10:20 util/src/plotfmt.exe
-rwx------ 1 abc123 wrf 3409302 Aug 23 10:20 util/src/plotgrids.exe
-rwx------ 1 abc123 wrf 916613 Aug 23 10:20 util/src/rd_intermediate.exe
Note that there are some warnings in the build output like warning: overriding commands for target `.c.o'. These are harmless and can be ignored.


Tests run


Compilation

  • WRF compilation with dmpar
  • WRF compilation with dm+sm
  • WPS compilation with dmpar_NO_GRIB2 with dm+sm compilation of WRF

Tests simulations


  • First tutorial case (Jan 00) with 1 nest