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 export WRFIO_NCD_LARGE_FILE_SUPPORT=1
Then something along the lines of:
mkdir ~/src cd ~/src wget http://www.mmm.ucar.edu/wrf/src/WRFV3.1.1.TAR.gz tar xvzf WRF*gz cd WRFV3 ./configure [ answer questions, #14 builds ] # create the patch file cat > configure.wrf.patch <<EOF 94,95c94,95 < 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 EOF 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.