source: CONFIG_DEVT/IPSLCM6.5_work_ENSEMBLES/oasis3-mct/doc/UG0_Stepbystep_overview.tex

Last change on this file was 5725, checked in by aclsce, 3 years ago

Added new oasis3-MCT version to be used to handle ensembles simulations with XIOS.

  • Property svn:executable set to *
File size: 11.7 KB
Line 
1\newpage
2\chapter{Introduction}
3\label{sec_step}
4
5In 1991, CERFACS started the development of
6a software interface to couple existing ocean and atmosphere numerical General
7Circulation Models. Today, different versions of the
8OASIS coupler are used by about 45 modelling groups all around the
9world on different computing platforms\footnote{A list of
10coupled models realized with OASIS can be found at https://verc.enes.org/oasis/oasis-dedicated-user-support-1/some-current-users}.
11OASIS sustained development is ensured by a collaboration
12between CERFACS and the Centre National de la Recherche Scientifique
13(CNRS) and its maintainance and user support is regularly reinforced
14with additional resources coming from European an national projects.
15
16The current OASIS3-MCT internally uses MCT, the Model
17Coupling Toolkit\footnote{www.mcs.anl.gov/research/projects/mct/} \citep{mct_larson} \newline \citep{mct_jacob}, developed by the Argonne National Laboratory in the USA. MCT implements fully parallel remapping, as a parallel matrix vector
18multiplication, and parallel distributed exchanges of the coupling
19fields, based on pre-computed remapping weights and addresses.
20Its design philosophy, based on flexibility and minimal invasiveness,
21is close to the OASIS approach.
22MCT has proven parallel performance and is, most notably, the
23underlying coupling software used in National Center for Atmospheric
24Research Community Earth System Model (NCAR CESM).
25
26OASIS3-MCT is a portable set of Fortran 77, Fortran 90 and C
27routines. Low-intrusiveness, portability and flexibility are
28OASIS3-MCT key design concepts. After compilation OASIS3-MCT is a
29coupling library to be linked to the component models, and which main
30function is to interpolate and exchange the coupling fields to form a coupled system.  OASIS3-MCT supports  coupling of 2D
31logically-rectangular fields but 3D fields and 1D fields expressed on
32unstructured grids are also supported using a one dimension
33degeneration of the structures. Thanks to MCT, all transformations,
34including remapping, are performed in parallel on the set of source or
35target component processes and all coupling echanges are now executed
36in parallel directly between the component processes via Message Passing Interface
37(MPI). OASIS3-MCT also supports file I/O using netcdf and has C language bindings.
38
39The developments realised in the different versions of OASIS3-MCT are described in Appendix \ref{sec_changes}.   
40In spite of the significant changes in underlying implementation,
41usage of OASIS3-MCT in the codes has largely remained unchanged with
42respect to previous OASIS3 versions.
43To communicate with another component, or to perform I/O actions, a
44component model needs to include few specific calls of the Application Programmig Interface (API)  OASIS3-MCT coupling library.  The {\it namcouple} configuration file is also largely unchanged, although several options are either added, deprecated, not used
45or not supported.
46
47Results obtained with IS-ENES2 coupling technology benchmarks show that OASIS3-MCT performs as well as, and even better at very high number of cores, than other coupling technologies, at least for up to O(10000) cores. It is therefore very likely that OASIS3-MCT will provide an efficient and
48easy-to-use coupling solution for many climate modelling groups in the few years to come.
49
50%See appendix \ref{sec_changes} for a more detailed list of changes in this %version.
51
52\section{Step-by-step use of OASIS3-MCT}
53
54To use OASIS3-MCT for coupling models (and/or perform I/O
55actions), one has to follow these steps:
56\begin{enumerate}
57\item Obtain OASIS3-MCT source code (see chapter \ref{sec_Obtaining}).
58\item Get familiar with OASIS3-MCT by going through the tutorial steps. The tutorial sources are given in directory {\tt
59  examples/tutorial} and all explanations are provided in the document
60{\tt tutorial.pdf} therein.
61
62\item Identify the coupling or I/O fields and adapt the codes to
63  implement the coupling exchanges with the OASIS3-MCT coupling library based on MPI message passing.
64  The OASIS3-MCT coupling library uses NetCDF and therefore can also be used to perform I/O actions
65  from/to disk files.  For more detail on how to use the
66  OASIS3-MCT API in the codes, see chapter \ref{sec_modelinterfacing}.
67
68\item Define all coupling and I/O parameters and the transformations
69  required to adapt each coupling field from the source model grid to
70  the target model grid; on this basis, prepare OASIS3-MCT configuring file
71  {\it namcouple}.
72  OASIS3-MCT supports different interpolation algorithms as described in
73  chapter \ref{sec_transformations}.  Remapping files can be computed
74  online using the SCRIP options, or offline and read in during the run using the MAPPING
75  transformation.
76
77{\bf We strongly recommend to tests off-line the quality of the chosen transformations and remappings} using the environment available in {\tt
78  examples/test\_interpolation} and explanations provided in the document {\tt test\_interpolation.pdf} therein.
79
80\item Generate required auxiliary data files (see chapter
81  \ref{sec_auxiliary}).
82\item Compile OASIS3-MCT, the component models and start the coupled
83  experiment. Details on how to compile and run a coupled model with OASIS3-MCT can be found in section \ref{sec_compilationrunning}.
84
85\end{enumerate}
86
87If you need extra help, do not hesitate to contact us (see contact
88details on the back of the cover page).
89
90\section{OASIS3-MCT sources}
91\label{sec_Obtaining}
92OASIS3-MCT sources are available from CERFACS SVN server. To obtain more detail on downloading
93the sources, please fill in the registration form at
94https://verc.enes.org/oasis/download/oasis-registration-form .
95
96OASIS3-MCT directory structure is the following one:
97
98\begin{verbatim}
99 - oasis3-mct/lib/psmile         OASIS3-MCT coupling library
100                 /scrip          SCRIP interpolation library
101                 /mct            Model Coupling Toolkit Coupling Software
102                 /cbindings      C language bindings source code
103
104 - oasis3-mct/doc                OASIS3-MCT User Guide
105
106 - oasis3-mct/util/make_dir      Utilities to compile OASIS3-MCT
107                  /lucia         Tool for load balancing analysis
108
109 - oasis3-mct/examples           Environment to compile, run and use
110                                 different toy coupled models.
111\end{verbatim}
112\newpage
113\section{Licenses and Copyrights}
114 
115\subsection{OASIS3-MCT license and copyright statement}
116
117Copyright © 2018 Centre Europ\'een de Recherche et Formation
118Avanc\'ee en Calcul Scientifique (CERFACS). 
119
120This software and ancillary information called OASIS3-MCT is free
121software.  CERFACS has rights to use, reproduce, and distribute
122OASIS3-MCT. The public may copy, distribute, use, prepare derivative works and
123publicly display OASIS3-MCT under the terms of the Lesser GNU General
124Public License (LGPL) as published by the Free Software Foundation,
125provided that this notice and any statement of authorship are
126reproduced on all copies. If OASIS3-MCT is modified to produce derivative
127works, such modified software should be clearly marked, so as not to
128confuse it with the OASIS3-MCT version available from CERFACS.
129
130The developers of the OASIS3-MCT software are researchers attempting to
131build a modular and user-friendly coupler accessible to the climate
132modelling community. Although we use the tool ourselves and have made
133every effort to ensure its accuracy, we can not make any
134guarantees. We provide the software to you for free. In return,
135you --the user-- assume full responsibility for use of the software. The
136OASIS3-MCT software comes without any warranties (implied or expressed) and
137is not guaranteed to work for you or on your computer. Specifically,
138CERFACS and the various individuals involved in development and
139maintenance of the OASIS3-MCT software are not responsible for any damage
140that may result from correct or incorrect use of this software.
141
142\subsection{MCT copyright statement}
143\label{sec_MCT}
144
145                            Modeling Coupling Toolkit (MCT) Software
146
147Copyright © 2011, UChicago Argonne, LLC as Operator of Argonne National Laboratory. All rights reserved.
148
149Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
150\begin{enumerate}
151\item Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
152\item Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
153\item The end-user documentation included with the redistribution, if any, must include the following acknowledgment: "This product includes software developed by the UChicago Argonne, LLC, as Operator of Argonne National Laboratory." Alternately, this acknowledgment may appear in the software itself, if and wherever such third-party acknowledgments normally appear.
154
155This software was authored by:
156\begin{itemize}
157\item Argonne National Laboratory Climate Modeling Group, Mathematics and Computer Science Division, Argonne National Laboratory, Argonne IL 60439
158\item Robert Jacob, tel: (630) 252-2983, E-mail: jacob@mcs.anl.gov
159\item Jay Larson, E-mail: larson@mcs.anl.gov
160\item Everest Ong
161\item Ray Loy
162\end{itemize}
163
164\item WARRANTY DISCLAIMER. THE SOFTWARE IS SUPPLIED "AS IS" WITHOUT WARRANTY OF ANY KIND. THE COPYRIGHT HOLDER, THE UNITED STATES, THE UNITED STATES DEPARTMENT OF ENERGY, AND THEIR EMPLOYEES: (1) DISCLAIM ANY WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE OR NON-IN- FRINGEMENT, (2) DO NOT ASSUME ANY LEGAL LIABILITY OR RESPONSIBILITY FOR THE ACCURACY, COMPLETENESS, OR USEFULNESS OF THE SOFTWARE, (3) DO NOT REPRESENT THAT USE OF THE SOFTWARE WOULD NOT INFRINGE PRIVATELY OWNED RIGHTS, (4) DO NOT WARRANT THAT THE SOFTWARE WILL FUNCTION UNINTERRUPTED, THAT IT IS ERROR-FREE OR THAT ANY ERRORS WILL BE CORRECTED.
165
166\item LIMITATION OF LIABILITY. IN NO EVENT WILL THE COPYRIGHT HOLDER, THE UNITED STATES, THE UNITED STATES DEPARTMENT OF ENERGY, OR THEIR EMPLOYEES: BE LIABLE FOR ANY INDIRECT, INCIDENTAL, CONSEQUENTIAL, SPECIAL OR PUNITIVE DAMAGES OF ANY KIND OR NATURE, INCLUDING BUT NOT LIMITED TO LOSS OF PROFITS OR LOSS OF DATA, FOR ANY REASON WHATSOEVER, WHETHER SUCH LIABILITY IS ASSERTED ON THE BASIS OF CONTRACT, TORT (INCLUDING NEGLIGENCE OR STRICT LIABILITY), OR OTHERWISE, EVEN IF ANY OF SAID PARTIES HAS BEEN WARNED OF THE POSSIBILITY OF SUCH LOSS OR DAMAGES.
167
168\end{enumerate}
169
170\subsection{The SCRIP 1.4 license copyright statement}
171\label{sec_SCRIP}
172
173The SCRIP 1.4 copyright statement reads as follows:
174
175``Copyright © 1997, 1998 the Regents of the University of California.
176This software and ancillary information (herein called SOFTWARE)
177called SCRIP is made available under the terms described here. The
178SOFTWARE has been approved for release with associated LA-CC Number
17998-45. Unless otherwise indicated, this SOFTWARE has been authored by
180an employee or employees of the University of California, operator of
181Los Alamos National Laboratory under Contract No. W-7405-ENG-36 with
182the United States Department of Energy. The United States Government
183has rights to use, reproduce, and distribute this SOFTWARE. The public
184may copy, distribute, prepare derivative works and publicly display
185this SOFTWARE without charge, provided that this Notice and any
186statement of authorship are reproduced on all copies. Neither the
187Government nor the University makes any warranty, express or implied,
188or assumes any liability or responsibility for the use of this
189SOFTWARE. If SOFTWARE is modified to produce derivative works, such
190modified SOFTWARE should be clearly marked, so as not to confuse it
191with the version available from Los Alamos National Laboratory.''
Note: See TracBrowser for help on using the repository browser.