page header
 

Compiling WRFDA for 3DVAR

Get the WRFDA zipped tar file from /wrfhelp/SOURCE_CODE

cd /data1/${USER}/DA

cp /wrfhelp/SOURCE_CODE/WRFDA_V3.5.tar.gz .

Unzip and untar the file:

tar -zxvf WRFDA_V3.5.tar.gz

To reduce compilation time you can compile in parallel (this is a separate process from deciding to run WRFDA in serial or parallel mode). You can do this by setting the environment variable J="-j #", where "#" is the number of processors.

setenv J "-j 6"

Configure and compile

cd /data1/${USER}/DA/WRFDA

./clean -a

setenv BUFR 1

Only one radiative transfer model is necessary, but WRFDA can be compiled with both, so set the CRTM and/or RTTOV environment variables as below

setenv CRTM 1
setenv RTTOV /wrfhelp/WRFDA/external/rttov10/pgi

./configure wrfda

Choose 17 for pgf90/pgcc, dmpar

./compile all_wrfvar >&! compile_3dvar.log &

Compiling WRFPLUS

WRFPLUS contains both the non-linear and the tangent-linear/adjoint WRF code. It is needed for 4DVAR and Forecast Sensitivity to Observations (FSO).

Get the WRFPLUS zipped tar file from /wrfhelp/SOURCE_CODE

cd /data1/$USER/DA

cp /wrfhelp/SOURCE_CODE/WRFPLUS_V3.5.tar.gz .

Set "J" to compile in parallel

setenv J "-j 6"

Unzip and untar the file

tar -zxvf WRFPLUS_V3.5.tar.gz

Configure

cd /data1/$USER/DA/WRFPLUS

./configure wrfplus

Choose 10 for pgf90/pgcc, dmpar

IMPORTANT NOTE FOR TUTORIAL ATTENDEES: On the classrooom computers, the PGI compiler has a bug which can cause problems with WRFPLUS compilation. The following steps will ensure successful compilation of WRFPLUS:

1. Manually set the machine to use PGI version 13.6 with the following environment variables:

setenv PGI /usr/local/pgi-13.6

setenv PATH $PGI/bin:/usr/local/mpich-3.0.4-pgi13.6/bin:$PATH

2. Manually edit the "configure.wrf" file, changing the following line:

FCOPTIM       =     -O3 #-fastsse ...

  to

FCOPTIM       =     -O1 #-fastsse ...

  Note that this is the letter "O", not a zero, following the dash

Compile WRFPLUS

./compile em_real >&! compile_wrfplus.log &

Compiling WRFDA for 4DVAR

To compile WRFDA for 4DVAR, you should have already compiled WRFPLUS (see above).

Get the WRFDA zipped tar file from /wrfhelp/SOURCE_CODE

cd /data1/$USER/DA

cp /wrfhelp/SOURCE_CODE/WRFDA_V3.5.tar.gz .

Unzip and untar the file

tar -zxvf WRFDA_V3.5.tar.gz

Configure and Compile

cd /data1/${USER}/DA/WRFDA

./clean -a

Only one radiative transfer model is necessary, but WRFDA can be compiled with both, so set the CRTM and/or RTTOV environment variables as below

setenv BUFR 1
setenv CRTM 1
setenv RTTOV /wrfhelp/WRFDA/external/rttov10/pgi

Set the environment variable WRFPLUS_DIR to point to the WRFPLUS build you just installed

setenv WRFPLUS_DIR /data1/$USER/DA/WRFPLUS

./configure 4dvar

Choose 8 for PGI/gcc, dmpar

./compile all_wrfvar >&! make.log &

 


back to top
 
practical_page_header