HWRF Online Tutorial V3.9a | Compilation

Setting Environment

To build the components, you must first set some environment variables. The paths provided here are specific to Cheyenne. On your own machine these paths may vary. In you compilation window, set the following paths:Set Environment Variables
setenv LIB_W3_PATH ${SCRATCH}/hwrfrun/sorc/hwrf-utilities/libs
setenv LIB_SP_PATH ${SCRATCH}/hwrfrun/sorc/hwrf-utilities/libs
setenv LIB_SFCIO_PATH ${SCRATCH}/hwrfrun/sorc/hwrf-utilities/libs
setenv LIB_BACIO_PATH ${SCRATCH}/hwrfrun/sorc/hwrf-utilities/libs
setenv LIB_BLAS_PATH ${SCRATCH}/hwrfrun/sorc/hwrf-utilities/libs
setenv LIB_NEMSIO_PATH ${SCRATCH}/hwrfrun/sorc/hwrf-utilities/libs

You do not need these paths to build the hwrf-utilities, but will need them later to build the other components.

Running the compile script

Note: For debugging purposes, it is useful to save the standard out (stdout) and standard error (stderr), (e.g. the output sent to the screen by the ./compile command) into a file. This can be done one of two ways:

  • ./compile >& build.log
  • ./compile |& tee build.log

Both options redirect the output to a file named build.log while the second option also prints the output to the screen. The compilation commands on the following pages will use the second option.