Compile WRF-ARW
 



1.

The WRF source code is available from :

/home/ec2-user/tar_files/source_code/WRFV4.1.1.tar
and
/home/ec2-user/tar_files/source_code/WPSV4.1.tar

Create a new directory in your home space, and untar the files under this new directory. This will generate the following directories.

WRF
WPS


Recommended options to compile the code are:

WRF: OR
            - use for idealized cases

WPS:



2.

**Note: Even though you will run WPS first, compilation of WPS depends on the successful compilation of the WRF code.

cd WRF

./configure

  1. Pick the machine and configuration of your machine from the list
    See Recommended options above
    Methods of running the code will differ depending on serial or DM compilation.

     
  2. Pick a nesting option
      Compile for nesting?
      (0=no nesting, 1=basic, 2=preset moves, 3=vortex following) [default 0]:

    Most common is "basic" (1)


  3.  


3.

./compile em_real >& log.compile

This might take a while to compile.
Once it is finished, check to see if these executables are present in the main/ directory:
wrf.exe, real.exe, and ndown.exe

ls -l main/*.exe

If not, check log.compile to look for compile errors (search for the string 'Error', for example).  
 
 



4.

**Note: You must make sure that you have a successful compile of the WRF code prior to building WPS, as WPS relies on the I/O from WRF.

cd WPS

./configure

Pick the machine and configuration of your machine from the list
See Recommended options above.

 



5.

./compile >& log.compile

This should not take very long to compile.
Once it is finished, check to see if these executables are present in the WPS/ directory:
geogrid.exe, ungrib.exe, and metgrid.exe

If not, check log.compile to look for compile errors (search for the string 'Error', for example).  
 
 



Continue to other exercises.