User Tools

Site Tools


WRF - Weather Research and Forecasting Model

WRF is a next-generation mesoscale numerical weather prediction system designed to serve both operational forecasting and atmospheric research needs. It features multiple dynamical cores, a 3-dimensional variational (3DVAR) data assimilation system, and a software architecture allowing for computational parallelism and system extensibility. WRF is suitable for a broad spectrum of applications across scales ranging from meters to thousands of kilometers.

We (CSE admins) believe WRF is designed to be built in your home directory, not centrally. So we will document how to build WRF in your home directory.

First load the modules to provide the build environment:

module load compilers/gcc-4.4 io/netcdf-4.0 mpi/openmpi-1.3-gcc-4.4 math/szip-2.1

Then set the environment variables to find the JASPER libraries and utilize the NetCDF large file support:

export JASPERLIB=/usr/lib
export JASPERINC=/usr/include/jasper

Then something along the lines of:

mkdir ~/src
cd ~/src
tar xvzf WRF*gz
cd WRFV3
 [ answer questions, #14 builds ]
# create the patch file
cat > configure.wrf.patch <<EOF 
< DM_FC           =       mpif90 -f90=\$(SFC)
< DM_CC           =       mpicc -cc=\$(SCC) -DMPI2_SUPPORT -DMPI2_THREAD_SUPPORT
> DM_FC           =       mpif90 
> DM_CC           =       mpicc -DMPI2_SUPPORT -DMPI2_THREAD_SUPPORT
echo "note the patch needs to happen after EVERY ./configure"
patch configure.wrf < configure.wrf.patch
./compile wrf

If this doesn't work please let us know.

support/hpc/software/wrf.txt · Last modified: 2009/11/30 15:45 by bill