Compile WRF for Idealized Cases

On some computers (e.g. some Intel machines), it is necessary to set the following environment variable before one compiles:

     setenv WRF_EM_CORE 1

Type:

./compile

You will be given the following choices:

Usage:

compile wrf      compile wrf in run dir (NOTE: no real.exe, ndown.exe, or ideal.exe generated)

or choose a test case (see README_test_cases for details) :
compile em_b_wave
compile em_esmf_exp
compile em_grav2d_x
compile em_heldsuarez
compile em_hill2d_x
compile em_les
compile em_quarter_ss

compile em_real
compile em_seabreeze2d_x
compile em_squall2d_x
compile em_squall2d_y

compile exp_real
compile nmm_real

compile -h help message

Pick the idealized case you want to run, e.g., the baroclinic wave case, and compile the code for this case:

compile em_b_wave >& compile.log

If you change cases remember that recompiling for a new case, will overwrite the ideal.exe executable you are now using. If you would like to keep the old ideal.exe, move or rename it.

 

Check the compile.log file for any errors. If your compilation was successful, you should see these executables created in the main/ directory.

main/ideal.exe  
main/wrf.exe 

WRF initialization for idealized data cases
WRF model integration

These executables will be linked from the main/ directory to the directories run/ and test/your_case/ (e.g., for the baroclinic wave case, the executables will be link to the directory test/em_b_wave), which is where you will be running the code from.
 

question

The executables were not created
Check the compile.log file carefully for any errors.

Most common errors are:
- Incorrect netCDF version (e.g., netCDF complied with PGI, but you are compiling the code with Intel compilers).
- Required libraries not installed, or not installed correctly.
- Paths to libraries not found.

If you correct any problems in the configure.wrf file, be sure to
./clean -a
./configure
then make the change to configure.wrf before your attempt to compile the code again.

   

If you need to report the problem to wrfhelp

Repeat what you have done one more time:

  - clean -a
  - configure
  - type 'compile your_case >& compile.log'

send compile.log file together with your computer/compiler information to wrfhelp

 

You are now ready to run the WRF ARW model for your chosen idealized case.