wiki:WRF4GProlog

Version 5 (modified by carlos, 10 years ago) (diff)

--

prolog.conf file

prolog.conf file permits user configure the packets and binaries that WRF model uses on a computing resource. In order to help you, we show two possible examples bellow.

Examples of prolog.conf file configuration:

  • In this first example, we export the path directories of WPS, WRFV3 and netCDF binaries. After that, WRF4G will use there binaries (ungrib.exe ,metgrid.exe, real.exe, wrf.exe and ncdump) in order to simulate the experiments.
    export PATH=~/WPS:$PATH
    export PATH=~/WRFV3/run:$PATH
    export PATH=~/netCDF/bin:$PATH
    
  • This second example presents a bash shell code which basically distinguishes between two resources using $GW_HOSTNAME variable.
    if [ $GW_HOSTNAME = mycomputer ]; then
        use WRFV3.3.1
        use netCDF4.1.3
    fi
    
    if [ $GW_HOSTNAME = mycomputer2 ]; then
        use WRFV3.3.3
        use netCDF4.3.3
    fi
    

How to know the value of all $GW_HOSTNAME variable?

[user@mycomputer~]$ wrf4g_resources | awk {'print $11'}
HOSTNAME
mycomputer
mycomputer2