This version is from 2011. Look for the latest version available at NCI at this page.
WRF (version 3.3) Installation
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.
The source code tar files of WRF and WPS (V3.3) have been downloaded and placed in the subdirectory /projects/WRF/Downloads on the RAIJIN cluster. The uncompressed source code for V3.3 of WRF and WPS, which have been ported to build on RAIJIN cluster, is located in the subdirectory /projects/WRF/WRFV_3.3.
On approval, you will get
Project ID: $PROJECT (e.g. w35) User ID: $USER (e.g. abc123)
Read the NCI email about your account as well as their user guide webpage http://nf.nci.org.au/wiki/RaijinUserGuide
After you log in, change your password, run:
Check the loaded modules and you should already have the Intel compilers and OpenMPI loaded, run:
module list -l - Package -----------------------------+- Versions -+- Last mod. ------ Currently Loaded Modulefiles: pbs 2013/05/13 0:17:55 dot 2008/11/25 19:24:19 intel-fc/188.8.131.523 2013/08/02 3:40:39 intel-cc/184.108.40.2063 2013/08/02 3:47:33 openmpi/1.6.3 2013/04/02 4:20:55
Load the required netcdf module if missing, run:
module load netcdf/220.127.116.11
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
To enable large file support in NetCDF (This installation of NetCDF supports large file support), run(tcsh):
setenv WRFIO_NCD_LARGE_FILE_SUPPORT 1
or in bash:
Create your personal subdirectory in /short/, run:
mkdir -p /short/$PROJECT/$USER/WRF/WRFV_3.3
Copy the WRF and WPS files to your /short/ subdirectory, run:
cd /short/$PROJECT/$USER/WRF/WRFV_3.3 cp -rf /projects/WRF/WRFV_3.3/WRFV3 . cp -rf /projects/WRF/WRFV_3.3/WPS .
Building WRF (ARW)
Go to the /WRFV3/ subdirectory, run:
Start with a clean installation before compiling WRF, run:
Configure WRF, run:
You will be given four choices using Intel compiler. These choices range from compiling for a single processor job (serial), OpenMP shared-memory (smpar), to using distributed-memory (dmpar) or distributed Memory with shared memory (dm+sm).
Please select from among the following build methods. 1. Linux x86_64 i486 i586 i686, ifort compiler with icc (serial) 2. Linux x86_64 i486 i586 i686, ifort compiler with icc (smpar) 3. Linux x86_64 i486 i586 i686, ifort compiler with icc (dmpar) 4. Linux x86_64 i486 i586 i686, ifort compiler with icc (dm+sm) Enter selection [1-4] :
Once an option is selected from above, a choice of what type of nesting (no nesting (0), basic (1), pre-set moves (2), or vortex following (3)) will be given.
Compile for nesting? (0=no nesting, 1=basic, 2=preset moves, 3=vortex following) [default 0]: For options dmpar and dm+sm, the choice 0=no nesting is not applicable.
A file configure.wrf should be created after configuring has completed.
To build WRF (the ARW core), use the script run_compile to submit it to the job queue, run:
After a successful build, one should see the following executable files for WRF (the ARW core):
[abc123@vayu3 WRFV3]$ ls -l main/*.exe -rwxr-xr-x 1 abc123 wrf 35559897 Aug 22 17:14 main/ndown.exe -rwxr-xr-x 1 abc123 wrf 34988805 Aug 22 17:14 main/nup.exe -rwxr-xr-x 1 abc123 wrf 35471615 Aug 22 17:14 main/real.exe -rwxr-xr-x 1 abc123 wrf 35081246 Aug 22 17:14 main/tc.exe -rwxr-xr-x 1 abc123 wrf 38763058 Aug 22 17:13 main/wrf.exe
Go to the /WPS/ subdirectory, run:
Load required module, run:
module load ncl/6.1.2
Start with a clean installation before compiling WPS, run:
Configure WPS, run:
You will be given four choices using Intel compiler.
Please select from among the following build methods. 1. PC Linux x86_64, Intel compiler serial, NO GRIB2 2. PC Linux x86_64, Intel compiler serial 3. PC Linux x86_64, Intel compiler DM parallel, NO GRIB2 4. PC Linux x86_64, Intel compiler DM parallel Enter selection [1-4] :
Choose one of options from above.
A file configure.wps should be created after configuring has completed.
To build WPS, use the script run_compile to submit it to the job queue. This will build the em_real version.
After a successful build, one should see the following executable files:
[abc123@vayu3 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@vayu3 WPS]$ ls -l */src/*.exe -rwxr-xr-x 1 abc123 wrf 3412782 Aug 23 10:19 geogrid/src/geogrid.exe -rwxr-xr-x 1 abc123 wrf 3206974 Aug 23 10:20 metgrid/src/metgrid.exe -rwxr-xr-x 1 abc123 wrf 1209622 Aug 23 10:20 ungrib/src/g1print.exe -rwxr-xr-x 1 abc123 wrf 1407507 Aug 23 10:20 ungrib/src/g2print.exe -rwxr-xr-x 1 abc123 wrf 2169010 Aug 23 10:20 ungrib/src/ungrib.exe -rwxr-xr-x 1 abc123 wrf 1184660 Aug 23 10:20 util/src/avg_tsfc.exe -rwxr-xr-x 1 abc123 wrf 1250303 Aug 23 10:20 util/src/calc_ecmwf_p.exe -rwxr-xr-x 1 abc123 wrf 1217842 Aug 23 10:20 util/src/height_ukmo.exe -rwxr-xr-x 1 abc123 wrf 1118699 Aug 23 10:20 util/src/mod_levs.exe -rwxr-xr-x 1 abc123 wrf 3704627 Aug 23 10:20 util/src/plotfmt.exe -rwxr-xr-x 1 abc123 wrf 3409302 Aug 23 10:20 util/src/plotgrids.exe -rwxr-xr-x 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.