After configuring an experiment in experiment.wrf4g, you can choose the running environment that you want (data repositories, number of cores to use, requirements that Computing Resources (CR) must carry out,...). This configuration is done in resources.wrf4g.
If resources.wrf4g file is not present in the directory where the experiment is prepared, the system will use the default one, located in $WRF4G_LOCATION/etc/.
WRF4G_VERSION="1.0beta" WRF_VERSION="3.1.1_r832INTEL_OMPI" WRF4G_BASEPATH="$WRF4G_LOCATION/repository/output" WRF4G_DOMAINPATH="$WRF4G_LOCATION/repository/domains" WRF4G_INPUT="$WRF4G_LOCATION/repository/input" WRF4G_APPS="$WRF4G_LOCATION/repository/apps" NP=8 REQUIREMENTS ='HOSTNAME = "mycomputer"'
The following is a complete list of the available options:
WRF4G_BASEPATH/ +-- domains `-- experiments `-- [experiment_name] `-- [realization_name] +-- output +-- restart | `-- wrfrst_d01_1990-01-01_12:00:00 `-- realoutThis path can be local or remote. Local paths look like /path/to/base/path or file:///path/to/base/path. Additionally, the following protocols are supported (in general, any protocol supported by vcp) GSIFTP and RSYNC.
If you are going to use PBS/Torque or SLURM resources, it is also highly recommendable to use PPN variable in order to indicate the number of processors available per node. For example, NP = 4 and REQUIREMENTS = 'PPN = 4' which means 4 processors on one node
In order to use WRF4G on Grid resources or via ssh WRF4G_BASEPATH, WRF4G_DOMAINPATH, WRF4G_INPUT and WRF4G_APPS must be updated. New supported URL syntaxes will be:
If you are going to use remote paths via rsync, they have to be accessed without password.
The examples below show two possible experiment.wrf4g files to use WRF4G on different environments:
WRF4G_VERSION="1.0beta" WRF_VERSION="3.1.1_r832INTEL_OMPI" WRF4G_BASEPATH="gsiftp://ui01.macc.unican.es/home/user/WRF4G/repository/output" WRF4G_DOMAINPATH="gsiftp://ui01.macc.unican.es/home/user/WRF4G/repository/domains" WRF4G_INPUT="gsiftp://ui01.macc.unican.es/home/user/WRF4G/repository/input" WRF4G_APPS="gsiftp://ui01.macc.unican.es/home/user/WRF4G/repository/apps" NP=1 REQUIREMENTS ='HOSTNAME = "ce01.macc.unican.es"'
WRF4G_VERSION="1.0beta" WRF_VERSION="3.1.1_r832INTEL_OMPI" WRF4G_BASEPATH="rsync://user@mycomputer/home/user/WRF4G/repository/output" WRF4G_DOMAINPATH="rsync://user@mycomputer/home/user/WRF4G/repository/domains" WRF4G_INPUT="rsync://user@mycomputer/home/user/WRF4G/repository/input" WRF4G_APPS="rsync://user@mycomputer/home/user/WRF4G/repository/apps" NP=1 REQUIREMENTS ='HOSTNAME = "meteo1.macc.unican.es"'