WikiPrint - from Polar Technologies

?WRF for GRID (WRF4G) is a framework for the execution and monitoring of the WRF Modelling System in distributed computer resources (see this presentation). It provides a flexible and easy way of designing complex experiments involving many simulations (multiple start/end dates, multiparametric simulations, long climate runs, ...). The monitor allows a precise control of the state of the experiment, where broken simulations are automatically detected and relaunched on the next submission. WRF4G uses ?GridWay to access to heterogeneous resources in a transparent way.

Installation on the User Interface (UI)

General Requirements

WRF4G needs the following software preinstalled on the UI:

Download

Download and unpack the distribution file ?WRF4G.tar.gz to the installation directory, for example your $HOME directory.

[user@ui~]$ cd $HOME
[user@ui~]$ wget http://meteo.macc.unican.es/work/WRF4G.tar.gz
[user@ui~]$ tar xzvf WRF4G.tar.gz

Environment Configuration

Set up the environment variables "WRF4G_LOCATION" and "PATH" for WRF4G.

[user@ui~]$ export WRF4G_LOCATION=$WRF4G_INSTALL_PATH/WRF4G
[user@ui~]$ export PATH=$WRF4G_LOCATION/bin:$PATH
[user@ui~]$ export LD_LIBRARY_PATH=$WRF4G_LOCATION/lib/shared_libs:$LD_LIBRARY_PATH

And set up the enviroment for GISELA:

GISELA Available Resources

?lcg-infosites command can be used to obtain VO information on Grid resources. Before using lcg-infosites you have to execute gisela_environment.sh file for GISELA Infrastucture. Some using examples are showed below:

For more information you could execute lcg-infosites --help or see ?gLite information

Configuration of WRF4G to access to GISELA Resources

Next steps describe a specific configuration of the CEs for GISELA Infrastructure.

Firstly, you must remove default computing resource. Comment the line "mycomputer" (#) in $WRF4G_LOCATION/etc/framework4g.conf file.

?GridWay configuration

If you want to configure Globus and CREAM resources of GISELA, you have to add the following lines to $WRF4G_LOCATION/opt/drm4g_gridway/etc/gwd.conf file:

# Example MAD Configuration for GISELA
# GT2 
IM_MAD = gisela_gt2:gw_im_mad_bdii:-q (GlueCEAccessControlBaseRule=VO\:prod.vo.eu-eela.eu)(GlueCEImplementationName=LCG-CE)  -s bdii.eela.ufrj.br:tm_gt2:em_gt2
EM_MAD = em_gt2:gw_em_mad_gram2::rsl_nsh
TM_MAD = tm_gt2:gw_tm_mad_dummy:-u gsiftp\://ui01.macc.unican.es

# CREAM
IM_MAD = gisela_cream:gw_im_mad_bdii:-q (GlueCEAccessControlBaseRule=VO\:prod.vo.eu-eela.eu)(GlueCEImplementationName=CREAM)  -s bdii.eela.ufrj.br:tm_cream:em_cream
EM_MAD = em_cream:gw_em_mad_cream.py::jdl
TM_MAD = tm_cream:gw_tm_mad_dummy:-g

There are two options for the configuration of IM MAD:

There are two options for the configuration of the TM MAD:

For more information about MAD configuration see ?GridWay Configuration Guide

Running environment configuration

The WRF4G_BASEPATH, WRF4G_DOMAINPATH, WRF4G_INPUT and WRF4G_APPS variables must be updated in $WRF4G_LOCATION/etc/resources.wrf4g (see resources.wrf4g for more details). The new supported URL syntaxes will be:

gsiftp://host[:port]/file

The example below shows an possible resources.wrf4g files:

WRF4G_VERSION="1.0beta"
WRF_VERSION="3.1.1_r832INTEL_OMPI"
WRF4G_BASEPATH="gsiftp://ui01.macc.unican.es/$WRF4G_LOCATION/repository/output" 
WRF4G_DOMAINPATH="gsiftp://ui01.macc.unican.es/$WRF4G_LOCATION/repository/domains"
WRF4G_INPUT="gsiftp://ui01.macc.unican.es/$WRF4G_LOCATION/repository/input"
WRF4G_APPS="gsiftp://ui01.macc.unican.es/$WRF4G_LOCATION/repository/apps"
REQUIREMENTS='ARCH = "x86_64"'
NP=1

Accessing the VOMS servers

To use the GISELA resources, the user should iniatilize the proxy through voms server:

[user@ui~]$ voms-proxy-init --voms prod.vo.eu-eela.eu
Cannot find file or dir: /oceano/gmeteo/users/carlos/.glite/vomses
Enter GRID pass phrase:
Your identity: /DC=es/DC=irisgrid/O=unican/CN=josecarlos.blanco
Creating temporary proxy ........................................ Done
Contacting  voms.eela.ufrj.br:15003 [/C=BR/O=ICPEDU/O=UFF BrGrid CA/O=UFRJ/OU=IF/CN=host/voms.eela.ufrj.br] "prod.vo.eu-eela.eu" Done
Creating proxy ................................... Done
Your proxy is valid until Tue Aug 23 22:15:06 2011

Testing installation

For more specific information about commands see ?WRF4G CLI

Problems

If you find any problem, please ?submit us a ticket!!