source: CPL/oasis3-mct/branches/OASIS3-MCT_5.0_branch/doc/UG0_Stepbystep_overview.tex @ 6331

Last change on this file since 6331 was 6331, checked in by aclsce, 17 months ago

Moved oasis-mct_5.0 in oasis3-mct/branches directory.

  • Property svn:executable set to *
File size: 11.8 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
8OASIS3-MCT coupler are used by at least 65 modelling groups all around the
9world to couple more than 80 applications on different computing platforms\footnote{A list of
10coupled models realised with OASIS3-MCT can be found at https://oasis.cerfacs.fr/en/oasis-coupled-models/}.
11OASIS3-MCT 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 and 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 OASIS3-MCT 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 exchanges 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 python and C language bindings.
38
39The developments realised in the different versions of OASIS3-MCT are described in Appendix \ref{sec_changes}.
40To communicate with another component, or to perform I/O actions, a
41component model needs to include few specific calls to OASIS3-MCT Application Programming Interface (API).  The {\it namcouple} configuration file is also largely unchanged, although several options are either added, deprecated, not used
42or not supported.
43
44Results 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
45easy-to-use coupling solution for many climate modelling groups in the few years to come.
46
47%See appendix \ref{sec_changes} for a more detailed list of changes in this %version.
48
49\section{Step-by-step use of OASIS3-MCT}
50
51To use OASIS3-MCT for coupling codes, one has to follow these steps:
52\begin{enumerate}
53\item Obtain OASIS3-MCT source code (see chapter \ref{sec_Obtaining}).
54\item Get familiar with OASIS3-MCT, either by following the Short Private Online Course (SPOC, see  https://cerfacs.fr/online-training/) or by going through the tutorial steps. Tutorial sources are available in directory {\tt
55  examples/tutorial\_communication} and all explanations are provided in the document
56{\tt tutorial\_communication.pdf} therein.
57
58\item Identify the coupling or I/O fields and adapt the codes to
59  implement the coupling exchanges with the OASIS3-MCT coupling library based on MPI message passing.
60  The OASIS3-MCT coupling library uses NetCDF and therefore can also be used to perform I/O actions
61  from/to disk files.  For more detail on how to use the
62  OASIS3-MCT API in the codes, see chapter \ref{sec_modelinterfacing}.
63
64\item Define all coupling and I/O parameters and the transformations
65  required to adapt each coupling field from the source model grid to
66  the target model grid. On this basis, prepare OASIS3-MCT configuring file
67  {\it namcouple}.
68  OASIS3-MCT supports different interpolation algorithms as described in
69  chapter \ref{sec_transformations}.  Remapping files can be computed
70  online using the SCRIP options, or offline using either the SCRIP, ESMF or XIOS (see  {\tt
71  examples/regrid\_environment}, section \ref{subsec_regrid}) and read in during the run using the MAPPING
72  transformation.
73
74{\bf We strongly recommend to tests off-line the quality of the chosen transformations and remappings} using the environment available in {\tt
75  examples/regrid\_environment} and explanations provided in the document {\tt regrid\_environment.pdf} therein.
76
77\item Generate required auxiliary data files (see chapter
78  \ref{sec_auxiliary}).
79\item Compile OASIS3-MCT, the component models and start the coupled
80  experiment. For details on how to compile and run a coupled model
81  with OASIS3-MCT, see section \ref{sec_compilationrunning}.
82
83\end{enumerate}
84
85If you need extra help, do not hesitate to contact us at
86oasishelp(at)cerfacs.fr .
87
88\section{OASIS3-MCT sources}
89\label{sec_Obtaining}
90OASIS3-MCT sources are available from CERFACS git server. To obtain more detail on downloading
91the sources, please fill in the registration form at https://oasis.cerfacs.fr/en/downloads/ .
92
93OASIS3-MCT directory structure is the following one:
94
95\begin{verbatim}
96 - oasis3-mct/lib/cbindings        C language bindings source code
97                 /mct              Model Coupling Toolkit Coupling Software
98                 /psmile           OASIS3-MCT coupling library
99                 /scrip            SCRIP interpolation library               
100
101 - oasis3-mct/doc                  OASIS3-MCT User Guide
102
103 - oasis3-mct/util/make_dir        Utilities to compile OASIS3-MCT
104                  /load_balancing  Tool for load balancing analysis
105                 
106 - oasis3-mct/pyoasis                Python wrapper source code
107
108 - oasis3-mct/examples             Environment to compile, run and use
109                                   different toy coupled models.
110\end{verbatim}
111\newpage
112\section{Licenses and Copyrights}
113 
114\subsection{OASIS3-MCT license and copyright statement}
115
116Copyright © 2021 Centre Europ\'een de Recherche et Formation
117Avanc\'ee en Calcul Scientifique (CERFACS). 
118
119This software and ancillary information called OASIS3-MCT is free
120software.  CERFACS has rights to use, reproduce, and distribute
121OASIS3-MCT. The public may copy, distribute, use, prepare derivative works and
122publicly display OASIS3-MCT under the terms of the Lesser GNU General
123Public License (LGPL) as published by the Free Software Foundation,
124provided that this notice and any statement of authorship are
125reproduced on all copies. If OASIS3-MCT is modified to produce derivative
126works, such modified software should be clearly marked, so as not to
127confuse it with the OASIS3-MCT version available from CERFACS.
128
129The developers of the OASIS3-MCT software are researchers attempting to
130build a modular and user-friendly coupler accessible to the climate
131modelling community. Although we use the tool ourselves and have made
132every effort to ensure its accuracy, we can not make any
133guarantees. We provide the software to you for free. In return,
134you --the user-- assume full responsibility for use of the software. The
135OASIS3-MCT software comes without any warranties (implied or expressed) and
136is not guaranteed to work for you or on your computer. Specifically,
137CERFACS and the various individuals involved in development and
138maintenance of the OASIS3-MCT software are not responsible for any damage
139that may result from correct or incorrect use of this software.
140
141\subsection{MCT copyright statement}
142\label{sec_MCT}
143
144                            Modeling Coupling Toolkit (MCT) Software
145
146Copyright © 2021, UChicago Argonne, LLC as Operator of Argonne National Laboratory. All rights reserved.
147
148Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
149\begin{enumerate}
150\item Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
151\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.
152\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.
153
154This software was authored by:
155\begin{itemize}
156\item Argonne National Laboratory Climate Modeling Group, Mathematics and Computer Science Division, Argonne National Laboratory, Argonne IL 60439
157\item Robert Jacob, tel: (630) 252-2983, E-mail: jacob@mcs.anl.gov
158\item Jay Larson, E-mail: larson@mcs.anl.gov
159\item Everest Ong
160\item Ray Loy
161\end{itemize}
162
163\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.
164
165\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.
166
167\end{enumerate}
168
169\subsection{The SCRIP 1.4 license copyright statement}
170\label{sec_SCRIP}
171
172The SCRIP 1.4 copyright statement reads as follows:
173
174``Copyright © 1997, 1998 the Regents of the University of California.
175This software and ancillary information (herein called SOFTWARE)
176called SCRIP is made available under the terms described here. The
177SOFTWARE has been approved for release with associated LA-CC Number
17898-45. Unless otherwise indicated, this SOFTWARE has been authored by
179an employee or employees of the University of California, operator of
180Los Alamos National Laboratory under Contract No. W-7405-ENG-36 with
181the United States Department of Energy. The United States Government
182has rights to use, reproduce, and distribute this SOFTWARE. The public
183may copy, distribute, prepare derivative works and publicly display
184this SOFTWARE without charge, provided that this Notice and any
185statement of authorship are reproduced on all copies. Neither the
186Government nor the University makes any warranty, express or implied,
187or assumes any liability or responsibility for the use of this
188SOFTWARE. If SOFTWARE is modified to produce derivative works, such
189modified SOFTWARE should be clearly marked, so as not to confuse it
190with the version available from Los Alamos National Laboratory.''
Note: See TracBrowser for help on using the repository browser.