22.10.2014 Views

CERFACS CERFACS Scientific Activity Report Jan. 2010 – Dec. 2011

CERFACS CERFACS Scientific Activity Report Jan. 2010 – Dec. 2011

CERFACS CERFACS Scientific Activity Report Jan. 2010 – Dec. 2011

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

THE OASIS COUPLER<br />

2.3 OASIS4<br />

Since the beginning of the IS-ENES project in March 2009, <strong>CERFACS</strong>, CNRS and DKRZ (Deutsches<br />

Klimarechenzentrum GmbH, in Hamburg, Germany) have been collaborating on the development and<br />

evaluation of a new fully parallel version of the coupler, OASIS4. In particular, OASIS4 includes a library<br />

performing a fully parallel calculation of the source neighbour weights and addresses needed for the<br />

regridding of the coupling fields between the source and target grids (hereafter called the “neighbourhood<br />

search library”) originally developed by NEC Laboratories Europe - IT Research Division (NLE-IT). This<br />

work resulted in June <strong>2011</strong> in the release of the latest OASIS4 version, OASIS4 1beta ([CC29], [CC10]).<br />

OASIS4 was used by Météo-France, KNMI (Netherlands), and MPI-M (Germany) in the framework of<br />

the EU GEMS project (lead by ECMWF) for 3D coupling between atmospheric dynamic and atmospheric<br />

chemistry models and is currently used by SMHI (Sweden), the Alfred Wegener Institute for Polar and<br />

Marine Research (AWI in Germany), the BoM in Australia for ocean-atmosphere 2D regional or global<br />

coupling. In the framework of the METAFOR project, OASIS4 was adapted so to allow the use of the<br />

Common Information Model standard to configure the coupling exchanges ([CC28]).<br />

However, this work also lead us to conclude that OASIS4 parallel neighbourhood search library, originally<br />

developed by NEC, presents some fundamental weaknesses in its design. In particular, the support of<br />

unstructured grids was not originally included and it would be very difficult to add it in the current code.<br />

Also, it is now very clear that it was developed with efficiency as the prime criteria, leaving aside readability<br />

and ease of development.<br />

Therefore we decided to retrofit OASIS4 for pre-computed regridding weights, thereby circumventing<br />

its parallel neighbourhood search library, and use what we call the OASIS4 “user-defined” interpolation<br />

([CC23]). To use this functionality, the user has to describe the links associating specific source grid<br />

points with specific target grid points in a separate NetCDF file. For each link, the index of the source<br />

point, the index of the target point and the weight associated to that link have to be provided. The<br />

OASIS4 communication library reads these indices and weights and automatically defines on each side<br />

a non-geographical grid with one point for each link. The multiplication of the source field values by the<br />

appropriate weights is done in parallel on the source side and a parallel redistribution of the results is<br />

done directly between the source and the target processes by the OASIS4 communication library. The userdefined<br />

regridding has been validated with simple toy models. It now has to be validated for real grids and<br />

in real coupled ESMs.<br />

2.4 OASIS3-MCT<br />

The second solution is based on the modification of OASIS3 to use the Model Coupling Toolkit 5 (MCT)<br />

developed by the Argonne National Laboratory in the USA. MCT requires that the regridding weights are<br />

pre-computed offline, but then implements fully parallel regridding and exchanges of the coupling fields<br />

and has proven parallel performance. MCT embodies a generic approach for creating coupled applications.<br />

Its design philosophy, based on flexibility and minimal invasiveness, is close to the OASIS approach. MCT<br />

uses distributed objects to store the coupling data and pre-computed regridding weights as well as a domain<br />

decomposition descriptor (DDD) to describe the parallel decomposition of the component models. Parallel<br />

communication patterns are computed automatically from the source and target DDDs. To use MCT,<br />

one has to load the coupling data into MCT data types and call MCT parallel matrix multiplication (for<br />

regridding) and communication methods. Parallel data transfer is then accomplished by pairs of send/receive<br />

methods with coupling data and communication pattern as inputs. MCT is, most notably, the underlying<br />

coupling software used in National Center for Atmospheric Research Community Earth System Model 1<br />

(NCAR CESM1) [1]. Interfacing MCT in OASIS3 will provide a valid and efficient solution to remove<br />

current OASIS3 bottleneck ; in this case, the coupling fields will be regridded in parallel in the source<br />

5 http ://www.mcs.anl.gov/research/projects/mct/<br />

102 <strong>Jan</strong>. <strong>2010</strong> – <strong>Dec</strong>. <strong>2011</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!