
Configuring and Compiling PlanetWRF:
- If you haven’t already, set up the netCDF environment variable for your system. E.g. “setenv NETCDF /usr/bin/netcdf” or “setenv NETCDF /opt/netcdf”. As described on this page of the WRF tutorial, the netCDF libraries must have been compiled with the same compiler you’ll be using for PlanetWRF.
- If you previously compiled and ran basic WRF here, cd into the WRFV3 directory and type “./clean -a” to clean things up before configuring and compiling PlanetWRF.
- cd into the WRFV3 directory. Type “./configure mars” to configure as a Mars run. You will see a numbered list of options. Choose the one appropriate to your system (just as you did when testing the NCAR WRF release). This page of the WRF tutorial describes how to select the correct option. You will then be asked for a nests option. Choose the default given.
- Type “./compile em_global_mars” to compile as the global Mars model. Once the model has compiled successfully you should see “wrf.exe” and “ideal.exe” in the ‘main’ directory.
Note for those running PlanetWRF with ifort compilers on a linux cluster (e.g., the Pleiades system at NASA Ames): we cannot provide assistance with compile options for every system; however this particular problem seems to occur with many linux clusters using the ifort compilers, so we are providing a possible fix. Follow these instructions:
- Type ./clean -a
- Type ./configure mars
- Edit the “configure.wrf” file that is produced in 3 ways:
a) change the line beginning “DM_FC” to:
DM_FC = ifort -f90=$(SFC)
b) change the line beginning “DM_CC” to:
DM_CC = icc -cc=$(SCC)
c) change:
LIB = $(LIB_BUNDLED) $(LIB_EXTERNAL) $(LIB_LOCAL)
to:
LIB = $(LIB_BUNDLED) $(LIB_EXTERNAL) $(LIB_LOCAL) -lmpi - Type ./compile em_global_mars
<< Back to “PlanetWRFv3 Users Guide”
