3DVAR: Compilation

Step 5: Compile WRFDA

If everything has worked up to this point, then congratulations, you're ready to compile! All the relevant settings and environment variables should have been worked out at this point, so to compile you simply need to enter the following:

>./compile all_wrfvar >& compile_3dvar_serial.out

The text "./compile all_wrfvar" is the actual command to compile wrfda. The remaining text (>& compile_3dvar_serial.out) is simply directing your machine to write all the compilation output (including any possible error messages) to a log file named "compile_3dvar_serial.out". You can name this file anything you want, but it is a good idea to be descriptive!

Compilation typically takes from 15–30 minutes, depending on your system's operating system, processor speed, memory, compiler, and other factors. In some rare cases compilation can take up to an hour, but if the process still hasn't completed after an hour, something has likely gone wrong. See the Compilation Help Page for assistance.

Step 6: Examine the compiled system

Once the compile script has finished, we need to make sure there were no errors in the compilation process. The easiest way to do this is to count the number of executables which were built. Successful compilation will produce 43 executables: 42 in the var/build directory and linked in the var/da directory, with the 43rd, obsproc.exe, in the var/obsproc/src directory. If something went wrong with the compilation, one or more executable files will be missing. You can list these executables by issuing the command:

> ls -l var/build/*exe var/obsproc/src/obsproc.exe

This command should list out the following 44 executable files:

-rwxrwxr-x 1 user    26564 Jun 25 15:02 var/build/da_advance_time.exe
-rwxrwxr-x 1 user   110401 Jun 25 15:04 var/build/da_bias_airmass.exe
-rwxrwxr-x 1 user    85327 Jun 25 15:02 var/build/da_bias_scan.exe
-rwxrwxr-x 1 user    43744 Jun 25 15:02 var/build/da_bias_sele.exe
-rwxrwxr-x 1 user    52424 Jun 25 15:02 var/build/da_bias_verif.exe
-rwxrwxr-x 1 user   101741 Jun 25 15:03 var/build/da_rad_diags.exe
-rwxrwxr-x 1 user   122382 Jun 25 15:02 var/build/da_tune_obs_desroziers.exe
-rwxrwxr-x 1 user   254887 Jun 25 15:04 var/build/da_tune_obs_hollingsworth1.exe
-rwxrwxr-x 1 user   156835 Jun 25 15:04 var/build/da_tune_obs_hollingsworth2.exe
-rwxrwxr-x 1 user   148082 Jun 25 15:04 var/build/da_update_bc_ad.exe
-rwxrwxr-x 1 user   156176 Jun 25 15:04 var/build/da_update_bc.exe
-rwxrwxr-x 1 user   242613 Jun 25 15:04 var/build/da_verif_grid.exe
-rwxrwxr-x 1 user    91326 Jun 25 15:04 var/build/da_verif_obs.exe
-rwxrwxr-x 1 user 11199062 Jun 25 15:10 var/build/da_wrfvar.exe
-rwxrwxr-x 1 user   729473 Jun 25 15:04 var/build/gen_be_addmean.exe
-rwxrwxr-x 1 user   729421 Jun 25 15:04 var/build/gen_be_cov2d3d_contrib.exe
-rwxrwxr-x 1 user   720981 Jun 25 15:04 var/build/gen_be_cov2d.exe
-rwxrwxr-x 1 user   733518 Jun 25 15:04 var/build/gen_be_cov3d2d_contrib.exe
-rwxrwxr-x 1 user   729427 Jun 25 15:04 var/build/gen_be_cov3d3d_bin3d_contrib.exe
-rwxrwxr-x 1 user   733518 Jun 25 15:04 var/build/gen_be_cov3d3d_contrib.exe
-rwxrwxr-x 1 user   716885 Jun 25 15:04 var/build/gen_be_cov3d.exe
-rwxrwxr-x 1 user   708693 Jun 25 15:04 var/build/gen_be_diags.exe
-rwxrwxr-x 1 user   733435 Jun 25 15:04 var/build/gen_be_diags_read.exe
-rwxrwxr-x 1 user   725252 Jun 25 15:04 var/build/gen_be_ensmean.exe
-rwxrwxr-x 1 user   745710 Jun 25 15:04 var/build/gen_be_ensrf.exe
-rwxrwxr-x 1 user   802900 Jun 25 15:04 var/build/gen_be_ep1.exe
-rwxrwxr-x 1 user   815300 Jun 25 15:04 var/build/gen_be_ep2.exe
-rwxrwxr-x 1 user   774641 Jun 25 15:04 var/build/gen_be_etkf.exe
-rwxrwxr-x 1 user   725076 Jun 25 15:04 var/build/gen_be_hist.exe
-rwxrwxr-x 1 user   832310 Jun 25 15:04 var/build/gen_be_stage0_gsi.exe
-rwxrwxr-x 1 user   819754 Jun 25 15:04 var/build/gen_be_stage0_wrf.exe
-rwxrwxr-x 1 user   782429 Jun 25 15:04 var/build/gen_be_stage1_1dvar.exe
-rwxrwxr-x 1 user   749655 Jun 25 15:04 var/build/gen_be_stage1.exe
-rwxrwxr-x 1 user   762159 Jun 25 15:04 var/build/gen_be_stage1_gsi.exe
-rwxrwxr-x 1 user   770199 Jun 25 15:04 var/build/gen_be_stage2_1dvar.exe
-rwxrwxr-x 1 user   725080 Jun 25 15:04 var/build/gen_be_stage2a.exe
-rwxrwxr-x 1 user   741463 Jun 25 15:04 var/build/gen_be_stage2.exe
-rwxrwxr-x 1 user   232935 Jun 25 15:02 var/build/gen_be_stage2_gsi.exe
-rwxrwxr-x 1 user   741463 Jun 25 15:04 var/build/gen_be_stage3.exe
-rwxrwxr-x 1 user   716893 Jun 25 15:04 var/build/gen_be_stage4_global.exe
-rwxrwxr-x 1 user   754007 Jun 25 15:04 var/build/gen_be_stage4_regional.exe
-rwxrwxr-x 1 user   716990 Jun 25 15:04 var/build/gen_be_vertloc.exe
-rwxrwxr-x 1 user   868618 Jun 25 15:04 var/build/gen_mbe_stage2.exe

If all the executables are there, then you're ready to move on to the next step! If not, see the Compilation Help Page to try to determine what went wrong.

NEXT: Preparing a test case    
      



Note: This website is currently under construction. If you notice any problems with the website, including but not limited to broken links, formatting errors, or incorrect information, please submit an email to the or wrfhelp@ucar.edu so that we can address the problem. We appreciate your feedback!

 

NOTE: These pages makes use of Java Script. Enable Java on your computer to make use of all the functionality.