![]() |
|||||
| Increasing the Interoperability of an Earth System
Model: Milestone J: Use ESMF services to couple the UCLA AGCM and POP, and integrate them into the ESMF framework for performance evaluation relative to milestones E, F and G. Update Test Plan/Procedures for integrating the AGCM/POP with the ESMF. Prepare reports on interoperability tests and an initial User’s Guide 1. Introduction Our current Earth System Model (ESM) comprises four models representing the coupled dynamics, physics and chemistry of the global atmosphere and world oceans: 1) atmospheric general circulation model (UCLA AGCM), 2) oceanic general circulation model (LANL Parallel Ocean Model: POP), 3) atmospheric chemistry and transport model (UCLA ACTM), and 4) Ocean Chemical Transport Model (JPL OCTM). A novel Distributed Data Broker (DDB) has been designed for data exchanges. We also use the MIT ocean GCM as an option. The ESM is described in Milestone A. In the present round of the CAN project we focus on the coupled atmosphere-ocean system. Therefore, our work as early adaptors of the ESMF consists of integrating into this framework the ESM gridded components that represent the coupled system: 1) UCLA AGCM, and 2) LANL/POP and MIT OGCM. The ESMF functionality will be demonstrated in Milestone K by analyzing the El Niño prediction capability of the AGCM coupled to POP and MIT OGCM, in combination with NASA/JPL ocean data and optimization products. 2. ESM Driver Program (EDP) ESM Driver Program (EDP) was designed to control and define the ESMF environment and execution sequence of gridded and coupling components. The EDP consists of five routines, all of which are ESM compliant having initialize, run and finalize methods: ESM driver The AGCM and OGCM drivers include the calls to initialize, run, and terminate (finalize) the selected gridded components (UCLA AGCM, POP, MIT OGCM). The Atmosphere to Ocean and Ocean to Atmosphere coupling drivers control the data transfers between gridded components. The transfer of execution between EDP routines is done with an ESMF entry point registration and an ESMF call to branch to the appropriate routine. Entry points are registered for each of the drivers and their initialize, run and finalize methods. The passing of variables from gridded components into the EDP is component-dependent. The UCLA AGCM uses a set of subroutines that are called by the model itself. This simplifies the argument lists and allows the model to transfer the data at the point where it is generated or wanted, without the needs of calling ESMF routines. This also allows for a very clean interface between the model and EDP. The LANL POP uses pointers to insert and extract data directly to/from the corresponding export and import states data structure. The MIT OGCM passes variables through its argument list. Variables are communicated between gridded components as fields (data with grid specification) in an import/export state. Fields are processed in the coupling routines by reference to their symbolic name, thus greatly simplifying and generalizing the coupling drivers. The name registration is done by each of the gridded components in order to specify to the EDP the variables that the component will produce and consume. We next describe the EDP subroutines in more detail. The ESM driver subroutine initializes the ESMF and specifies the coupled system, i.e. the gridded components to be used and the execution sequence. The initialize method creates and registers each of the gridded and coupling components, and the import/export states. The run method has the time integration loop for the application and transfers control, using ESMF calls, to each of the gridded and coupling components in the appropriate sequence. The finalize method terminates the execution of components. The ESM gridded components drivers are component-dependent. For the UCLA AGCM and MIT OGCM the drivers are very similar. Changes in the components themselves are minimized by passing information from the model into these routines so the corresponding ESMF routines can be called to create the grid(s), and register the variables. The data organization is via symbolic field name recognition. The paradigm used for POP is more intrusive into the code, with the variables being accessed via pointer lists and ESMF grid specifications defined internally. Specifically for the UCLA AGCM, the initialize method consists of two stages. In the first stage the model initializes itself (i.e. defines constants, decomposition/layout, geometry, communications). This information is used to create the ESMF grids, fields and layout. In the second stage, the model obtains the initial and boundary conditions and executes the first physics time step. The initialize method for the OGCMs consists of one stage only, in which the model selected obtains the initial and boundary conditions. The run method extracts the variables and missing data mask from the import state using a data mask to flag missing/invalid data. After that, the appropriate gridded component is called to advance the simulation time until the next instance of coupling. At the completion of the coupling interval, missing data is replaced as a function of the existing information, and a missing data mask is created. The variables are now inserted into the export state so they are ready to be transferred when coupling driver is called. The finalize method uses termination routines that
close files, write restarts and print out statistics. 3. The UCLA AGCM Extensive work was performed with the UCLA AGCM to make it ESMF compliant. The model’s own control code and coupling routines were removed, since these functions are now performed by the EDP routines. To conform to ESMF methodology, entry points were defined in the model to allow for discrete calls to the initialize, run, and finalize methods. The coupling interface, which was based on the methodology of concurrent execution, was rewritten due to limitations of the ESMF version available at the time when the work was started (2.1.0) and that only allowed for sequential execution. (More recent ESMF versions allow for concurrent execution.) In addition, routines were created so the EDP can extract grid, geometry and variable information from the model. The UCLA AGCM was tested using the EDP. No functional or performance degradation was found. The code can be still be run stand alone (without ESMF) by setting a flag. 4. The LANL POP The LANL POP model was modified by Phil Jones to be ESMF compliant. A number of modifications needed to be done to make it run with ESMF version 2.0.1 and to remove a number of bugs in the code and it's coupling interface. The model was linked and run using ESMF version 2.01, EDP and UCLA AGCM. The coupled system was run for 30 days with a coupling interval of 6 hours. The ESMF adds a negligible overhead to the coupled system. 5. MIT OGCM The MIT OGCM was modified by Chris Hill to be ESMF compliant. The model was linked and run using ESMF version 2.0.1, EDP and UCLA AGCM. As with the LANL POP model the coupled system was successfully integrated out to 30 days with a 6 hour coupling interval with negligible overhead. 6. Conclusions Milestone J required the use of ESMF services to couple the UCLA AGCM with the MIT OGCM and LANL POP ocean modes. We successfully accomplished this task without any significant loss of code performance. For the most part the ESMF meets our needs admirably. The validity of using the ESMF framework for coupling of inter-disciplinary models is readily apparent to us. The following list enumerates our findings.
Suggestions: - A data flow diagram would be nice to facilitate understanding of the relationship between functions. 7. Deliverables and documentation Two tar files have been created that contain the two coupled models used in this milestone. http://esm-a.atmos.ucla.edu/~esm/UCLA_POP.tar.gz tar file contains the coupled UCLA AGCM and LANL POP model. The UCLA AGCM coupled with MITogcm can be retrieved from http://esm-a.atmos.ucla.edu/~esm/UCLA_MIT.tar.gz. The user guide for the UCLA AGCM that has been integrated with the ESMF can be found in http://www.atmos.ucla.edu/~mechoso/esm/agcmug.html. For the LANL POP and the MITogcm access their web sites directly for their documentation, http://climate.acl.lanl.gov/models/pop/documentation and http://mitgcm.org/docs.html. For additional information of the UCLA AGCM coupled system contact Joseph Spahr at (spahr@atmos.ucla.edu, 310-825-1555), Phil Jones (pwjones@lanl.gov, 505-667-6386) for the LANL POP OGCM and Chris Hill (cnh@mit.edu, 617-253-6430) for the MITogcm. Appendix A Simplified ESM Driver Program (EDP) flow chart.
OGCM_init
Appendix B Table: List of risks and risk mitigation strategies at the completion of Milestone J Name Requirement
|
|||||