<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE article PUBLIC "-//NLM//DTD Journal Publishing with OASIS Tables v3.0 20080202//EN" "journalpub-oasis3.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:oasis="http://docs.oasis-open.org/ns/oasis-exchange/table" xml:lang="en" dtd-version="3.0" article-type="research-article"><?xmltex \hack{\allowdisplaybreaks}?><?xmltex \bartext{Development and technical paper}?>
  <front>
    <journal-meta><journal-id journal-id-type="publisher">GMD</journal-id><journal-title-group>
    <journal-title>Geoscientific Model Development</journal-title>
    <abbrev-journal-title abbrev-type="publisher">GMD</abbrev-journal-title><abbrev-journal-title abbrev-type="nlm-ta">Geosci. Model Dev.</abbrev-journal-title>
  </journal-title-group><issn pub-type="epub">1991-9603</issn><publisher>
    <publisher-name>Copernicus Publications</publisher-name>
    <publisher-loc>Göttingen, Germany</publisher-loc>
  </publisher></journal-meta>
    <article-meta>
      <article-id pub-id-type="doi">10.5194/gmd-16-1191-2023</article-id><title-group><article-title>Using the two-way nesting technique AGRIF with MARS3D V11.2 to improve
hydrodynamics and estimate environmental indicators</article-title><alt-title>Using the two-way nesting technique AGRIF</alt-title>
      </title-group><?xmltex \runningtitle{Using the two-way nesting technique AGRIF}?><?xmltex \runningauthor{S. Petton et al.}?>
      <contrib-group>
        <contrib contrib-type="author" corresp="yes" rid="aff1">
          <name><surname>Petton</surname><given-names>Sébastien</given-names></name>
          <email>sebastien.petton@ifremer.fr</email>
        <ext-link>https://orcid.org/0000-0001-6308-2590</ext-link></contrib>
        <contrib contrib-type="author" corresp="no" rid="aff2">
          <name><surname>Garnier</surname><given-names>Valérie</given-names></name>
          
        <ext-link>https://orcid.org/0000-0002-1663-2294</ext-link></contrib>
        <contrib contrib-type="author" corresp="no" rid="aff3">
          <name><surname>Caillaud</surname><given-names>Matthieu</given-names></name>
          
        </contrib>
        <contrib contrib-type="author" corresp="no" rid="aff4">
          <name><surname>Debreu</surname><given-names>Laurent</given-names></name>
          
        </contrib>
        <contrib contrib-type="author" corresp="no" rid="aff5">
          <name><surname>Dumas</surname><given-names>Franck</given-names></name>
          
        </contrib>
        <aff id="aff1"><label>1</label><institution>Ifremer, Université Brest, CNRS, IRD, LEMAR, 11 Presqu'île du Vivier, 29840 Argenton, France</institution>
        </aff>
        <aff id="aff2"><label>2</label><institution>Ifremer, Université Brest, CNRS, IRD, LOPS, 1625 Route de Sainte-Anne,
29280 Plouzané, France</institution>
        </aff>
        <aff id="aff3"><label>3</label><institution>Ifremer, DYNECO, 1625 Route de Sainte-Anne, 29280 Plouzané, France</institution>
        </aff>
        <aff id="aff4"><label>4</label><institution>INRIA, Université Grenoble Alpes, CNRS, LJK, 38000 Grenoble, France</institution>
        </aff>
        <aff id="aff5"><label>5</label><institution>SHOM/STM/REC, 13 Rue de Châtellier CS 92803, 29228 Brest CEDEX
2, France</institution>
        </aff>
      </contrib-group>
      <author-notes><corresp id="corr1">Sébastien Petton (sebastien.petton@ifremer.fr)</corresp></author-notes><pub-date><day>20</day><month>February</month><year>2023</year></pub-date>
      
      <volume>16</volume>
      <issue>4</issue>
      <fpage>1191</fpage><lpage>1211</lpage>
      <history>
        <date date-type="received"><day>13</day><month>May</month><year>2022</year></date>
           <date date-type="rev-request"><day>28</day><month>June</month><year>2022</year></date>
           <date date-type="rev-recd"><day>24</day><month>January</month><year>2023</year></date>
           <date date-type="accepted"><day>2</day><month>February</month><year>2023</year></date>
      </history>
      <permissions>
        <copyright-statement>Copyright: © 2023 Sébastien Petton et al.</copyright-statement>
        <copyright-year>2023</copyright-year>
      <license license-type="open-access"><license-p>This work is licensed under the Creative Commons Attribution 4.0 International License. To view a copy of this licence, visit <ext-link ext-link-type="uri" xlink:href="https://creativecommons.org/licenses/by/4.0/">https://creativecommons.org/licenses/by/4.0/</ext-link></license-p></license></permissions><self-uri xlink:href="https://gmd.copernicus.org/articles/16/1191/2023/gmd-16-1191-2023.html">This article is available from https://gmd.copernicus.org/articles/16/1191/2023/gmd-16-1191-2023.html</self-uri><self-uri xlink:href="https://gmd.copernicus.org/articles/16/1191/2023/gmd-16-1191-2023.pdf">The full text article is available as a PDF file from https://gmd.copernicus.org/articles/16/1191/2023/gmd-16-1191-2023.pdf</self-uri>
      <abstract><title>Abstract</title>

      <p id="d1e147">In the ocean, mesoscale or submesoscale structures and coastal processes are associated with fine scales. The simulation of such features thus requires the hydrodynamic equations to be solved at high-resolution (from a few hundred meters down to a few tens of meters). Therefore, local mesh refinement is a primary issue for regional and coastal modeling. The AGRIF
(adaptive grid refinement in Fortran) library is committed to tackling such
a challenge for structured grids. It has been implemented in MARS3D (Model for Application at Regional Scale), a semi-implicit, free-surface numerical model developed by Ifremer (the French Research Institute for Exploitation of the Sea) for coastal environmental research and studies. As its time scheme uses an alternating-direction implicit (ADI) algorithm, the two-way nesting implementation differs from the one in explicit models. The present paper describes the specifics of the AGRIF introduction and how the nesting preserves some essential properties (mass, momentum and tracer conservations) along with the induced constraints (bathymetric coherence between grids and increase in computation cost). The use and the performance of this new tool are detailed over two configurations that illustrate the wide range of scales and resolutions typically targeted by coastal applications. The first one is based on multiple high-resolution
(500 m) grids that pave the coastal ocean over thousands of kilometers,
allowing a continuum between the regional and coastal scales. The second
application is more local and has a finer resolution (50 m). It targets a
recurrent question for semi-enclosed bays, i.e., the renewal time indicator. Throughout these configurations, the paper intends to compare the two-way nesting method with the traditional one-way approach. It highlights how the MARS3D-AGRIF tool proves to be an efficient way to both improve the physical hydrodynamics and unravel ecological challenges.</p>
  </abstract>
    </article-meta>
  </front>
<body>
      

<sec id="Ch1.S1" sec-type="intro">
  <label>1</label><title>Introduction</title>
      <p id="d1e159">In the ocean, many observations have clearly shown that turbulence is
ubiquitous and that flows are turbulent at all scales (Capet, 2015). It is
also admitted that capturing the whole range of oceanic scales is far beyond
the capabilities of any numerical model for a long time to come. Indeed, the
large-eddy simulation (LES) approach dedicated to solving the direct forward-turbulent energy cascade is far from being reachable, except for strict localized places. Therefore, it is necessary to develop relevant and
efficient parameterizations at the subgrid scale and propose refinement capabilities in ocean models to focus the computational grid at key locations. A key region can vary considerably based on geographic or
dynamical considerations. As the circulation is obviously tightly controlled
by the coastline and more generally by the bathymetry, increasing the
resolution of the grid may be essential to properly catch the coastal
morphology (e.g., estuaries, capes, peninsulas and small bays and lagoons).
Alternatively, a key region may be where critical processes take place and
determine the circulation or fate of a coastal discharge, even when far offshore. The Strait<?pagebreak page1192?> of Gibraltar, where internal jumps and, consequently, internal solitary wave trains are generated, is a perfect illustration, as these features propagate for hundreds of kilometers (Naranjo et al., 2014) until they break and reinforce mixing. Thus, the generating area must be addressed with both sufficient resolution and even locally adapted physics (here non-hydrostatic) to reproduce such structures. Then they must be accurately propagated, possibly outside the refined area.</p>
      <p id="d1e162">Multiple strategies can be investigated (and are available with some degree
of efficiency and accuracy) to tackle the spatial refinement in limited
areas. A first strategy relies on unstructured grids together with finite volume or finite element discretizations; numerous models such as Delft3D
(Roelvink and van Banning, 1995), SLIM (Delandmeter et al., 2018),
TELEMAC-3D (Janin et al., 1993) or T-UGOm (Piton et al., 2020) have shown
their capability to cope with complex geometrical features such as river deltas or continental slope for years. A second strategy is based on curvilinear, either orthogonal (Rétif et al., 2014; Diaz et al., 2020; Marsaleix et al., 2006; among many others) or non-orthogonal (Grasso et al., 2018), grids. However, the design of such grids might be a great deal of work and have a lack of flexibility.</p>
      <p id="d1e165">These approaches have also raised classical issues related to continuously adaptive subgrid parameterization with regards to how to manage both temporal
and spatial refinements so that the computational cost required by the finest-scale grid cells does not spill over to the entire grid. Recently, Li (2021) proposed a 2D shallow-water mode discretized on a regional spherical multiple cell which circumvents this constraint. An alternative method applies to structured grids and provides a refinement capability (adaptive or not) to recursively integrate a hierarchy of grids at different resolutions. This kind of approach was proposed in the early 1980s (Berger and Oliger, 1984) and has already been implemented in either academic works (Penven et al., 2006; Debreu et al., 2012) or for large-scale realistic applications (Biastoch et al., 2009; Marchesiello et al., 2011) to improve the resolution and hence the realism of the local dynamics.</p>
      <p id="d1e168">Such an approach, the adaptive grid refinement in Fortran (AGRIF; Debreu et
al., 2008), is based on domain decomposition and needs the partial overlapping of same-level grids. It is expected to facilitate the offshore continuum for coastal applications, despite the overlapping constraint. Therefore, the AGRIF software has been introduced into MARS3D (Lazure and Dumas, 2008), a numerical model dedicated to coastal environmental applications. The main challenge was related to the semi-implicit time scheme. The two-way nesting is now fully operational for mass, momentum and tracer conservation. Implemented along the coasts of the northwestern European shelf and over coastal bays, the mesh refinement should allow the representation of a large spectrum of spatial (small bays and large areas) and temporal (as fast as tides or surges and as slow as mesoscale or frontal instabilities) scales.</p>
      <p id="d1e172">This paper aims to demonstrate the capabilities and benefits of the two-way
nesting method for modeling the interplay of coastal and regional dynamics. Section 2 describes the recent developments in the hydrodynamic model MARS3D with the AGRIF library and addresses the running performance. Afterward, two applications are presented. Section 3 depicts a regional model configuration and focuses on the systematic refinement capability. Section 4 introduces a focused coastal configuration to highlight two-way nesting improvements. Finally, these results and perspectives are discussed in Sect. 5.</p>
</sec>
<sec id="Ch1.S2">
  <label>2</label><title>Innovative developments for two-way nesting</title>
<sec id="Ch1.S2.SS1">
  <label>2.1</label><title>The MARS3D model (v11.2 released in March 2018)</title>
      <p id="d1e190">The hydrodynamic MARS3D (Model for Application at Regional Scale) model
solves the primitive equations under the Boussinesq and hydrostatic
assumptions. It uses finite differences over a staggered Arakawa C grid with
a vertical generalized-sigma coordinate framework. It relies on a
barotropic–baroclinic-mode splitting. The barotropic mode, which obeys the
shallow-water equation systems, is treated with a modified alternating-direction implicit (ADI) algorithm (Leendertse and Gritton, 1971). Unlike split explicit free-surface models, the temporal integration of both barotropic and baroclinic modes is carried out with the same time step due to a wider stability range of the barotropic mode. The barotropic–baroclinic coupling is simplified, but the propagation of the barotropic mode is weaker as the scheme is implicit.</p>

      <?xmltex \floatpos{t}?><fig id="Ch1.F1" specific-use="star"><?xmltex \currentcnt{1}?><?xmltex \def\figurename{Figure}?><label>Figure 1</label><caption><p id="d1e195">Schematic domain decomposition for solving the ADI equation system.</p></caption>
          <?xmltex \igopts{width=341.433071pt}?><graphic xlink:href="https://gmd.copernicus.org/articles/16/1191/2023/gmd-16-1191-2023-f01.png"/>

        </fig>

      <p id="d1e204">The original time scheme described in Lazure and Dumas (2008) for MARS3D v6
has been significantly modified. This is done, first, by adding a prediction step (assessment of depth-averaged velocity <inline-formula><mml:math id="M1" display="inline"><mml:mrow><mml:msup><mml:mover accent="true"><mml:mi>v</mml:mi><mml:mo mathvariant="normal">‾</mml:mo></mml:mover><mml:mrow><mml:mi>n</mml:mi><mml:mo>+</mml:mo><mml:mn mathvariant="normal">1</mml:mn><mml:mo>,</mml:mo><mml:mo>∗</mml:mo></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula>) and, second, by alternating the sweep of the computational grid in a row–column-wise manner and then column–row-wise manner. These modifications have been introduced to limit the spatial split errors inherent in single time step schemes. The row–column-wise form is developed in Eq. (1). It consists of computing (depth-averaged velocity <inline-formula><mml:math id="M2" display="inline"><mml:mrow><mml:msup><mml:mover accent="true"><mml:mi>u</mml:mi><mml:mo mathvariant="normal">‾</mml:mo></mml:mover><mml:mrow><mml:mi>n</mml:mi><mml:mo>+</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula> and sea surface elevation  <inline-formula><mml:math id="M3" display="inline"><mml:mrow><mml:msup><mml:mi mathvariant="italic">η</mml:mi><mml:mrow><mml:mi>n</mml:mi><mml:mo>+</mml:mo><mml:mn mathvariant="normal">1</mml:mn><mml:mo>,</mml:mo><mml:mo>∗</mml:mo></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula>) and then  (<inline-formula><mml:math id="M4" display="inline"><mml:mrow><mml:msup><mml:mover accent="true"><mml:mi>v</mml:mi><mml:mo mathvariant="normal">‾</mml:mo></mml:mover><mml:mrow><mml:mi>n</mml:mi><mml:mo>+</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msup><mml:msup><mml:mi mathvariant="italic">η</mml:mi><mml:mrow><mml:mi>n</mml:mi><mml:mo>+</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula>) in the first half of a time step. The second half of a time step, which symmetrically gives (<inline-formula><mml:math id="M5" display="inline"><mml:mrow><mml:msup><mml:mover accent="true"><mml:mi>v</mml:mi><mml:mo mathvariant="normal">‾</mml:mo></mml:mover><mml:mrow><mml:mi>n</mml:mi><mml:mo>+</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msup><mml:msup><mml:mi mathvariant="italic">η</mml:mi><mml:mrow><mml:mi>n</mml:mi><mml:mo>+</mml:mo><mml:mn mathvariant="normal">1</mml:mn><mml:mo>,</mml:mo><mml:mo>∗</mml:mo></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula>) first and then gives
(<inline-formula><mml:math id="M6" display="inline"><mml:mrow><mml:msup><mml:mover accent="true"><mml:mi>u</mml:mi><mml:mo mathvariant="normal">‾</mml:mo></mml:mover><mml:mrow><mml:mi>n</mml:mi><mml:mo>+</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msup><mml:msup><mml:mi mathvariant="italic">η</mml:mi><mml:mrow><mml:mi>n</mml:mi><mml:mo>+</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula>) is not detailed. The first equation of the
system is a local solver, whereas the second and the third equations solved
together lead to a linear tridiagonal system whose size is twice the number
of grid cells in a row because the unknown vector is made of
(<inline-formula><mml:math id="M7" display="inline"><mml:mrow><mml:msup><mml:mover accent="true"><mml:mi>u</mml:mi><mml:mo mathvariant="normal">‾</mml:mo></mml:mover><mml:mrow><mml:mi>n</mml:mi><mml:mo>+</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msup><mml:msup><mml:mi mathvariant="italic">η</mml:mi><mml:mrow><mml:mi>n</mml:mi><mml:mo>+</mml:mo><mml:mn mathvariant="normal">1</mml:mn><mml:mo>,</mml:mo><mml:mo>∗</mml:mo></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula>). Similarly, the fourth and fifth
equations lead to a linear tridiagonal<?pagebreak page1193?> system whose size is twice the number
of points in a column.
            <disp-formula id="Ch1.E1" content-type="numbered"><label>1</label><mml:math id="M8" display="block"><mml:mtable rowspacing="0.2ex" class="split" displaystyle="true" columnalign="right left"><mml:mtr><mml:mtd><mml:mrow><mml:msup><mml:mover accent="true"><mml:mi>v</mml:mi><mml:mo mathvariant="normal">‾</mml:mo></mml:mover><mml:mrow><mml:mi>n</mml:mi><mml:mo>+</mml:mo><mml:mn mathvariant="normal">1</mml:mn><mml:mo>,</mml:mo><mml:mo>∗</mml:mo></mml:mrow></mml:msup></mml:mrow></mml:mtd><mml:mtd><mml:mrow><mml:mo>=</mml:mo><mml:msup><mml:mover accent="true"><mml:mi>v</mml:mi><mml:mo mathvariant="normal">‾</mml:mo></mml:mover><mml:mi>n</mml:mi></mml:msup><mml:mo>-</mml:mo><mml:mi>g</mml:mi><mml:mi mathvariant="normal">Δ</mml:mi><mml:mi>t</mml:mi><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:mo>∂</mml:mo><mml:msup><mml:mi mathvariant="italic">η</mml:mi><mml:mi>n</mml:mi></mml:msup></mml:mrow><mml:mrow><mml:mo>∂</mml:mo><mml:mi>y</mml:mi></mml:mrow></mml:mfrac></mml:mstyle><mml:mo>+</mml:mo><mml:mi mathvariant="normal">Δ</mml:mi><mml:mi>t</mml:mi><mml:msub><mml:mi>G</mml:mi><mml:mi>v</mml:mi></mml:msub><mml:mo>(</mml:mo><mml:msup><mml:mi>u</mml:mi><mml:mrow><mml:mi>n</mml:mi><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msup><mml:msup><mml:mi>v</mml:mi><mml:mrow><mml:mi>n</mml:mi><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msup><mml:mo>)</mml:mo></mml:mrow></mml:mtd></mml:mtr><mml:mtr><mml:mtd><mml:mrow><mml:msup><mml:mi mathvariant="italic">η</mml:mi><mml:mrow><mml:mi>n</mml:mi><mml:mo>+</mml:mo><mml:mn mathvariant="normal">1</mml:mn><mml:mo>,</mml:mo><mml:mo>∗</mml:mo></mml:mrow></mml:msup></mml:mrow></mml:mtd><mml:mtd><mml:mrow><mml:mo>=</mml:mo><mml:msup><mml:mi mathvariant="italic">η</mml:mi><mml:mi>n</mml:mi></mml:msup><mml:mo>-</mml:mo><mml:mi mathvariant="normal">Δ</mml:mi><mml:mi>t</mml:mi><mml:mfenced close="]" open="["><mml:mrow><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mo>∂</mml:mo><mml:mrow><mml:mo>∂</mml:mo><mml:mi>x</mml:mi></mml:mrow></mml:mfrac></mml:mstyle><mml:mfenced open="(" close=")"><mml:mrow><mml:msup><mml:mi>h</mml:mi><mml:mi>n</mml:mi></mml:msup><mml:msup><mml:mover accent="true"><mml:mi>u</mml:mi><mml:mo mathvariant="normal">‾</mml:mo></mml:mover><mml:mrow><mml:mi>n</mml:mi><mml:mo>+</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:mfenced><mml:mo>+</mml:mo><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mo>∂</mml:mo><mml:mrow><mml:mo>∂</mml:mo><mml:mi>y</mml:mi></mml:mrow></mml:mfrac></mml:mstyle><mml:mfenced open="(" close=")"><mml:mrow><mml:msup><mml:mi>h</mml:mi><mml:mi>n</mml:mi></mml:msup><mml:msup><mml:mover accent="true"><mml:mi>v</mml:mi><mml:mo mathvariant="normal">‾</mml:mo></mml:mover><mml:mrow><mml:mi>n</mml:mi><mml:mo>+</mml:mo><mml:mn mathvariant="normal">1</mml:mn><mml:mo>,</mml:mo><mml:mo>∗</mml:mo></mml:mrow></mml:msup></mml:mrow></mml:mfenced></mml:mrow></mml:mfenced></mml:mrow></mml:mtd></mml:mtr><mml:mtr><mml:mtd><mml:mrow><mml:msup><mml:mover accent="true"><mml:mi>u</mml:mi><mml:mo mathvariant="normal">‾</mml:mo></mml:mover><mml:mrow><mml:mi>n</mml:mi><mml:mo>+</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:mtd><mml:mtd><mml:mrow><mml:mo>=</mml:mo><mml:msup><mml:mover accent="true"><mml:mi>u</mml:mi><mml:mo mathvariant="normal">‾</mml:mo></mml:mover><mml:mi>n</mml:mi></mml:msup><mml:mo>-</mml:mo><mml:mi>g</mml:mi><mml:mi mathvariant="normal">Δ</mml:mi><mml:mi>t</mml:mi><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mo>∂</mml:mo><mml:mrow><mml:mo>∂</mml:mo><mml:mi>x</mml:mi></mml:mrow></mml:mfrac></mml:mstyle><mml:mfenced open="(" close=")"><mml:mrow><mml:mi mathvariant="italic">α</mml:mi><mml:msup><mml:mi mathvariant="italic">η</mml:mi><mml:mi>n</mml:mi></mml:msup><mml:mo>+</mml:mo><mml:mfenced close=")" open="("><mml:mrow><mml:mn mathvariant="normal">1</mml:mn><mml:mo>-</mml:mo><mml:mi mathvariant="italic">α</mml:mi></mml:mrow></mml:mfenced><mml:msup><mml:mi mathvariant="italic">η</mml:mi><mml:mrow><mml:mi>n</mml:mi><mml:mo>+</mml:mo><mml:mn mathvariant="normal">1</mml:mn><mml:mo>,</mml:mo><mml:mo>∗</mml:mo></mml:mrow></mml:msup></mml:mrow></mml:mfenced></mml:mrow></mml:mtd></mml:mtr><mml:mtr><mml:mtd/><mml:mtd><mml:mrow><mml:mo>+</mml:mo><mml:mi mathvariant="normal">Δ</mml:mi><mml:mi>t</mml:mi><mml:msub><mml:mi>G</mml:mi><mml:mi>u</mml:mi></mml:msub><mml:mfenced open="(" close=")"><mml:mrow><mml:msup><mml:mi>u</mml:mi><mml:mi>n</mml:mi></mml:msup><mml:mo>,</mml:mo><mml:msup><mml:mi>v</mml:mi><mml:mi>n</mml:mi></mml:msup></mml:mrow></mml:mfenced></mml:mrow></mml:mtd></mml:mtr><mml:mtr><mml:mtd><mml:mrow><mml:msup><mml:mi mathvariant="italic">η</mml:mi><mml:mrow><mml:mi>n</mml:mi><mml:mo>+</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:mtd><mml:mtd><mml:mrow><mml:mo>=</mml:mo><mml:msup><mml:mi mathvariant="italic">η</mml:mi><mml:mi>n</mml:mi></mml:msup><mml:mo>-</mml:mo><mml:mi mathvariant="normal">Δ</mml:mi><mml:mi>t</mml:mi><mml:mfenced open="[" close="]"><mml:mrow><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mo>∂</mml:mo><mml:mrow><mml:mo>∂</mml:mo><mml:mi>x</mml:mi></mml:mrow></mml:mfrac></mml:mstyle><mml:mfenced close=")" open="("><mml:mrow><mml:msup><mml:mi>h</mml:mi><mml:mi>n</mml:mi></mml:msup><mml:msup><mml:mover accent="true"><mml:mi>u</mml:mi><mml:mo mathvariant="normal">‾</mml:mo></mml:mover><mml:mrow><mml:mi>n</mml:mi><mml:mo>+</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:mfenced><mml:mo>+</mml:mo><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mo>∂</mml:mo><mml:mrow><mml:mo>∂</mml:mo><mml:mi>y</mml:mi></mml:mrow></mml:mfrac></mml:mstyle><mml:mfenced close=")" open="("><mml:mrow><mml:msup><mml:mi>h</mml:mi><mml:mi>n</mml:mi></mml:msup><mml:msup><mml:mover accent="true"><mml:mi>v</mml:mi><mml:mo mathvariant="normal">‾</mml:mo></mml:mover><mml:mrow><mml:mi>n</mml:mi><mml:mo>+</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:mfenced></mml:mrow></mml:mfenced></mml:mrow></mml:mtd></mml:mtr><mml:mtr><mml:mtd><mml:mrow><mml:msup><mml:mover accent="true"><mml:mi>v</mml:mi><mml:mo mathvariant="normal">‾</mml:mo></mml:mover><mml:mrow><mml:mi>n</mml:mi><mml:mo>+</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:mtd><mml:mtd><mml:mrow><mml:mo>=</mml:mo><mml:msup><mml:mover accent="true"><mml:mi>v</mml:mi><mml:mo mathvariant="normal">‾</mml:mo></mml:mover><mml:mi>n</mml:mi></mml:msup><mml:mo>-</mml:mo><mml:mi>g</mml:mi><mml:mi mathvariant="normal">Δ</mml:mi><mml:mi>t</mml:mi><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mo>∂</mml:mo><mml:mrow><mml:mo>∂</mml:mo><mml:mi>x</mml:mi></mml:mrow></mml:mfrac></mml:mstyle><mml:mfenced open="(" close=")"><mml:mrow><mml:mi mathvariant="italic">α</mml:mi><mml:msup><mml:mi mathvariant="italic">η</mml:mi><mml:mi>n</mml:mi></mml:msup><mml:mo>+</mml:mo><mml:mfenced close=")" open="("><mml:mrow><mml:mn mathvariant="normal">1</mml:mn><mml:mo>-</mml:mo><mml:mi mathvariant="italic">α</mml:mi></mml:mrow></mml:mfenced><mml:msup><mml:mi mathvariant="italic">η</mml:mi><mml:mrow><mml:mi>n</mml:mi><mml:mo>+</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:mfenced></mml:mrow></mml:mtd></mml:mtr><mml:mtr><mml:mtd/><mml:mtd><mml:mrow><mml:mo>+</mml:mo><mml:mi mathvariant="normal">Δ</mml:mi><mml:mi>t</mml:mi><mml:msub><mml:mi>G</mml:mi><mml:mi>v</mml:mi></mml:msub><mml:mfenced close=")" open="("><mml:mrow><mml:msup><mml:mi>u</mml:mi><mml:mi>n</mml:mi></mml:msup><mml:mo>,</mml:mo><mml:msup><mml:mi>v</mml:mi><mml:mi>n</mml:mi></mml:msup></mml:mrow></mml:mfenced></mml:mrow></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula>
          In Eq. (1), <inline-formula><mml:math id="M9" display="inline"><mml:mi>h</mml:mi></mml:math></inline-formula> stands for the total water depth, <inline-formula><mml:math id="M10" display="inline"><mml:mrow><mml:mi mathvariant="normal">Δ</mml:mi><mml:mi>t</mml:mi></mml:mrow></mml:math></inline-formula> is
the time step and <inline-formula><mml:math id="M11" display="inline"><mml:mi mathvariant="italic">α</mml:mi></mml:math></inline-formula> is the implicit coefficient of the external
pressure gradient term. The term <inline-formula><mml:math id="M12" display="inline"><mml:mrow><mml:msub><mml:mi>G</mml:mi><mml:mrow><mml:mi>u</mml:mi><mml:mo>/</mml:mo><mml:mi>v</mml:mi></mml:mrow></mml:msub><mml:mo>(</mml:mo><mml:msup><mml:mi>u</mml:mi><mml:mi>n</mml:mi></mml:msup><mml:msup><mml:mi>v</mml:mi><mml:mi>n</mml:mi></mml:msup><mml:mo>)</mml:mo></mml:mrow></mml:math></inline-formula> gathers the vertical
average of all the remaining terms, including the nonlinear and the
horizontal dissipation terms, the Coriolis force and the friction at the
surface and the bottom. All of these remaining terms are explicit and not
discussed here.</p>
      <p id="d1e945">The linear tridiagonal system is a non-local solver, where <inline-formula><mml:math id="M13" display="inline"><mml:mrow><mml:msup><mml:mi mathvariant="italic">η</mml:mi><mml:mrow><mml:mi>n</mml:mi><mml:mo>+</mml:mo><mml:mn mathvariant="normal">1</mml:mn><mml:mo>,</mml:mo><mml:mo>∗</mml:mo></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula> and <inline-formula><mml:math id="M14" display="inline"><mml:mrow><mml:msup><mml:mi>u</mml:mi><mml:mrow><mml:mi>n</mml:mi><mml:mo>+</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula> are solved over a whole row by the ADI algorithm. Then, for a
massive parallel computation based on a decomposition domain made of
horizontal tiles, <inline-formula><mml:math id="M15" display="inline"><mml:mrow><mml:msup><mml:mi mathvariant="italic">η</mml:mi><mml:mi>n</mml:mi></mml:msup></mml:mrow></mml:math></inline-formula> and <inline-formula><mml:math id="M16" display="inline"><mml:mrow><mml:msup><mml:mi>u</mml:mi><mml:mi>n</mml:mi></mml:msup></mml:mrow></mml:math></inline-formula> are distributed on the different
tiles crossed by the considered row (Fig. 1). The linear system can be schematically written as diagonal blocks, where each block represents the linear tridiagonal system over a tile, as follows:
            <disp-formula id="Ch1.E2" content-type="numbered"><label>2</label><mml:math id="M17" display="block"><mml:mrow><mml:mtable class="array" columnalign="left"><mml:mtr><mml:mtd><mml:mrow><mml:mfenced open="(" close=")"><mml:mtable class="array" columnalign="center center center"><mml:mtr><mml:mtd><mml:mrow><mml:mtext>coef  on  tile</mml:mtext><mml:mspace linebreak="nobreak" width="0.125em"/><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:mtd><mml:mtd><mml:mi mathvariant="normal">⋯</mml:mi></mml:mtd><mml:mtd><mml:mn mathvariant="normal">0</mml:mn></mml:mtd></mml:mtr><mml:mtr><mml:mtd><mml:mi mathvariant="normal">⋮</mml:mi></mml:mtd><mml:mtd><mml:mi mathvariant="normal">⋱</mml:mi></mml:mtd><mml:mtd><mml:mi mathvariant="normal">⋮</mml:mi></mml:mtd></mml:mtr><mml:mtr><mml:mtd><mml:mn mathvariant="normal">0</mml:mn></mml:mtd><mml:mtd><mml:mi mathvariant="normal">⋯</mml:mi></mml:mtd><mml:mtd><mml:mrow><mml:mtext>coef  on  tile</mml:mtext><mml:mspace width="0.125em" linebreak="nobreak"/><mml:mi>n</mml:mi></mml:mrow></mml:mtd></mml:mtr></mml:mtable></mml:mfenced></mml:mrow></mml:mtd></mml:mtr><mml:mtr><mml:mtd><mml:mrow><mml:mfenced open="(" close=")"><mml:mtable class="array" columnalign="center"><mml:mtr><mml:mtd><mml:mrow><mml:mi mathvariant="italic">η</mml:mi><mml:mo>,</mml:mo><mml:mspace width="0.125em" linebreak="nobreak"/><mml:mi>u</mml:mi><mml:mspace width="0.125em" linebreak="nobreak"/><mml:mtext>on  tile</mml:mtext><mml:mspace width="0.125em" linebreak="nobreak"/><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:mtd></mml:mtr><mml:mtr><mml:mtd><mml:mi mathvariant="normal">⋮</mml:mi></mml:mtd></mml:mtr><mml:mtr><mml:mtd><mml:mrow><mml:mspace width="0.125em" linebreak="nobreak"/><mml:mi mathvariant="italic">η</mml:mi><mml:mo>,</mml:mo><mml:mi>u</mml:mi><mml:mspace width="0.125em" linebreak="nobreak"/><mml:mtext>on  tile</mml:mtext><mml:mspace linebreak="nobreak" width="0.125em"/><mml:mi>n</mml:mi></mml:mrow></mml:mtd></mml:mtr></mml:mtable></mml:mfenced></mml:mrow></mml:mtd></mml:mtr><mml:mtr><mml:mtd><mml:mrow><mml:mo>=</mml:mo><mml:mfenced close=")" open="("><mml:mtable class="array" columnalign="center"><mml:mtr><mml:mtd><mml:mrow><mml:mi>r</mml:mi><mml:mi>h</mml:mi><mml:mi>s</mml:mi><mml:mspace linebreak="nobreak" width="0.125em"/><mml:mtext>on  tile</mml:mtext><mml:mspace linebreak="nobreak" width="0.125em"/><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:mtd></mml:mtr><mml:mtr><mml:mtd><mml:mi mathvariant="normal">⋮</mml:mi></mml:mtd></mml:mtr><mml:mtr><mml:mtd><mml:mrow><mml:mi>r</mml:mi><mml:mi>h</mml:mi><mml:mi>s</mml:mi><mml:mspace linebreak="nobreak" width="0.125em"/><mml:mtext>on  tile</mml:mtext><mml:mspace width="0.125em" linebreak="nobreak"/><mml:mi>n</mml:mi></mml:mrow></mml:mtd></mml:mtr></mml:mtable></mml:mfenced><mml:mo>.</mml:mo></mml:mrow></mml:mtd></mml:mtr></mml:mtable></mml:mrow></mml:math></disp-formula>
          It shows that <inline-formula><mml:math id="M18" display="inline"><mml:mi mathvariant="italic">η</mml:mi></mml:math></inline-formula> and <inline-formula><mml:math id="M19" display="inline"><mml:mi>u</mml:mi></mml:math></inline-formula> need to be gathered into a single row tile and
that, once the linear tridiagonal system is solved, the solution has to be
broadcasted back to the original geographic tiles. In order to reduce the
communications, the first three equations of the system (1) have been
rearranged into the system (3) thanks to the splitting of <inline-formula><mml:math id="M20" display="inline"><mml:mrow><mml:msup><mml:mi>u</mml:mi><mml:mrow><mml:mi>n</mml:mi><mml:mo>+</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula> into an
explicit part and an implicit one. This leads to a tridiagonal system in
which the unknown vector is made solely of <inline-formula><mml:math id="M21" display="inline"><mml:mrow><mml:msubsup><mml:mi mathvariant="italic">η</mml:mi><mml:mi>i</mml:mi><mml:mrow><mml:mi>n</mml:mi><mml:mo>+</mml:mo><mml:mn mathvariant="normal">1</mml:mn><mml:mo>,</mml:mo><mml:mo>∗</mml:mo></mml:mrow></mml:msubsup></mml:mrow></mml:math></inline-formula>.
            <disp-formula id="Ch1.E3" content-type="numbered"><label>3</label><mml:math id="M22" display="block"><mml:mtable rowspacing="0.2ex" class="split" displaystyle="true" columnalign="right left"><mml:mtr><mml:mtd><mml:mrow><mml:msup><mml:mover accent="true"><mml:mi>v</mml:mi><mml:mo mathvariant="normal">‾</mml:mo></mml:mover><mml:mrow><mml:mi>n</mml:mi><mml:mo>+</mml:mo><mml:mn mathvariant="normal">1</mml:mn><mml:mo>,</mml:mo><mml:mo>∗</mml:mo></mml:mrow></mml:msup></mml:mrow></mml:mtd><mml:mtd><mml:mrow><mml:mo>=</mml:mo><mml:msup><mml:mover accent="true"><mml:mi>v</mml:mi><mml:mo mathvariant="normal">‾</mml:mo></mml:mover><mml:mi>n</mml:mi></mml:msup><mml:mo>-</mml:mo><mml:mi>g</mml:mi><mml:mi mathvariant="normal">Δ</mml:mi><mml:mi>t</mml:mi><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:mo>∂</mml:mo><mml:msup><mml:mi mathvariant="italic">η</mml:mi><mml:mi>n</mml:mi></mml:msup></mml:mrow><mml:mrow><mml:mo>∂</mml:mo><mml:mi>y</mml:mi></mml:mrow></mml:mfrac></mml:mstyle><mml:mo>+</mml:mo><mml:mi mathvariant="normal">Δ</mml:mi><mml:mi>t</mml:mi><mml:msub><mml:mi>G</mml:mi><mml:mi>v</mml:mi></mml:msub><mml:mo>(</mml:mo><mml:msup><mml:mi>u</mml:mi><mml:mrow><mml:mi>n</mml:mi><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msup><mml:msup><mml:mi>v</mml:mi><mml:mrow><mml:mi>n</mml:mi><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msup><mml:mo>)</mml:mo></mml:mrow></mml:mtd></mml:mtr><mml:mtr><mml:mtd><mml:mrow><mml:msup><mml:mover accent="true"><mml:mi>u</mml:mi><mml:mo mathvariant="normal">‾</mml:mo></mml:mover><mml:mrow><mml:mi>n</mml:mi><mml:mo>+</mml:mo><mml:mn mathvariant="normal">1</mml:mn><mml:mo>,</mml:mo><mml:mo>∗</mml:mo></mml:mrow></mml:msup></mml:mrow></mml:mtd><mml:mtd><mml:mrow><mml:mo>=</mml:mo><mml:msup><mml:mover accent="true"><mml:mi>u</mml:mi><mml:mo mathvariant="normal">‾</mml:mo></mml:mover><mml:mi>n</mml:mi></mml:msup><mml:mo>-</mml:mo><mml:mi>g</mml:mi><mml:mi mathvariant="normal">Δ</mml:mi><mml:mi>t</mml:mi><mml:mi mathvariant="italic">α</mml:mi><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:mo>∂</mml:mo><mml:msup><mml:mi mathvariant="italic">η</mml:mi><mml:mi>n</mml:mi></mml:msup></mml:mrow><mml:mrow><mml:mo>∂</mml:mo><mml:mi>x</mml:mi></mml:mrow></mml:mfrac></mml:mstyle><mml:mo>+</mml:mo><mml:mi mathvariant="normal">Δ</mml:mi><mml:mi>t</mml:mi><mml:msub><mml:mi>G</mml:mi><mml:mi>u</mml:mi></mml:msub><mml:mo>(</mml:mo><mml:msup><mml:mi>u</mml:mi><mml:mi>n</mml:mi></mml:msup><mml:msup><mml:mi>v</mml:mi><mml:mi>n</mml:mi></mml:msup><mml:mo>)</mml:mo></mml:mrow></mml:mtd></mml:mtr><mml:mtr><mml:mtd/><mml:mtd><mml:mrow><mml:mo>-</mml:mo><mml:mi>g</mml:mi><mml:mi mathvariant="normal">Δ</mml:mi><mml:msup><mml:mi>t</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msup><mml:mfenced open="(" close=")"><mml:mrow><mml:mn mathvariant="normal">1</mml:mn><mml:mo>-</mml:mo><mml:mi mathvariant="italic">α</mml:mi></mml:mrow></mml:mfenced><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mo>∂</mml:mo><mml:mrow><mml:mo>∂</mml:mo><mml:mi>x</mml:mi></mml:mrow></mml:mfrac></mml:mstyle><mml:mfenced open="[" close="]"><mml:mrow><mml:msup><mml:mi>h</mml:mi><mml:mi>n</mml:mi></mml:msup><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:mo>∂</mml:mo><mml:msup><mml:mi mathvariant="italic">η</mml:mi><mml:mrow><mml:mi>n</mml:mi><mml:mo>+</mml:mo><mml:mn mathvariant="normal">1</mml:mn><mml:mo>,</mml:mo><mml:mo>∗</mml:mo></mml:mrow></mml:msup></mml:mrow><mml:mrow><mml:mo>∂</mml:mo><mml:mi>x</mml:mi></mml:mrow></mml:mfrac></mml:mstyle></mml:mrow></mml:mfenced><mml:mo>+</mml:mo><mml:msup><mml:mi mathvariant="italic">η</mml:mi><mml:mrow><mml:mi>n</mml:mi><mml:mo>+</mml:mo><mml:mn mathvariant="normal">1</mml:mn><mml:mo>,</mml:mo><mml:mo>∗</mml:mo></mml:mrow></mml:msup></mml:mrow></mml:mtd></mml:mtr><mml:mtr><mml:mtd/><mml:mtd><mml:mrow><mml:mo>=</mml:mo><mml:msup><mml:mi mathvariant="italic">η</mml:mi><mml:mi>n</mml:mi></mml:msup><mml:mo>-</mml:mo><mml:mi mathvariant="normal">Δ</mml:mi><mml:mi>t</mml:mi><mml:mfenced open="[" close="]"><mml:mrow><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mo>∂</mml:mo><mml:mrow><mml:mo>∂</mml:mo><mml:mi>x</mml:mi></mml:mrow></mml:mfrac></mml:mstyle><mml:mfenced open="(" close=")"><mml:mrow><mml:msup><mml:mi>h</mml:mi><mml:mi>n</mml:mi></mml:msup><mml:msup><mml:mover accent="true"><mml:mi>u</mml:mi><mml:mo mathvariant="normal">‾</mml:mo></mml:mover><mml:mrow><mml:mi>n</mml:mi><mml:mo>+</mml:mo><mml:mn mathvariant="normal">1</mml:mn><mml:mo>,</mml:mo><mml:mo>∗</mml:mo></mml:mrow></mml:msup></mml:mrow></mml:mfenced><mml:mo>+</mml:mo><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mo>∂</mml:mo><mml:mrow><mml:mo>∂</mml:mo><mml:mi>y</mml:mi></mml:mrow></mml:mfrac></mml:mstyle><mml:mfenced close=")" open="("><mml:mrow><mml:msup><mml:mi>h</mml:mi><mml:mi>n</mml:mi></mml:msup><mml:msup><mml:mover accent="true"><mml:mi>v</mml:mi><mml:mo mathvariant="normal">‾</mml:mo></mml:mover><mml:mrow><mml:mi>n</mml:mi><mml:mo>+</mml:mo><mml:mn mathvariant="normal">1</mml:mn><mml:mo>,</mml:mo><mml:mo>∗</mml:mo></mml:mrow></mml:msup></mml:mrow></mml:mfenced></mml:mrow></mml:mfenced></mml:mrow></mml:mtd></mml:mtr><mml:mtr><mml:mtd><mml:mrow><mml:msup><mml:mover accent="true"><mml:mi>u</mml:mi><mml:mo mathvariant="normal">‾</mml:mo></mml:mover><mml:mrow><mml:mi>n</mml:mi><mml:mo>+</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:mtd><mml:mtd><mml:mrow><mml:mo>=</mml:mo><mml:msup><mml:mover accent="true"><mml:mi>u</mml:mi><mml:mo mathvariant="normal">‾</mml:mo></mml:mover><mml:mrow><mml:mi>n</mml:mi><mml:mo>+</mml:mo><mml:mn mathvariant="normal">1</mml:mn><mml:mo>,</mml:mo><mml:mo>∗</mml:mo></mml:mrow></mml:msup><mml:mo>-</mml:mo><mml:mi>g</mml:mi><mml:mi mathvariant="normal">Δ</mml:mi><mml:mi>t</mml:mi><mml:mfenced open="(" close=")"><mml:mrow><mml:mn mathvariant="normal">1</mml:mn><mml:mo>-</mml:mo><mml:mi mathvariant="italic">α</mml:mi></mml:mrow></mml:mfenced><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:mo>∂</mml:mo><mml:msup><mml:mi mathvariant="italic">η</mml:mi><mml:mrow><mml:mi>n</mml:mi><mml:mo>+</mml:mo><mml:mn mathvariant="normal">1</mml:mn><mml:mo>,</mml:mo><mml:mo>∗</mml:mo></mml:mrow></mml:msup></mml:mrow><mml:mrow><mml:mo>∂</mml:mo><mml:mi>x</mml:mi></mml:mrow></mml:mfrac></mml:mstyle></mml:mrow></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula>
          As a result, the length of the ADI system is now precisely the number of
grid cells in the <inline-formula><mml:math id="M23" display="inline"><mml:mi>x</mml:mi></mml:math></inline-formula> direction for a given row, and the data involved in the
message-passing interface between<?pagebreak page1194?> tiles are reduced by a factor of 2. The
same methodology is applied to the fourth and fifth of system (1) in the
<inline-formula><mml:math id="M24" display="inline"><mml:mi>y</mml:mi></mml:math></inline-formula> direction.</p>

      <?xmltex \floatpos{t}?><fig id="Ch1.F2" specific-use="star"><?xmltex \currentcnt{2}?><?xmltex \def\figurename{Figure}?><label>Figure 2</label><caption><p id="d1e1633">Diagram of the coupling between the barotropic and barotropic mode.</p></caption>
          <?xmltex \igopts{width=341.433071pt}?><graphic xlink:href="https://gmd.copernicus.org/articles/16/1191/2023/gmd-16-1191-2023-f02.png"/>

        </fig>

      <p id="d1e1642">In addition to the modification of the barotropic solver itself, some
additional modifications have been implemented in the barotropic–baroclinic
coupling because the original iterative coupling described by Lazure and
Dumas (2008) was not compatible anymore with the reformulation (3). The
coupling that can be sketched (according to Fig. 2) is now straightforward. (a) The barotropic mode is forced with vertically integrated terms of advection, horizontal dissipation, Coriolis, internal pressure gradient and the bottom friction (assessed with the first level of velocity), (b) the baroclinic mode is forced with the external pressure gradient, and (c) the last classical step of the coupling consists of redistributing the vertical mismatch between the barotropic transport and the vertically integrated baroclinic transport in order to ensure mass conservation.</p>
      <p id="d1e1645">Last but not least, the wetting–drying capability has been modified to introduce
partial drying or wetting. It consists of introducing a coefficient <inline-formula><mml:math id="M25" display="inline"><mml:mrow><mml:msub><mml:mi>f</mml:mi><mml:mi mathvariant="normal">wet</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> to the non-local continuity equation that evolves in time, according to Eq. (4):
            <disp-formula id="Ch1.E4" content-type="numbered"><label>4</label><mml:math id="M26" display="block"><mml:mtable rowspacing="0.2ex" class="split" displaystyle="true" columnalign="right left"><mml:mtr><mml:mtd><mml:mrow><mml:msup><mml:mi mathvariant="italic">η</mml:mi><mml:mrow><mml:mi>n</mml:mi><mml:mo>+</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msup><mml:mi>S</mml:mi><mml:msubsup><mml:mi>f</mml:mi><mml:mi mathvariant="normal">wet</mml:mi><mml:mrow><mml:mi>n</mml:mi><mml:mo>+</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msubsup></mml:mrow></mml:mtd><mml:mtd><mml:mrow><mml:mo>=</mml:mo><mml:msup><mml:mi mathvariant="italic">η</mml:mi><mml:mi>n</mml:mi></mml:msup><mml:mi>S</mml:mi><mml:msubsup><mml:mi>f</mml:mi><mml:mi mathvariant="normal">wet</mml:mi><mml:mi>n</mml:mi></mml:msubsup><mml:mo>-</mml:mo><mml:mi mathvariant="normal">Δ</mml:mi><mml:mi>t</mml:mi><mml:mfenced open="[" close=""><mml:mover accent="true"><mml:mrow><mml:msub><mml:mo>∂</mml:mo><mml:mi>x</mml:mi></mml:msub><mml:mfenced open="(" close=")"><mml:mrow><mml:msup><mml:mi>h</mml:mi><mml:mi>n</mml:mi></mml:msup><mml:msup><mml:mi>u</mml:mi><mml:mrow><mml:mi>n</mml:mi><mml:mo>+</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:mfenced><mml:mi mathvariant="normal">Δ</mml:mi><mml:mi>y</mml:mi></mml:mrow><mml:mo mathvariant="normal">‾</mml:mo></mml:mover></mml:mfenced></mml:mrow></mml:mtd></mml:mtr><mml:mtr><mml:mtd/><mml:mtd><mml:mrow><mml:mfenced open="" close="]"><mml:mrow><mml:mo>+</mml:mo><mml:mover accent="true"><mml:mrow><mml:msub><mml:mo>∂</mml:mo><mml:mi>y</mml:mi></mml:msub><mml:mfenced open="(" close=")"><mml:mrow><mml:msup><mml:mi>h</mml:mi><mml:mi>n</mml:mi></mml:msup><mml:msup><mml:mi>v</mml:mi><mml:mrow><mml:mi>n</mml:mi><mml:mo>+</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:mfenced><mml:mi mathvariant="normal">Δ</mml:mi><mml:mi>x</mml:mi></mml:mrow><mml:mo mathvariant="normal">‾</mml:mo></mml:mover></mml:mrow></mml:mfenced><mml:mo>,</mml:mo></mml:mrow></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula>
          where <inline-formula><mml:math id="M27" display="inline"><mml:mi>S</mml:mi></mml:math></inline-formula> stands for the grid cell surface (<inline-formula><mml:math id="M28" display="inline"><mml:mrow><mml:mi>S</mml:mi><mml:mspace width="0.125em" linebreak="nobreak"/><mml:mo>=</mml:mo><mml:mspace width="0.125em" linebreak="nobreak"/><mml:mi mathvariant="normal">Δ</mml:mi><mml:mi>x</mml:mi><mml:mi mathvariant="normal">Δ</mml:mi><mml:mi>y</mml:mi></mml:mrow></mml:math></inline-formula>), and
<inline-formula><mml:math id="M29" display="inline"><mml:mrow><mml:msub><mml:mi>f</mml:mi><mml:mi mathvariant="normal">wet</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> is the time-dependent fraction of the grid cell that is flooded (<inline-formula><mml:math id="M30" display="inline"><mml:mrow><mml:mn mathvariant="normal">0</mml:mn><mml:mo>≤</mml:mo><mml:msub><mml:mi>f</mml:mi><mml:mrow><mml:msub><mml:mi mathvariant="normal">wet</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mo>,</mml:mo><mml:mi>j</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:msub><mml:mo>≤</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:math></inline-formula>). <inline-formula><mml:math id="M31" display="inline"><mml:mrow><mml:msub><mml:mi>f</mml:mi><mml:mi mathvariant="normal">wet</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> is given by a prognostic equation accounting for the bottom slope within the grid cell and the water column height at its center.</p>
</sec>
<sec id="Ch1.S2.SS2">
  <label>2.2</label><title>The AGRIF library: mesh refinement and grid interactions</title>
      <p id="d1e1873">AGRIF (adaptive grid refinement in Fortran; Debreu et al., 2008) is a
package for the integration of structured adaptive mesh refinement (SAMR)
features within a multidimensional finite difference model. Its main
objective is to simplify the integration of SAMR potentialities within an
existing model, while making minimal changes. In particular, it includes a
lexicographic analyzer of Fortran code that generates, at the compilation
step, the data structures required for running the same code on any grid
hierarchy. AGRIF is currently used in the following ocean models: ROMS-AGRIF
(Debreu et al., 2012; Penven et al., 2006), a regional model developed
jointly at Rutgers University and University of California, Los Angeles (UCLA), the NEMO ocean modeling system (Biastoch et al., 2018, 2009), a general circulation model used by the European scientific and operational communities, and HYCOM (HYbrid Coordinate Ocean Model), a regional model developed jointly by the University of Miami and the French Navy. In MARS3D,
a one-way nesting implementation ensuring only mass conservation (Muller et
al., 2009) was first introduced, followed by a two-way nesting for
temperature and salinity only (Dufois et al., 2014). This paper aims to
introduce a comprehensive two-way nesting in accordance with the improved
MARS3D time scheme, along with its evaluation in coastal environments.</p>

      <?xmltex \floatpos{t}?><fig id="Ch1.F3" specific-use="star"><?xmltex \currentcnt{3}?><?xmltex \def\figurename{Figure}?><label>Figure 3</label><caption><p id="d1e1878"><bold>(a)</bold> Local refinement with two child grids. <bold>(b)</bold> The weights used for interactions at the same hierarchical level on the overlapping area are represented with a red rectangle.</p></caption>
          <?xmltex \igopts{width=341.433071pt}?><graphic xlink:href="https://gmd.copernicus.org/articles/16/1191/2023/gmd-16-1191-2023-f03.png"/>

        </fig>

<sec id="Ch1.S2.SS2.SSS1">
  <label>2.2.1</label><title>General algorithm</title>
      <p id="d1e1899">For a general review of two-way nesting algorithms, the reader is referred
to Debreu and Blayo (2008). This section overviews the introduction of AGRIF
two-way nesting into MARS3D. The challenge was related to the implicit nature of the MARS3D time scheme, the ADI algorithm and the wetting–drying
capability. Figure 3 illustrates two child grids covering the subdomains <inline-formula><mml:math id="M32" display="inline"><mml:mi mathvariant="italic">ω</mml:mi></mml:math></inline-formula> of the parent domain <inline-formula><mml:math id="M33" display="inline"><mml:mi mathvariant="normal">Ω</mml:mi></mml:math></inline-formula>. Their boundaries are delimited by the interfaces <inline-formula><mml:math id="M34" display="inline"><mml:mi mathvariant="normal">Γ</mml:mi></mml:math></inline-formula>. The coarse-resolution grid has a mesh size given by <inline-formula><mml:math id="M35" display="inline"><mml:mrow><mml:mi mathvariant="normal">Δ</mml:mi><mml:msub><mml:mi>x</mml:mi><mml:mi>H</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula>, while the fine-resolution grid has a mesh size of <inline-formula><mml:math id="M36" display="inline"><mml:mrow><mml:mi mathvariant="normal">Δ</mml:mi><mml:msub><mml:mi>x</mml:mi><mml:mi>h</mml:mi></mml:msub><mml:mo>=</mml:mo><mml:mspace width="0.125em" linebreak="nobreak"/><mml:mi mathvariant="normal">Δ</mml:mi><mml:msub><mml:mi>x</mml:mi><mml:mi>H</mml:mi></mml:msub><mml:mo>/</mml:mo><mml:mi mathvariant="italic">ρ</mml:mi></mml:mrow></mml:math></inline-formula>, where <inline-formula><mml:math id="M37" display="inline"><mml:mi mathvariant="italic">ρ</mml:mi></mml:math></inline-formula> is the spatial mesh refinement ratio (an integer). Subscripts <inline-formula><mml:math id="M38" display="inline"><mml:mi>H</mml:mi></mml:math></inline-formula> and <inline-formula><mml:math id="M39" display="inline"><mml:mi>h</mml:mi></mml:math></inline-formula> stand for the coarse and refined domains, respectively. The partial differential equations solved by the model can be written in the following generic forms:
              <disp-formula id="Ch1.E5" content-type="numbered"><label>5</label><mml:math id="M40" display="block"><mml:mrow><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:mo>∂</mml:mo><mml:msub><mml:mi>q</mml:mi><mml:mi>H</mml:mi></mml:msub></mml:mrow><mml:mrow><mml:mo>∂</mml:mo><mml:mi>t</mml:mi></mml:mrow></mml:mfrac></mml:mstyle><mml:mo>=</mml:mo><mml:msub><mml:mi>L</mml:mi><mml:mi>H</mml:mi></mml:msub><mml:mfenced close=")" open="("><mml:mrow><mml:msub><mml:mi>q</mml:mi><mml:mi>H</mml:mi></mml:msub></mml:mrow></mml:mfenced><mml:mo>,</mml:mo><mml:mspace linebreak="nobreak" width="0.125em"/><mml:mspace width="0.125em" linebreak="nobreak"/><mml:mspace width="0.125em" linebreak="nobreak"/><mml:mspace linebreak="nobreak" width="0.125em"/><mml:mspace width="0.125em" linebreak="nobreak"/><mml:mspace linebreak="nobreak" width="0.125em"/><mml:mspace linebreak="nobreak" width="0.125em"/><mml:mspace linebreak="nobreak" width="0.125em"/><mml:mspace width="0.125em" linebreak="nobreak"/><mml:mspace width="0.125em" linebreak="nobreak"/><mml:mspace width="0.125em" linebreak="nobreak"/><mml:mspace linebreak="nobreak" width="0.125em"/><mml:mspace width="0.125em" linebreak="nobreak"/><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:mo>∂</mml:mo><mml:msub><mml:mi>q</mml:mi><mml:mi>h</mml:mi></mml:msub></mml:mrow><mml:mrow><mml:mo>∂</mml:mo><mml:mi>t</mml:mi></mml:mrow></mml:mfrac></mml:mstyle><mml:mo>=</mml:mo><mml:msub><mml:mi>L</mml:mi><mml:mi>h</mml:mi></mml:msub><mml:mfenced close=")" open="("><mml:mrow><mml:msub><mml:mi>q</mml:mi><mml:mi>h</mml:mi></mml:msub></mml:mrow></mml:mfenced><mml:mo>.</mml:mo></mml:mrow></mml:math></disp-formula>
            <inline-formula><mml:math id="M41" display="inline"><mml:mrow><mml:msub><mml:mi>L</mml:mi><mml:mi>H</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> and <inline-formula><mml:math id="M42" display="inline"><mml:mrow><mml:msub><mml:mi>L</mml:mi><mml:mi>h</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> represent the same continuous operator <inline-formula><mml:math id="M43" display="inline"><mml:mi>L</mml:mi></mml:math></inline-formula> at the coarse
(<inline-formula><mml:math id="M44" display="inline"><mml:mi>H</mml:mi></mml:math></inline-formula>) and fine (<inline-formula><mml:math id="M45" display="inline"><mml:mi>h</mml:mi></mml:math></inline-formula>) resolutions. On the child grid, equations are integrated
from an initial state, which refers to the conservative spatial
interpolation of the initial condition on the coarse grid. Throughout the
time integration, the child grid lateral boundary conditions at the
interface <inline-formula><mml:math id="M46" display="inline"><mml:mi mathvariant="normal">Γ</mml:mi></mml:math></inline-formula> are provided by temporal and spatial conservative
interpolations from the coarse grid. In the two-way mode, the coarse resolution model is updated using the fine resolution model once the temporal integration of the fine grids is completed, i.e., after <inline-formula><mml:math id="M47" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">ρ</mml:mi><mml:mi>t</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> sub-time steps. In short, this nesting uses two different operators, namely a spatiotemporal interpolator (<inline-formula><mml:math id="M48" display="inline"><mml:mrow><mml:mi>P</mml:mi><mml:mo>)</mml:mo></mml:mrow></mml:math></inline-formula> and a restriction operator (<inline-formula><mml:math id="M49" display="inline"><mml:mrow><mml:mi>R</mml:mi><mml:mo>)</mml:mo></mml:mrow></mml:math></inline-formula>, respectively. Using an explicit convention to simplify, the algorithm can be written in the following conceptual form for a single, coarse-grid half of a time step:
<list list-type="order"><list-item>
      <p id="d1e2153"><inline-formula><mml:math id="M50" display="inline"><mml:mrow><mml:msubsup><mml:mi>q</mml:mi><mml:mi>H</mml:mi><mml:mrow><mml:mi>n</mml:mi><mml:mo>+</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msubsup><mml:mo>=</mml:mo><mml:msub><mml:mi>L</mml:mi><mml:mi>H</mml:mi></mml:msub><mml:mfenced close=")" open="("><mml:mrow><mml:msubsup><mml:mi>q</mml:mi><mml:mi>H</mml:mi><mml:mi>n</mml:mi></mml:msubsup></mml:mrow></mml:mfenced></mml:mrow></mml:math></inline-formula>
(temporal integration of the coarse grid);</p></list-item><list-item>
      <p id="d1e2190"><inline-formula><mml:math id="M51" display="inline"><mml:mrow><mml:mi mathvariant="normal">For</mml:mi><mml:mspace linebreak="nobreak" width="0.125em"/><mml:mspace linebreak="nobreak" width="0.125em"/><mml:mi>m</mml:mi><mml:mspace linebreak="nobreak" width="0.125em"/><mml:mo>=</mml:mo><mml:mspace width="0.125em" linebreak="nobreak"/><mml:mn mathvariant="normal">1</mml:mn><mml:mi mathvariant="normal">…</mml:mi><mml:msub><mml:mi mathvariant="italic">ρ</mml:mi><mml:mi>t</mml:mi></mml:msub><mml:mspace width="0.125em" linebreak="nobreak"/><mml:mspace width="0.125em" linebreak="nobreak"/><mml:mspace width="0.125em" linebreak="nobreak"/><mml:mi mathvariant="normal">Do</mml:mi></mml:mrow></mml:math></inline-formula></p>
      <p id="d1e2222"><inline-formula><mml:math id="M52" display="inline"><mml:mrow><mml:msub><mml:mfenced open="" close="|"><mml:mrow><mml:msubsup><mml:mi>q</mml:mi><mml:mi>h</mml:mi><mml:mrow><mml:mi>n</mml:mi><mml:mo>+</mml:mo><mml:mfrac><mml:mi>m</mml:mi><mml:mrow><mml:msub><mml:mi mathvariant="italic">ρ</mml:mi><mml:mi>t</mml:mi></mml:msub></mml:mrow></mml:mfrac></mml:mrow></mml:msubsup></mml:mrow></mml:mfenced><mml:mi mathvariant="normal">Γ</mml:mi></mml:msub><mml:mo>=</mml:mo><mml:mi>P</mml:mi><mml:mfenced open="(" close=")"><mml:mrow><mml:msubsup><mml:mi>q</mml:mi><mml:mi>H</mml:mi><mml:mi>n</mml:mi></mml:msubsup><mml:mo>,</mml:mo><mml:msubsup><mml:mi>q</mml:mi><mml:mi>H</mml:mi><mml:mrow><mml:mi>n</mml:mi><mml:mo>+</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msubsup></mml:mrow></mml:mfenced></mml:mrow></mml:math></inline-formula> (computation of open boundary conditions from
the coarse grid to the child grid);</p>
      <p id="d1e2281"><inline-formula><mml:math id="M53" display="inline"><mml:mrow><mml:msubsup><mml:mi>q</mml:mi><mml:mi>h</mml:mi><mml:mrow><mml:mi>n</mml:mi><mml:mo>+</mml:mo><mml:mfrac><mml:mi>m</mml:mi><mml:mrow><mml:msub><mml:mi mathvariant="italic">ρ</mml:mi><mml:mi>t</mml:mi></mml:msub></mml:mrow></mml:mfrac></mml:mrow></mml:msubsup><mml:mo>=</mml:mo><mml:msub><mml:mi>L</mml:mi><mml:mi>h</mml:mi></mml:msub><mml:mfenced close=")" open="("><mml:mrow><mml:msubsup><mml:mi>q</mml:mi><mml:mi>h</mml:mi><mml:mrow><mml:mi>n</mml:mi><mml:mo>+</mml:mo><mml:mfrac><mml:mrow><mml:mfenced open="(" close=")"><mml:mrow><mml:mi>m</mml:mi><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:mfenced></mml:mrow><mml:mrow><mml:msub><mml:mi mathvariant="italic">ρ</mml:mi><mml:mi>t</mml:mi></mml:msub></mml:mrow></mml:mfrac></mml:mrow></mml:msubsup></mml:mrow></mml:mfenced></mml:mrow></mml:math></inline-formula> (temporal integration of the child grid);</p></list-item><list-item>
      <p id="d1e2344"><disp-formula id="Ch1.E6" content-type="numbered"><label>6</label><mml:math id="M54" display="block"><mml:mtable rowspacing="0.2ex" class="split" displaystyle="true" columnalign="right left"><mml:mtr><mml:mtd><mml:mrow><mml:msub><mml:mfenced open="" close="|"><mml:mrow><mml:msubsup><mml:mi>q</mml:mi><mml:mi>H</mml:mi><mml:mrow><mml:mi>n</mml:mi><mml:mo>+</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msubsup></mml:mrow></mml:mfenced><mml:mi mathvariant="italic">ω</mml:mi></mml:msub></mml:mrow></mml:mtd><mml:mtd><mml:mrow><mml:mo>=</mml:mo><mml:mi>R</mml:mi><mml:mfenced close=")" open="("><mml:mrow><mml:msubsup><mml:mi>q</mml:mi><mml:mi>h</mml:mi><mml:mrow><mml:mi>n</mml:mi><mml:mo>+</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msubsup></mml:mrow></mml:mfenced><mml:mspace linebreak="nobreak" width="1em"/><mml:mtext>(update of the coarse grid </mml:mtext></mml:mrow></mml:mtd></mml:mtr><mml:mtr><mml:mtd/><mml:mtd><mml:mrow><mml:mtext>over the area of overlap)</mml:mtext><mml:mo>.</mml:mo></mml:mrow></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula></p></list-item></list>
Here, <inline-formula><mml:math id="M55" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">ρ</mml:mi><mml:mi>t</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> is the time refinement factor (<inline-formula><mml:math id="M56" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">ρ</mml:mi><mml:mi>t</mml:mi></mml:msub><mml:mo>=</mml:mo><mml:mi mathvariant="normal">Δ</mml:mi><mml:msub><mml:mi>t</mml:mi><mml:mi>H</mml:mi></mml:msub><mml:mo>/</mml:mo><mml:mi mathvariant="normal">Δ</mml:mi><mml:msub><mml:mi>t</mml:mi><mml:mi>h</mml:mi></mml:msub><mml:mo>)</mml:mo></mml:mrow></mml:math></inline-formula>, which is  equal to the space refinement factor <inline-formula><mml:math id="M57" display="inline"><mml:mi mathvariant="italic">ρ</mml:mi></mml:math></inline-formula> for models restricted to a CFL (Courant–Friedrichs–Lewy) stability condition. Step (1) corresponds to the integration of the coarse-grid model for one time step <inline-formula><mml:math id="M58" display="inline"><mml:mrow><mml:mi mathvariant="normal">Δ</mml:mi><mml:msub><mml:mi>t</mml:mi><mml:mi>H</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> on<inline-formula><mml:math id="M59" display="inline"><mml:mi mathvariant="normal">Ω</mml:mi></mml:math></inline-formula>, while step (2) is the integration of the fine-grid model over <inline-formula><mml:math id="M60" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">ρ</mml:mi><mml:mi>t</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> time steps. The interpolator <inline-formula><mml:math id="M61" display="inline"><mml:mi>P</mml:mi></mml:math></inline-formula> makes use of <inline-formula><mml:math id="M62" display="inline"><mml:mrow><mml:msubsup><mml:mi>q</mml:mi><mml:mi>H</mml:mi><mml:mi>n</mml:mi></mml:msubsup></mml:mrow></mml:math></inline-formula> and <inline-formula><mml:math id="M63" display="inline"><mml:mrow><mml:msubsup><mml:mi>q</mml:mi><mml:mi>H</mml:mi><mml:mrow><mml:mi>n</mml:mi><mml:mo>+</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msubsup></mml:mrow></mml:math></inline-formula> to produce space and time interpolations on the interface <inline-formula><mml:math id="M64" display="inline"><mml:mi mathvariant="normal">Γ</mml:mi></mml:math></inline-formula>. Step (3) is the update procedure in the two-way nesting, which is applied every half of a time step for the coarse grid.</p>
</sec>
<?pagebreak page1195?><sec id="Ch1.S2.SS2.SSS2">
  <label>2.2.2</label><title>Open-boundary conditions</title>
      <p id="d1e2538">At the boundaries of the subdomains, the mother grid provides the
high-resolution grids with the free-surface, tracers and barotropic and
baroclinic velocity components. These variables need to be interpolated onto
the fine grid by combining the piecewise parabolic method (in the normal
direction to the boundary) and linear method (in the along-direction to the
boundary) because the first external (i.e., not-computed) fine-grid points (<inline-formula><mml:math id="M65" display="inline"><mml:mi>u</mml:mi></mml:math></inline-formula>, <inline-formula><mml:math id="M66" display="inline"><mml:mi>v</mml:mi></mml:math></inline-formula> or <inline-formula><mml:math id="M67" display="inline"><mml:mi mathvariant="italic">η</mml:mi></mml:math></inline-formula>) used as open boundary conditions do not coincide with any coarse grid point. Afterward, the open-boundary operators (characteristics and radiation methods for momentum and tracer, respectively) are applied to force the fine grid. In a sense, the various fluxes entering the fine grid are not exactly the same as the ones seen by the coarse grid; the local conservation is not achieved at boundaries, but this potential mismatch is limited by the bathymetric coherence between grids. Moreover, the
update step ensures the conservation of the global system (see Sect. 2.2.3).</p>
      <p id="d1e2562">In addition, a sponge layer is set along the open boundaries. It is
implemented as a diffusion term that acts on the difference between the
high-resolution solution and the interpolation (<inline-formula><mml:math id="M68" display="inline"><mml:mi>I</mml:mi></mml:math></inline-formula>) of the coarse-resolution
solution onto the fine grid, as follows (Debreu and Blayo, 2008):
              <disp-formula id="Ch1.E7" content-type="numbered"><label>7</label><mml:math id="M69" display="block"><mml:mrow><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:mo>∂</mml:mo><mml:msub><mml:mi>q</mml:mi><mml:mi>h</mml:mi></mml:msub></mml:mrow><mml:mrow><mml:mo>∂</mml:mo><mml:mi>t</mml:mi></mml:mrow></mml:mfrac></mml:mstyle><mml:mo>=</mml:mo><mml:msub><mml:mi>L</mml:mi><mml:mi>h</mml:mi></mml:msub><mml:mo>+</mml:mo><mml:mi mathvariant="normal">∇</mml:mi><mml:mo>⋅</mml:mo><mml:mfenced close=")" open="("><mml:mrow><mml:mi mathvariant="italic">μ</mml:mi><mml:mi mathvariant="normal">∇</mml:mi><mml:mfenced open="(" close=")"><mml:mrow><mml:msub><mml:mi>q</mml:mi><mml:mi>h</mml:mi></mml:msub><mml:mo>-</mml:mo><mml:msubsup><mml:mi>I</mml:mi><mml:mi>H</mml:mi><mml:mi>h</mml:mi></mml:msubsup><mml:msub><mml:mi>q</mml:mi><mml:mi>H</mml:mi></mml:msub></mml:mrow></mml:mfenced></mml:mrow></mml:mfenced><mml:mo>,</mml:mo></mml:mrow></mml:math></disp-formula>
            where <inline-formula><mml:math id="M70" display="inline"><mml:mi mathvariant="italic">μ</mml:mi></mml:math></inline-formula> is a coefficient ranging from its maximal value <inline-formula><mml:math id="M71" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">μ</mml:mi><mml:mn mathvariant="normal">0</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula> at
the interface to 0 a few grid points away from it (usually at a distance of
three coarse-grid cells). This sponge layer is applied both on momentum and
tracers. It aims at filtering out scales that are not affordable by the
coarse grid and to<?pagebreak page1196?> obtain a better match in terms of scales between the open
conditions (coming out from the coarse grid) and the fine-grid state
variable <inline-formula><mml:math id="M72" display="inline"><mml:mrow><mml:msub><mml:mi>q</mml:mi><mml:mi>h</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> at the first inner points along the boundary, which come out
from the operator <inline-formula><mml:math id="M73" display="inline"><mml:mrow><mml:msub><mml:mi>L</mml:mi><mml:mi>h</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula>, whose spectral range is wider.</p>
</sec>
<sec id="Ch1.S2.SS2.SSS3">
  <label>2.2.3</label><title>Free-surface, tracer and velocity updates with wetting and drying</title>
      <p id="d1e2684">After the time integration of the high-resolution grids, the information is
fed back to the parent grid in the two-way context. The updated coarse
solution comes from the spatial average of the fine solution over the whole
area of overlapping. This constraint is related to the semi-implicit solver
used in MARS3D. Therefore, the mother and child bathymetries need to be
constructed so that the bathymetry reduction conserves volume. In doing so,
the restriction operator (<inline-formula><mml:math id="M74" display="inline"><mml:mi>R</mml:mi></mml:math></inline-formula>) keeps the fluxes coherent and conserve mass.</p>
      <p id="d1e2694">For conservation reasons, the discrete time evolution of the free-surface
elevation can be written in terms of the divergence of the barotropic
transports <inline-formula><mml:math id="M75" display="inline"><mml:mi>U</mml:mi></mml:math></inline-formula> and <inline-formula><mml:math id="M76" display="inline"><mml:mi>V</mml:mi></mml:math></inline-formula> in the <inline-formula><mml:math id="M77" display="inline"><mml:mi>x</mml:mi></mml:math></inline-formula> and <inline-formula><mml:math id="M78" display="inline"><mml:mi>y</mml:mi></mml:math></inline-formula> directions (volumetric fluxes) in
a free-surface ocean model:
              <disp-formula id="Ch1.E8" content-type="numbered"><label>8</label><mml:math id="M79" display="block"><mml:mtable rowspacing="0.2ex" class="split" displaystyle="true" columnalign="right left"><mml:mtr><mml:mtd><mml:mrow><mml:msub><mml:mi>S</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mo>,</mml:mo><mml:mi>j</mml:mi></mml:mrow></mml:msub><mml:msubsup><mml:mi>f</mml:mi><mml:mrow><mml:msub><mml:mi mathvariant="normal">wet</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mo>,</mml:mo><mml:mi>j</mml:mi></mml:mrow></mml:msub></mml:mrow><mml:mrow><mml:mi>n</mml:mi><mml:mo>+</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msubsup><mml:msubsup><mml:mi mathvariant="italic">η</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mo>,</mml:mo><mml:mi>j</mml:mi></mml:mrow><mml:mrow><mml:mi>n</mml:mi><mml:mo>+</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msubsup></mml:mrow></mml:mtd><mml:mtd><mml:mrow><mml:mo>=</mml:mo><mml:msub><mml:mi>S</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mo>,</mml:mo><mml:mi>j</mml:mi></mml:mrow></mml:msub><mml:msubsup><mml:mi>f</mml:mi><mml:mrow><mml:msub><mml:mi mathvariant="normal">wet</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mo>,</mml:mo><mml:mi>j</mml:mi></mml:mrow></mml:msub></mml:mrow><mml:mi>n</mml:mi></mml:msubsup><mml:msubsup><mml:mi mathvariant="italic">η</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mo>,</mml:mo><mml:mi>j</mml:mi></mml:mrow><mml:mi>n</mml:mi></mml:msubsup><mml:mo>-</mml:mo><mml:mi mathvariant="normal">Δ</mml:mi><mml:mi>t</mml:mi><mml:mfenced open="[" close=""><mml:mrow><mml:msub><mml:mi>U</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mo>+</mml:mo><mml:mstyle scriptlevel="+1"><mml:mfrac><mml:mn mathvariant="normal">1</mml:mn><mml:mn mathvariant="normal">2</mml:mn></mml:mfrac></mml:mstyle><mml:mo>,</mml:mo><mml:mi>j</mml:mi></mml:mrow></mml:msub><mml:mo>-</mml:mo><mml:msub><mml:mi>U</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mo>-</mml:mo><mml:mstyle scriptlevel="+1"><mml:mfrac><mml:mn mathvariant="normal">1</mml:mn><mml:mn mathvariant="normal">2</mml:mn></mml:mfrac></mml:mstyle><mml:mo>,</mml:mo><mml:mi>j</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:mfenced></mml:mrow></mml:mtd></mml:mtr><mml:mtr><mml:mtd/><mml:mtd><mml:mrow><mml:mfenced open="" close="]"><mml:mrow><mml:mo>+</mml:mo><mml:msub><mml:mi>V</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mo>,</mml:mo><mml:mi>j</mml:mi><mml:mo>+</mml:mo><mml:mstyle scriptlevel="+1"><mml:mfrac><mml:mn mathvariant="normal">1</mml:mn><mml:mn mathvariant="normal">2</mml:mn></mml:mfrac></mml:mstyle></mml:mrow></mml:msub><mml:mo>-</mml:mo><mml:msub><mml:mi>V</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mo>,</mml:mo><mml:mi>j</mml:mi><mml:mo>-</mml:mo><mml:mstyle scriptlevel="+1"><mml:mfrac><mml:mn mathvariant="normal">1</mml:mn><mml:mn mathvariant="normal">2</mml:mn></mml:mfrac></mml:mstyle></mml:mrow></mml:msub></mml:mrow></mml:mfenced></mml:mrow></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula>
            A consistent update scheme for free-surface and barotropic transport is
obtained by applying the restriction operator to the right-hand side of this
equation. Hereafter, let us consider the situation represented in Fig. 4, where the mesh refinement coefficient is equal to 3. The free-surface restriction operator is a simple average of the nine fine-grid cells, using the following the area-weighted formulae:
              <disp-formula id="Ch1.E9" content-type="numbered"><label>9</label><mml:math id="M80" display="block"><mml:mrow><mml:msub><mml:mi>S</mml:mi><mml:mrow><mml:msub><mml:mi>i</mml:mi><mml:mi mathvariant="normal">c</mml:mi></mml:msub><mml:mo>,</mml:mo><mml:msub><mml:mi>j</mml:mi><mml:mi mathvariant="normal">c</mml:mi></mml:msub></mml:mrow></mml:msub><mml:msubsup><mml:mi>f</mml:mi><mml:mrow><mml:msub><mml:mi mathvariant="normal">wet</mml:mi><mml:mrow><mml:msub><mml:mi>i</mml:mi><mml:mi mathvariant="normal">c</mml:mi></mml:msub><mml:mo>,</mml:mo><mml:msub><mml:mi>j</mml:mi><mml:mi mathvariant="normal">c</mml:mi></mml:msub></mml:mrow></mml:msub></mml:mrow><mml:mrow><mml:mi>n</mml:mi><mml:mo>+</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msubsup><mml:msubsup><mml:mi mathvariant="italic">η</mml:mi><mml:mrow><mml:msub><mml:mi>i</mml:mi><mml:mi mathvariant="normal">c</mml:mi></mml:msub><mml:mo>,</mml:mo><mml:msub><mml:mi>j</mml:mi><mml:mi mathvariant="normal">c</mml:mi></mml:msub></mml:mrow><mml:mrow><mml:mi>n</mml:mi><mml:mo>+</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msubsup><mml:mo>=</mml:mo><mml:munder><mml:mo movablelimits="false">∑</mml:mo><mml:mtable class="array" columnalign="left"><mml:mtr><mml:mtd><mml:mrow><mml:mi>i</mml:mi><mml:mo>=</mml:mo><mml:msub><mml:mi>i</mml:mi><mml:mi mathvariant="normal">f</mml:mi></mml:msub><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn><mml:mo>,</mml:mo><mml:msub><mml:mi>i</mml:mi><mml:mi mathvariant="normal">f</mml:mi></mml:msub><mml:mo>+</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:mtd></mml:mtr><mml:mtr><mml:mtd><mml:mrow><mml:mi>j</mml:mi><mml:mo>=</mml:mo><mml:msub><mml:mi>j</mml:mi><mml:mi mathvariant="normal">f</mml:mi></mml:msub><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn><mml:mo>,</mml:mo><mml:msub><mml:mi>j</mml:mi><mml:mi mathvariant="normal">f</mml:mi></mml:msub><mml:mo>+</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:mtd></mml:mtr></mml:mtable></mml:munder><mml:msub><mml:mi>S</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mo>,</mml:mo><mml:mi>j</mml:mi></mml:mrow></mml:msub><mml:msubsup><mml:mi>f</mml:mi><mml:mrow><mml:msub><mml:mi mathvariant="normal">wet</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mo>,</mml:mo><mml:mi>j</mml:mi></mml:mrow></mml:msub></mml:mrow><mml:mrow><mml:mi>n</mml:mi><mml:mo>+</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msubsup><mml:msubsup><mml:mi mathvariant="italic">η</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mo>,</mml:mo><mml:mi>j</mml:mi></mml:mrow><mml:mrow><mml:mi>n</mml:mi><mml:mo>+</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msubsup><mml:mo>,</mml:mo></mml:mrow></mml:math></disp-formula>
            where <inline-formula><mml:math id="M81" display="inline"><mml:mrow><mml:msub><mml:mi>i</mml:mi><mml:mi mathvariant="normal">c</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> and <inline-formula><mml:math id="M82" display="inline"><mml:mrow><mml:msub><mml:mi>j</mml:mi><mml:mi mathvariant="normal">c</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> are the indices of the cell in the coarse grid, and <inline-formula><mml:math id="M83" display="inline"><mml:mrow><mml:msub><mml:mi>i</mml:mi><mml:mi mathvariant="normal">f</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> and <inline-formula><mml:math id="M84" display="inline"><mml:mrow><mml:msub><mml:mi>j</mml:mi><mml:mi mathvariant="normal">f</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> are the indices of the cell in the fine grid (see Fig. 4). Using Eq. (9), the time evolution of the updated free surface is given by the following:
              <disp-formula id="Ch1.E10" content-type="numbered"><label>10</label><mml:math id="M85" display="block"><mml:mtable rowspacing="0.2ex" class="split" displaystyle="true" columnalign="right left"><mml:mtr><mml:mtd/><mml:mtd><mml:mrow><mml:msub><mml:mi>S</mml:mi><mml:mrow><mml:msub><mml:mi>i</mml:mi><mml:mi mathvariant="normal">c</mml:mi></mml:msub><mml:mo>,</mml:mo><mml:msub><mml:mi>j</mml:mi><mml:mi mathvariant="normal">c</mml:mi></mml:msub></mml:mrow></mml:msub><mml:msubsup><mml:mi>f</mml:mi><mml:mrow><mml:msub><mml:mi mathvariant="normal">wet</mml:mi><mml:mrow><mml:msub><mml:mi>i</mml:mi><mml:mi mathvariant="normal">c</mml:mi></mml:msub><mml:mo>,</mml:mo><mml:msub><mml:mi>j</mml:mi><mml:mi mathvariant="normal">c</mml:mi></mml:msub></mml:mrow></mml:msub></mml:mrow><mml:mrow><mml:mi>n</mml:mi><mml:mo>+</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msubsup><mml:msubsup><mml:mi mathvariant="italic">η</mml:mi><mml:mrow><mml:msub><mml:mi>i</mml:mi><mml:mi mathvariant="normal">c</mml:mi></mml:msub><mml:mo>,</mml:mo><mml:msub><mml:mi>j</mml:mi><mml:mi mathvariant="normal">c</mml:mi></mml:msub></mml:mrow><mml:mrow><mml:mi>n</mml:mi><mml:mo>+</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msubsup><mml:mo>=</mml:mo><mml:msub><mml:mi>S</mml:mi><mml:mrow><mml:msub><mml:mi>i</mml:mi><mml:mi mathvariant="normal">c</mml:mi></mml:msub><mml:mo>,</mml:mo><mml:msub><mml:mi>j</mml:mi><mml:mi mathvariant="normal">c</mml:mi></mml:msub></mml:mrow></mml:msub><mml:msubsup><mml:mi>f</mml:mi><mml:mrow><mml:msub><mml:mi mathvariant="normal">wet</mml:mi><mml:mrow><mml:msub><mml:mi>i</mml:mi><mml:mi mathvariant="normal">c</mml:mi></mml:msub><mml:mo>,</mml:mo><mml:msub><mml:mi>j</mml:mi><mml:mi mathvariant="normal">c</mml:mi></mml:msub></mml:mrow></mml:msub></mml:mrow><mml:mi>n</mml:mi></mml:msubsup><mml:msubsup><mml:mi mathvariant="italic">η</mml:mi><mml:mrow><mml:msub><mml:mi>i</mml:mi><mml:mi mathvariant="normal">c</mml:mi></mml:msub><mml:mo>,</mml:mo><mml:msub><mml:mi>j</mml:mi><mml:mi mathvariant="normal">c</mml:mi></mml:msub></mml:mrow><mml:mi>n</mml:mi></mml:msubsup><mml:mo>-</mml:mo><mml:mi mathvariant="normal">Δ</mml:mi><mml:mi>t</mml:mi></mml:mrow></mml:mtd></mml:mtr><mml:mtr><mml:mtd/><mml:mtd><mml:mrow><mml:mfenced close="]" open="["><mml:mtable class="array" columnalign="left"><mml:mtr><mml:mtd><mml:mrow><mml:mfenced open="(" close=")"><mml:mrow><mml:msub><mml:mi>U</mml:mi><mml:mrow><mml:msub><mml:mi>i</mml:mi><mml:mi mathvariant="normal">f</mml:mi></mml:msub><mml:mo>+</mml:mo><mml:mstyle scriptlevel="+1"><mml:mfrac><mml:mn mathvariant="normal">3</mml:mn><mml:mn mathvariant="normal">2</mml:mn></mml:mfrac></mml:mstyle><mml:mo>,</mml:mo><mml:msub><mml:mi>j</mml:mi><mml:mi mathvariant="normal">f</mml:mi></mml:msub><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msub><mml:mo>+</mml:mo><mml:msub><mml:mi>U</mml:mi><mml:mrow><mml:msub><mml:mi>i</mml:mi><mml:mi mathvariant="normal">f</mml:mi></mml:msub><mml:mo>+</mml:mo><mml:mstyle scriptlevel="+1"><mml:mfrac><mml:mn mathvariant="normal">3</mml:mn><mml:mn mathvariant="normal">2</mml:mn></mml:mfrac></mml:mstyle><mml:mo>,</mml:mo><mml:msub><mml:mi>j</mml:mi><mml:mi mathvariant="normal">f</mml:mi></mml:msub></mml:mrow></mml:msub><mml:mo>+</mml:mo><mml:msub><mml:mi>U</mml:mi><mml:mrow><mml:msub><mml:mi>i</mml:mi><mml:mi mathvariant="normal">f</mml:mi></mml:msub><mml:mo>+</mml:mo><mml:mstyle scriptlevel="+1"><mml:mfrac><mml:mn mathvariant="normal">3</mml:mn><mml:mn mathvariant="normal">2</mml:mn></mml:mfrac></mml:mstyle><mml:mo>,</mml:mo><mml:msub><mml:mi>j</mml:mi><mml:mi mathvariant="normal">f</mml:mi></mml:msub><mml:mo>+</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msub></mml:mrow></mml:mfenced></mml:mrow></mml:mtd></mml:mtr><mml:mtr><mml:mtd><mml:mrow><mml:mo>-</mml:mo><mml:mfenced open="(" close=")"><mml:mrow><mml:msub><mml:mi>U</mml:mi><mml:mrow><mml:msub><mml:mi>i</mml:mi><mml:mi mathvariant="normal">f</mml:mi></mml:msub><mml:mo>-</mml:mo><mml:mstyle scriptlevel="+1"><mml:mfrac><mml:mn mathvariant="normal">3</mml:mn><mml:mn mathvariant="normal">2</mml:mn></mml:mfrac></mml:mstyle><mml:mo>,</mml:mo><mml:msub><mml:mi>j</mml:mi><mml:mi mathvariant="normal">f</mml:mi></mml:msub><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msub><mml:mo>+</mml:mo><mml:msub><mml:mi>U</mml:mi><mml:mrow><mml:msub><mml:mi>i</mml:mi><mml:mi mathvariant="normal">f</mml:mi></mml:msub><mml:mo>-</mml:mo><mml:mstyle scriptlevel="+1"><mml:mfrac><mml:mn mathvariant="normal">3</mml:mn><mml:mn mathvariant="normal">2</mml:mn></mml:mfrac></mml:mstyle><mml:mo>,</mml:mo><mml:msub><mml:mi>j</mml:mi><mml:mi mathvariant="normal">f</mml:mi></mml:msub></mml:mrow></mml:msub><mml:mo>+</mml:mo><mml:msub><mml:mi>U</mml:mi><mml:mrow><mml:msub><mml:mi>i</mml:mi><mml:mi mathvariant="normal">f</mml:mi></mml:msub><mml:mo>-</mml:mo><mml:mstyle scriptlevel="+1"><mml:mfrac><mml:mn mathvariant="normal">3</mml:mn><mml:mn mathvariant="normal">2</mml:mn></mml:mfrac></mml:mstyle><mml:mo>,</mml:mo><mml:msub><mml:mi>j</mml:mi><mml:mi mathvariant="normal">f</mml:mi></mml:msub><mml:mo>+</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msub></mml:mrow></mml:mfenced></mml:mrow></mml:mtd></mml:mtr><mml:mtr><mml:mtd><mml:mrow><mml:mo>+</mml:mo><mml:mfenced close=")" open="("><mml:mrow><mml:msub><mml:mi>V</mml:mi><mml:mrow><mml:msub><mml:mi>i</mml:mi><mml:mi mathvariant="normal">f</mml:mi></mml:msub><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn><mml:mo>,</mml:mo><mml:msub><mml:mi>j</mml:mi><mml:mi mathvariant="normal">f</mml:mi></mml:msub><mml:mo>+</mml:mo><mml:mstyle scriptlevel="+1"><mml:mfrac><mml:mn mathvariant="normal">3</mml:mn><mml:mn mathvariant="normal">2</mml:mn></mml:mfrac></mml:mstyle><mml:mo>,</mml:mo></mml:mrow></mml:msub><mml:mo>+</mml:mo><mml:msub><mml:mi>V</mml:mi><mml:mrow><mml:msub><mml:mi>i</mml:mi><mml:mi mathvariant="normal">f</mml:mi></mml:msub><mml:mo>,</mml:mo><mml:msub><mml:mi>j</mml:mi><mml:mi mathvariant="normal">f</mml:mi></mml:msub><mml:mo>+</mml:mo><mml:mstyle scriptlevel="+1"><mml:mfrac><mml:mn mathvariant="normal">3</mml:mn><mml:mn mathvariant="normal">2</mml:mn></mml:mfrac></mml:mstyle></mml:mrow></mml:msub><mml:mo>+</mml:mo><mml:msub><mml:mi>V</mml:mi><mml:mrow><mml:msub><mml:mi>i</mml:mi><mml:mi mathvariant="normal">f</mml:mi></mml:msub><mml:mo>+</mml:mo><mml:mn mathvariant="normal">1</mml:mn><mml:mo>,</mml:mo><mml:msub><mml:mi>j</mml:mi><mml:mi mathvariant="normal">f</mml:mi></mml:msub><mml:mo>+</mml:mo><mml:mstyle scriptlevel="+1"><mml:mfrac><mml:mn mathvariant="normal">3</mml:mn><mml:mn mathvariant="normal">2</mml:mn></mml:mfrac></mml:mstyle></mml:mrow></mml:msub></mml:mrow></mml:mfenced></mml:mrow></mml:mtd></mml:mtr><mml:mtr><mml:mtd><mml:mrow><mml:mo>-</mml:mo><mml:mfenced close=")" open="("><mml:mrow><mml:msub><mml:mi>V</mml:mi><mml:mrow><mml:msub><mml:mi>i</mml:mi><mml:mi mathvariant="normal">f</mml:mi></mml:msub><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn><mml:mo>,</mml:mo><mml:msub><mml:mi>j</mml:mi><mml:mi mathvariant="normal">f</mml:mi></mml:msub><mml:mo>-</mml:mo><mml:mstyle scriptlevel="+1"><mml:mfrac><mml:mn mathvariant="normal">3</mml:mn><mml:mn mathvariant="normal">2</mml:mn></mml:mfrac></mml:mstyle><mml:mo>,</mml:mo></mml:mrow></mml:msub><mml:mo>+</mml:mo><mml:msub><mml:mi>V</mml:mi><mml:mrow><mml:msub><mml:mi>i</mml:mi><mml:mi mathvariant="normal">f</mml:mi></mml:msub><mml:mo>,</mml:mo><mml:msub><mml:mi>j</mml:mi><mml:mi mathvariant="normal">f</mml:mi></mml:msub><mml:mo>-</mml:mo><mml:mstyle scriptlevel="+1"><mml:mfrac><mml:mn mathvariant="normal">3</mml:mn><mml:mn mathvariant="normal">2</mml:mn></mml:mfrac></mml:mstyle></mml:mrow></mml:msub><mml:mo>+</mml:mo><mml:msub><mml:mi>V</mml:mi><mml:mrow><mml:msub><mml:mi>i</mml:mi><mml:mi mathvariant="normal">f</mml:mi></mml:msub><mml:mo>+</mml:mo><mml:mn mathvariant="normal">1</mml:mn><mml:mo>,</mml:mo><mml:msub><mml:mi>j</mml:mi><mml:mi mathvariant="normal">f</mml:mi></mml:msub><mml:mo>-</mml:mo><mml:mstyle scriptlevel="+1"><mml:mfrac><mml:mn mathvariant="normal">3</mml:mn><mml:mn mathvariant="normal">2</mml:mn></mml:mfrac></mml:mstyle></mml:mrow></mml:msub></mml:mrow></mml:mfenced></mml:mrow></mml:mtd></mml:mtr></mml:mtable></mml:mfenced><mml:mo>.</mml:mo></mml:mrow></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula>
            Consistent with the average restriction operator for the free surface, the
coarse-grid barotropic transports can then be updated by the relations, as follows:
              <disp-formula id="Ch1.E11" content-type="numbered"><label>11</label><mml:math id="M86" display="block"><mml:mtable rowspacing="0.2ex" class="split" displaystyle="true" columnalign="right left"><mml:mtr><mml:mtd><mml:mrow><mml:msub><mml:mi>U</mml:mi><mml:mrow><mml:msub><mml:mi>i</mml:mi><mml:mi mathvariant="normal">c</mml:mi></mml:msub><mml:mo>+</mml:mo><mml:mstyle scriptlevel="+1"><mml:mfrac><mml:mn mathvariant="normal">1</mml:mn><mml:mn mathvariant="normal">2</mml:mn></mml:mfrac></mml:mstyle><mml:mo>,</mml:mo><mml:msub><mml:mi>j</mml:mi><mml:mi mathvariant="normal">c</mml:mi></mml:msub></mml:mrow></mml:msub></mml:mrow></mml:mtd><mml:mtd><mml:mrow><mml:mo>=</mml:mo><mml:msub><mml:mi>U</mml:mi><mml:mrow><mml:msub><mml:mi>i</mml:mi><mml:mi mathvariant="normal">f</mml:mi></mml:msub><mml:mo>+</mml:mo><mml:mstyle scriptlevel="+1"><mml:mfrac><mml:mn mathvariant="normal">3</mml:mn><mml:mn mathvariant="normal">2</mml:mn></mml:mfrac></mml:mstyle><mml:mo>,</mml:mo><mml:msub><mml:mi>j</mml:mi><mml:mi mathvariant="normal">f</mml:mi></mml:msub><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msub><mml:mo>+</mml:mo><mml:msub><mml:mi>U</mml:mi><mml:mrow><mml:msub><mml:mi>i</mml:mi><mml:mi mathvariant="normal">f</mml:mi></mml:msub><mml:mo>+</mml:mo><mml:mstyle scriptlevel="+1"><mml:mfrac><mml:mn mathvariant="normal">3</mml:mn><mml:mn mathvariant="normal">2</mml:mn></mml:mfrac></mml:mstyle><mml:mo>,</mml:mo><mml:msub><mml:mi>j</mml:mi><mml:mi mathvariant="normal">f</mml:mi></mml:msub></mml:mrow></mml:msub><mml:mo>+</mml:mo><mml:msub><mml:mi>U</mml:mi><mml:mrow><mml:msub><mml:mi>i</mml:mi><mml:mi mathvariant="normal">f</mml:mi></mml:msub><mml:mo>+</mml:mo><mml:mstyle scriptlevel="+1"><mml:mfrac><mml:mn mathvariant="normal">3</mml:mn><mml:mn mathvariant="normal">2</mml:mn></mml:mfrac></mml:mstyle><mml:mo>,</mml:mo><mml:msub><mml:mi>j</mml:mi><mml:mi mathvariant="normal">f</mml:mi></mml:msub><mml:mo>+</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msub></mml:mrow></mml:mtd></mml:mtr><mml:mtr><mml:mtd><mml:mrow><mml:msub><mml:mi>V</mml:mi><mml:mrow><mml:msub><mml:mi>i</mml:mi><mml:mi mathvariant="normal">c</mml:mi></mml:msub><mml:mo>,</mml:mo><mml:msub><mml:mi>j</mml:mi><mml:mi mathvariant="normal">c</mml:mi></mml:msub><mml:mo>+</mml:mo><mml:mstyle scriptlevel="+1"><mml:mfrac><mml:mn mathvariant="normal">1</mml:mn><mml:mn mathvariant="normal">2</mml:mn></mml:mfrac></mml:mstyle><mml:mo>,</mml:mo></mml:mrow></mml:msub></mml:mrow></mml:mtd><mml:mtd><mml:mrow><mml:mo>=</mml:mo><mml:msub><mml:mi>V</mml:mi><mml:mrow><mml:msub><mml:mi>i</mml:mi><mml:mi mathvariant="normal">f</mml:mi></mml:msub><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn><mml:mo>,</mml:mo><mml:msub><mml:mi>j</mml:mi><mml:mi mathvariant="normal">f</mml:mi></mml:msub><mml:mo>+</mml:mo><mml:mstyle scriptlevel="+1"><mml:mfrac><mml:mn mathvariant="normal">3</mml:mn><mml:mn mathvariant="normal">2</mml:mn></mml:mfrac></mml:mstyle><mml:mo>,</mml:mo></mml:mrow></mml:msub><mml:mo>+</mml:mo><mml:msub><mml:mi>V</mml:mi><mml:mrow><mml:msub><mml:mi>i</mml:mi><mml:mi mathvariant="normal">f</mml:mi></mml:msub><mml:mo>,</mml:mo><mml:msub><mml:mi>j</mml:mi><mml:mi mathvariant="normal">f</mml:mi></mml:msub><mml:mo>+</mml:mo><mml:mstyle scriptlevel="+1"><mml:mfrac><mml:mn mathvariant="normal">3</mml:mn><mml:mn mathvariant="normal">2</mml:mn></mml:mfrac></mml:mstyle></mml:mrow></mml:msub><mml:mo>+</mml:mo><mml:msub><mml:mi>V</mml:mi><mml:mrow><mml:msub><mml:mi>i</mml:mi><mml:mi mathvariant="normal">f</mml:mi></mml:msub><mml:mo>+</mml:mo><mml:mn mathvariant="normal">1</mml:mn><mml:mo>,</mml:mo><mml:msub><mml:mi>j</mml:mi><mml:mi mathvariant="normal">f</mml:mi></mml:msub><mml:mo>+</mml:mo><mml:mstyle scriptlevel="+1"><mml:mfrac><mml:mn mathvariant="normal">3</mml:mn><mml:mn mathvariant="normal">2</mml:mn></mml:mfrac></mml:mstyle></mml:mrow></mml:msub><mml:mo>.</mml:mo></mml:mrow></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula>
            This corresponds to <inline-formula><mml:math id="M87" display="inline"><mml:mi>U</mml:mi></mml:math></inline-formula> for an injection in the <inline-formula><mml:math id="M88" display="inline"><mml:mi>x</mml:mi></mml:math></inline-formula> direction and an average
in the <inline-formula><mml:math id="M89" display="inline"><mml:mi>y</mml:mi></mml:math></inline-formula> direction, and vice versa for <inline-formula><mml:math id="M90" display="inline"><mml:mi>V</mml:mi></mml:math></inline-formula>. As a time refinement is
applied, these fluxes have been summed up over the <inline-formula><mml:math id="M91" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">ρ</mml:mi><mml:mi>t</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> fine-grid
time steps.</p>
      <p id="d1e3939">Another crucial point is that the free-surface update using Eq. (9) must
preserve the constancy. If the fine-grid free-surface <inline-formula><mml:math id="M92" display="inline"><mml:mi mathvariant="italic">η</mml:mi></mml:math></inline-formula> is spatially
constant, then the update operator has to preserve this constant. In MARS3D, this is achieved by updating the wet fractions of the coarse grid according to the following:
              <disp-formula id="Ch1.E12" content-type="numbered"><label>12</label><mml:math id="M93" display="block"><mml:mtable class="array" columnalign="left"><mml:mtr><mml:mtd><mml:mrow><mml:msubsup><mml:mi>f</mml:mi><mml:mrow><mml:msub><mml:mi mathvariant="normal">wet</mml:mi><mml:mrow><mml:msub><mml:mi>i</mml:mi><mml:mi mathvariant="normal">c</mml:mi></mml:msub><mml:mo>,</mml:mo><mml:msub><mml:mi>j</mml:mi><mml:mi mathvariant="normal">c</mml:mi></mml:msub></mml:mrow></mml:msub></mml:mrow><mml:mrow><mml:mi>n</mml:mi><mml:mo>+</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msubsup><mml:mo>=</mml:mo><mml:mstyle displaystyle="false"><mml:mstyle displaystyle="false"><mml:mfrac style="text"><mml:mn mathvariant="normal">1</mml:mn><mml:mrow><mml:msub><mml:mi>S</mml:mi><mml:mrow><mml:msub><mml:mi>i</mml:mi><mml:mi mathvariant="normal">c</mml:mi></mml:msub><mml:mo>,</mml:mo><mml:msub><mml:mi>j</mml:mi><mml:mi mathvariant="normal">c</mml:mi></mml:msub></mml:mrow></mml:msub></mml:mrow></mml:mfrac></mml:mstyle></mml:mstyle><mml:munder><mml:mo movablelimits="false">∑</mml:mo><mml:mtable class="array" columnalign="left"><mml:mtr><mml:mtd><mml:mrow><mml:mi>i</mml:mi><mml:mo>=</mml:mo><mml:msub><mml:mi>i</mml:mi><mml:mi mathvariant="normal">f</mml:mi></mml:msub><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn><mml:mo>,</mml:mo><mml:msub><mml:mi>i</mml:mi><mml:mi mathvariant="normal">f</mml:mi></mml:msub><mml:mo>+</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:mtd></mml:mtr><mml:mtr><mml:mtd><mml:mrow><mml:mi>j</mml:mi><mml:mo>=</mml:mo><mml:msub><mml:mi>j</mml:mi><mml:mi mathvariant="normal">f</mml:mi></mml:msub><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn><mml:mo>,</mml:mo><mml:msub><mml:mi>j</mml:mi><mml:mi mathvariant="normal">f</mml:mi></mml:msub><mml:mo>+</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:mtd></mml:mtr></mml:mtable></mml:munder><mml:msub><mml:mi>S</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mo>,</mml:mo><mml:mi>j</mml:mi></mml:mrow></mml:msub><mml:msubsup><mml:mi>f</mml:mi><mml:mrow><mml:msub><mml:mi mathvariant="normal">wet</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mo>,</mml:mo><mml:mi>j</mml:mi></mml:mrow></mml:msub></mml:mrow><mml:mrow><mml:mi>n</mml:mi><mml:mo>+</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msubsup><mml:mspace linebreak="nobreak" width="0.125em"/><mml:mspace linebreak="nobreak" width="0.125em"/><mml:mo>.</mml:mo></mml:mrow></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula>
            Last, in order to keep the constancy preservation, tracer values are updated
with the same update operator as for the free surface. Similarly, the
3D velocities (or, more precisely, the volumetric fluxes) are
updated with the same update operator as for the barotropic velocities. Thus, this update process achieves a perfect mass (water, tracers, etc.) conservation over the refined area of the mother grid. However, the treatments at open boundaries and over child grids that overlap make the global conservation complete for the system defined by the coarse grid, apart from the fine grids plus all the fine grids.</p>
</sec>
<sec id="Ch1.S2.SS2.SSS4">
  <label>2.2.4</label><title>Interactions between child grids</title>
      <p id="d1e4110">In the new release of the MARS3D-AGRIF system, the update procedure is modified so that information from child grids is combined before being sent to the mother grid. This capability is activated as soon as child grids of same hierarchical level overlap. After the numerical integration of each grid, their overlapping zone fields are weighted. The weights are estimated once and for all during the pre-processing phase. Figure 3 illustrates the weight distribution between two child grids at the same hierarchical level over the overlapping area (represented by the red rectangle). The weights are such that they favor (or disfavor) one aspect of the child grid information
over another in regions where its sub-cell is further from (or closer to) the open boundary. Away from the borders, the weights are then balanced between the child grids to obtain a sum of 1. Within a band along the border, the
previously balanced weights between grids are again modified to keep track
of the mother grid information; they decrease from 1 to almost 0 at the open
boundary, which is where the mother information prevails. This procedure allows the child grids to be forced by the same combined information at the next time step. This concerns all the state<?pagebreak page1197?> variable fields, including the sea surface elevation, currents, temperature, salinity and any additional tracers. The recommended size of the area of overlap in one direction is at least 3 times the spatial refinement factor.</p>
      <p id="d1e4113">This functionality is only available with a single magnification level so far. This is a major issue that needs to be addressed for a multiple-level hierarchy approach. This constraint will be adjusted within the next upgrade of the AGRIF library in order to be portable into any numerical models.</p>

      <?xmltex \floatpos{t}?><fig id="Ch1.F4"><?xmltex \currentcnt{4}?><?xmltex \def\figurename{Figure}?><label>Figure 4</label><caption><p id="d1e4118">A coarse-grid cell divided into nine fine-grid cells on a C grid.</p></caption>
            <?xmltex \igopts{width=236.157874pt}?><graphic xlink:href="https://gmd.copernicus.org/articles/16/1191/2023/gmd-16-1191-2023-f04.png"/>

          </fig>

</sec>
</sec>
<sec id="Ch1.S2.SS3">
  <label>2.3</label><title>Parallelization option</title>
      <p id="d1e4136">The MARS3D model and the AGRIF library can be run in sequential, open multiprocessing (OMP), message-passing interface (MPI) or hybrid (based on both MPI and OMP parallelization) modes. The OMP method is based on the classical fine-grain approach, where OMP directives share the work between threads, specifically at DO (in Fortran) directive loops. In order to avoid
the overhead of work sharing, parallelization is done on the <inline-formula><mml:math id="M94" display="inline"><mml:mi>j</mml:mi></mml:math></inline-formula>-column loop, which is the inner index of the 3D variables in MARS3D. For the MPI mode, an optimized domain decomposition is defined before the run to balance the load on the different cores of the cluster. It consists of attributing approximately the same number of wet grid cells to each MPI rank and excluding the land-masked part of the domain. The hybrid computation
combines the MPI (domain decomposition) and OMP (distribution of threads in
Fortran loops inside each MPI domain) parallelizations. It has been
implemented, following the MPI_THREAD_FUNNELED type, where MPI calls are only made outside OMP parallel regions.</p>
      <p id="d1e4146">For a MARS3D-AGRIF configuration with only one child per nesting level, the
mother and child grids are resolved sequentially with the same parallelization option. It is thus recommended to work with grids of approximately the same number of cells to facilitate the cores distribution. In the case of multiple child grids at the same nesting level, the user can
choose between two possibilities for the time integration of the child
grids, i.e., sequentially or simultaneously. The first solution consists of a
sequential integration of each child grid by the set of cores. The second
solution involves a distribution of the MPI cores among all child grids at
the beginning of the simulation. The cores can be assigned between all child
grids or within multiple groups of child grids. The latter option is
favorable when the child grid sizes differ or when the child grids are
much smaller than the mother grid.</p>

      <?xmltex \floatpos{t}?><fig id="Ch1.F5" specific-use="star"><?xmltex \currentcnt{5}?><?xmltex \def\figurename{Figure}?><label>Figure 5</label><caption><p id="d1e4151">A Bay of Biscay configuration with seven magnified views at 500 m resolution (red rectangles). The 2.5 km resolution coarser grid (orange rectangle) is included in a larger 2D model at 5 km resolution (blue rectangle). The sea surface temperature is given for 16 August 2018 with the finest possible resolution. Bathymetric and coastline sources: Ifremer, Service hydrographique et océanographique de la marine (SHOM) and Natural Earth.</p></caption>
          <?xmltex \igopts{width=455.244094pt}?><graphic xlink:href="https://gmd.copernicus.org/articles/16/1191/2023/gmd-16-1191-2023-f05.png"/>

        </fig>

</sec>
<sec id="Ch1.S2.SS4">
  <label>2.4</label><title>Computational cost</title>
      <p id="d1e4168">To evaluate the performance of this implementation, several tests were
performed with the regional and coastal configurations, presented in the
following sections, with classical offline one-way nesting and two-way
nesting. First, the coarser model was run independently over the whole
computation period to obtain information to force the child grid area at an hourly frequency. Second, baroclinic currents, temperature and salinity variables were interpolated horizontally and vertically onto the child grid with an external homemade Fortran tool. For the regional configuration usually composed of seven child grids, only the one focused on the Iroise Sea (see Fig. 5) was kept for this experiment.</p>
      <p id="d1e4171">Table 1 summarizes the computational times for MARS3D one-way classical
offline nesting and MARS3D-AGRIF two-way nesting. For this experiment, the
time integration lasts 45 d. All the simulations were performed on the
Datarmor supercomputer, which is composed of 396 nodes with 28 cores each (<uri>https://www.ifremer.fr/fr/infrastructures-de-recherche/le-supercalculateur-datarmor</uri>, last access: 15 February 2023). Since the computing performance depends on the load of the machine, the computational cost was evaluated from a pool of repeated experiments (five times). For each configuration, the different models (one-way and two-way) were run with the same MPI rank distribution but from two different parallelization methods, namely the classic MPI domain decomposition and the hybrid computation (MPI and OMP) mode.</p>

<?xmltex \floatpos{t}?><table-wrap id="Ch1.T1" specific-use="star"><?xmltex \currentcnt{1}?><label>Table 1</label><caption><p id="d1e4180">Mean computation time given in hours for both modeled
configurations for a simulation of 45 d.</p></caption><oasis:table frame="topbot"><oasis:tgroup cols="7">
     <oasis:colspec colnum="1" colname="col1" align="left"/>
     <oasis:colspec colnum="2" colname="col2" align="left"/>
     <oasis:colspec colnum="3" colname="col3" align="right"/>
     <oasis:colspec colnum="4" colname="col4" align="left"/>
     <oasis:colspec colnum="5" colname="col5" align="left"/>
     <oasis:colspec colnum="6" colname="col6" align="right"/>
     <oasis:colspec colnum="7" colname="col7" align="right"/>
     <oasis:thead>
       <oasis:row>
         <oasis:entry colname="col1">Configuration</oasis:entry>
         <oasis:entry colname="col2">Mode</oasis:entry>
         <oasis:entry colname="col3">Cores</oasis:entry>
         <oasis:entry colname="col4">Distribution</oasis:entry>
         <oasis:entry colname="col5">Scenario</oasis:entry>
         <oasis:entry colname="col6">One-way</oasis:entry>
         <oasis:entry colname="col7">Two-way</oasis:entry>
       </oasis:row>
       <oasis:row rowsep="1">
         <oasis:entry colname="col1"/>
         <oasis:entry colname="col2"/>
         <oasis:entry colname="col3"/>
         <oasis:entry colname="col4"/>
         <oasis:entry colname="col5"/>
         <oasis:entry colname="col6">offline</oasis:entry>
         <oasis:entry colname="col7">online</oasis:entry>
       </oasis:row>
     </oasis:thead>
     <oasis:tbody>
       <oasis:row>
         <oasis:entry colname="col1">Regional</oasis:entry>
         <oasis:entry colname="col2">MPI</oasis:entry>
         <oasis:entry colname="col3">56</oasis:entry>
         <oasis:entry colname="col4">56 MPI ranks</oasis:entry>
         <oasis:entry colname="col5">Hydrodynamic only</oasis:entry>
         <oasis:entry colname="col6">12.0</oasis:entry>
         <oasis:entry colname="col7">15.0</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1">Coastal</oasis:entry>
         <oasis:entry colname="col2">MPI</oasis:entry>
         <oasis:entry colname="col3">112</oasis:entry>
         <oasis:entry colname="col4">112 MPI ranks</oasis:entry>
         <oasis:entry colname="col5">Hydrodynamic only</oasis:entry>
         <oasis:entry colname="col6">13.5</oasis:entry>
         <oasis:entry colname="col7">18.6</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1">Regional</oasis:entry>
         <oasis:entry colname="col2">Hybrid</oasis:entry>
         <oasis:entry colname="col3">448</oasis:entry>
         <oasis:entry colname="col4">56 MPI ranks, with 8 OMP threads each</oasis:entry>
         <oasis:entry colname="col5">Hydrodynamic only</oasis:entry>
         <oasis:entry colname="col6">2.9</oasis:entry>
         <oasis:entry colname="col7">4.3</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1">Coastal</oasis:entry>
         <oasis:entry colname="col2">Hybrid</oasis:entry>
         <oasis:entry colname="col3">336</oasis:entry>
         <oasis:entry colname="col4">48 MPI ranks, with 7 OMP threads each</oasis:entry>
         <oasis:entry colname="col5">Hydrodynamic and</oasis:entry>
         <oasis:entry colname="col6">21.1</oasis:entry>
         <oasis:entry colname="col7">29.2</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"/>
         <oasis:entry colname="col2"/>
         <oasis:entry colname="col3"/>
         <oasis:entry colname="col4"/>
         <oasis:entry colname="col5">13 passive tracers</oasis:entry>
         <oasis:entry colname="col6"/>
         <oasis:entry colname="col7"/>
       </oasis:row>
     </oasis:tbody>
   </oasis:tgroup></oasis:table></table-wrap>

      <p id="d1e4374">For both configurations, the computation time is increased by one-third for
the AGRIF configuration compared to the classical offline one-way nesting. This difference is explained by two extra steps performed by the AGRIF library, i.e., the spatial interpolation to prepare the fine-grid boundary
conditions and the update process from the fine grid to the coarse one. It
is worth noticing that the handling time of the 3D output files and the waiting time due to the activity on Datarmor were not included in the one-way
nesting duration. Their introduction would decrease the difference,
especially if several magnifications are implemented.</p>
      <p id="d1e4377">As shown with the regional example, using hybrid parallelization with 8
times more computational resources than<?pagebreak page1198?> with MPI decreases the decreases the total time by 4 times. The hybrid mode is an efficient way to require more resources without considering the domain decomposition in complex geographic areas. Finally, the advection–diffusion evolution of 13 passive tracers in the coastal configuration is another example in which the hybrid mode makes it possible to achieve reasonable calculation times.</p>
</sec>
</sec>
<sec id="Ch1.S3">
  <label>3</label><title>Systematic refinement of the coastal zone: paving the French Atlantic coast within a regional configuration</title>
<sec id="Ch1.S3.SS1">
  <label>3.1</label><title>Bay of Biscay configuration</title>
      <p id="d1e4396">The MARS3D model has already been used to investigate the Bay of Biscay and
its extension to the western English Channel (Huret et al., 2013; Lazure et
al., 2009). Here, the MARS3D-AGRIF capability is implemented along the
northwestern European continental shelf. Figure 5 shows how the AGRIF skill is used to pave the coastline from<?pagebreak page1199?> Spain to Belgium with overlapping grids. Seven 500 m resolution magnifications of approximately the same grid size are embedded into a coarser 2.5 km resolution grid. A total of  40 generalized <inline-formula><mml:math id="M95" display="inline"><mml:mi mathvariant="italic">σ</mml:mi></mml:math></inline-formula> layers discretize the vertical axis with a stretching function that induces refinement above 150 m depth next to the surface. Even though the space-refinement factor is 5, the time refinement is adapted according to the maximum velocity encountered within each grid. It is either a factor of 3 (over areas with relatively slow flows) or 5 (in very energetic areas such as the middle of the English Channel). Similarly, the turbulent viscosity coefficient (Laplacian operator) differs between each magnification and ranges from 0.5
up to 3 m<inline-formula><mml:math id="M96" display="inline"><mml:msup><mml:mi/><mml:mn mathvariant="normal">2</mml:mn></mml:msup></mml:math></inline-formula> s<inline-formula><mml:math id="M97" display="inline"><mml:msup><mml:mi/><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msup></mml:math></inline-formula>. At the surface, Météo-France atmospheric
forcings drive the dynamics, with an ARPEGE (Action de Recherche Petite Echelle Grande Echelle) high-resolution (0.1<inline-formula><mml:math id="M98" display="inline"><mml:msup><mml:mi/><mml:mo>∘</mml:mo></mml:msup></mml:math></inline-formula>; hourly) analysis for the coarser grid and AROME (Application of Research to Operations at Mesoscale; 2.5 km; hourly) analysis  or the child grids. The main hydrological runoffs are set in the magnifications (96 rivers). They come from different source databases (Spanish, English, French and Dutch). At the open boundaries of the coarse grid, daily temperature and salinity conditions are provided by the Mercator PSY2V4 re-analysis. The tidal signal is issued from a larger 2D model (5 km
resolution) forced by the FES2014 (finite element solution) ocean tide atlas with 14 harmonic constituents (Lyard et al., 2021). The sea level is imposed,  while a zero gradient condition is applied to normal and tangential currents.</p>
      <p id="d1e4436">A realistic two-way hindcast has been realized over the period 2010–2019. To
demonstrate and characterize AGRIF nesting benefits, a one-way configuration
has been run on the Iroise grid over the years 2017–2018 as a reference.
These 2 common years have been selected from the available datasets for
several validation parameters (detailed in Appendix A). A 3-month spin-up was
performed for each hindcast. The forcing and parameterization of the offline
one-way hindcast are those used in the two-way configuration, apart from the
tidal sea level signal, which comes from the 112 harmonic components of the
SHOM CST France model (le Roy and Simon, 2003). The temperature and salinity
open-boundary conditions come from the above mother grid integrated without
child grids. This tidal model has been accurately validated throughout the
French tidal gauge network of RONIM.</p>
</sec>
<sec id="Ch1.S3.SS2">
  <label>3.2</label><title>Hydrodynamic impact over open boundary conditions</title>
      <p id="d1e4447">The tidal signal (extracted from the Iroise 500 m grid) is compared to hourly validated data of four tidal gauges available in the studied area. The main statistics are estimated over 1 year and given in Table 2. The tide
modeled with the two-way technique is slightly less precise than with the
one-way simulation. It is especially true at the northeastern boundary, at
Roscoff, where the RMSE is twice as large. On the opposite side, at the southern boundary, at Concarneau, the differences are in favor of the two-way
nesting.</p>

<?xmltex \floatpos{t}?><table-wrap id="Ch1.T2" specific-use="star"><?xmltex \currentcnt{2}?><label>Table 2</label><caption><p id="d1e4453">Comparison of the sea surface elevation between the MARS3D one-way (roman font) and MARS3D-AGRIF two-way (bold font) for the Iroise magnification (500 m horizontal resolution), compared to the RONIM tidal gauges.</p></caption><oasis:table frame="topbot"><oasis:tgroup cols="5">
     <oasis:colspec colnum="1" colname="col1" align="left"/>
     <oasis:colspec colnum="2" colname="col2" align="right"/>
     <oasis:colspec colnum="3" colname="col3" align="right"/>
     <oasis:colspec colnum="4" colname="col4" align="right"/>
     <oasis:colspec colnum="5" colname="col5" align="right"/>
     <oasis:thead>
       <oasis:row rowsep="1">
         <oasis:entry colname="col1"/>
         <oasis:entry colname="col2">Roscoff</oasis:entry>
         <oasis:entry colname="col3">Le Conquet</oasis:entry>
         <oasis:entry colname="col4">Brest</oasis:entry>
         <oasis:entry colname="col5">Concarneau</oasis:entry>
       </oasis:row>
     </oasis:thead>
     <oasis:tbody>
       <oasis:row>
         <oasis:entry colname="col1">Normalize standard</oasis:entry>
         <oasis:entry colname="col2">1.022</oasis:entry>
         <oasis:entry colname="col3">1.010</oasis:entry>
         <oasis:entry colname="col4">0.988</oasis:entry>
         <oasis:entry colname="col5">1.029</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1">deviation (%)</oasis:entry>
         <oasis:entry colname="col2"><bold>0.969</bold></oasis:entry>
         <oasis:entry colname="col3"><bold>1.004</bold></oasis:entry>
         <oasis:entry colname="col4"><bold>0.990</bold></oasis:entry>
         <oasis:entry colname="col5"><bold>1.024</bold></oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1">Root mean</oasis:entry>
         <oasis:entry colname="col2">9.3</oasis:entry>
         <oasis:entry colname="col3">7.2</oasis:entry>
         <oasis:entry colname="col4">10.5</oasis:entry>
         <oasis:entry colname="col5">7.9</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1">square error (cm)</oasis:entry>
         <oasis:entry colname="col2"><bold>18.7</bold></oasis:entry>
         <oasis:entry colname="col3"><bold>9.4</bold></oasis:entry>
         <oasis:entry colname="col4"><bold>12.2</bold></oasis:entry>
         <oasis:entry colname="col5"><bold>6.4</bold></oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1">Pearson correlation</oasis:entry>
         <oasis:entry colname="col2">0.999</oasis:entry>
         <oasis:entry colname="col3">0.999</oasis:entry>
         <oasis:entry colname="col4">0.998</oasis:entry>
         <oasis:entry colname="col5">0.998</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1">coefficient ( %)</oasis:entry>
         <oasis:entry colname="col2"><bold>0.985</bold></oasis:entry>
         <oasis:entry colname="col3"><bold>0.993</bold></oasis:entry>
         <oasis:entry colname="col4"><bold>0.990</bold></oasis:entry>
         <oasis:entry colname="col5"><bold>0.995</bold></oasis:entry>
       </oasis:row>
     </oasis:tbody>
   </oasis:tgroup></oasis:table></table-wrap>

      <p id="d1e4616">To observe the influence of the tide propagation, the signal modeled by
Iroise magnification is compared to the PREVIMER harmonic component atlas. This atlas was built upon a series of barotropic simulations at 250 m horizontal resolution and validated with the RONIM network (Pineau-Guillou, 2013). A harmonic decomposition was applied to each hourly time series extracted from the hindcasts covering an entire year. Table 3 compares the wave elevations for the waves M2, S2, O1 and K1 at four locations in the Iroise Sea. Both models are in fairly good agreement with the reference atlas. The main difference is found for the wave K1 and MARS3D-AGRIF two-way configuration. The wave K1 is over-estimated by 20 % for the relative difference, but the amplitude itself differs by less than 2 cm.</p>

<?xmltex \floatpos{t}?><table-wrap id="Ch1.T3" specific-use="star"><?xmltex \currentcnt{3}?><label>Table 3</label><caption><p id="d1e4623">Comparison of the wave elevation amplitudes between MARS3D one-way
(roman font) and MARS3D-AGRIF two-way (bold font) for the Iroise magnification (500 m horizontal resolution). The model amplitudes are given in centimeters, with the relative difference between model and observation given in percent.</p></caption><oasis:table frame="topbot"><oasis:tgroup cols="5">
     <oasis:colspec colnum="1" colname="col1" align="left"/>
     <oasis:colspec colnum="2" colname="col2" align="right"/>
     <oasis:colspec colnum="3" colname="col3" align="right"/>
     <oasis:colspec colnum="4" colname="col4" align="right"/>
     <oasis:colspec colnum="5" colname="col5" align="right"/>
     <oasis:thead>
       <oasis:row rowsep="1">
         <oasis:entry colname="col1"/>
         <oasis:entry colname="col2">M2</oasis:entry>
         <oasis:entry colname="col3">S2</oasis:entry>
         <oasis:entry colname="col4">O1</oasis:entry>
         <oasis:entry colname="col5">K1</oasis:entry>
       </oasis:row>
     </oasis:thead>
     <oasis:tbody>
       <oasis:row>
         <oasis:entry colname="col1">Point 1</oasis:entry>
         <oasis:entry colname="col2">201.3 (<inline-formula><mml:math id="M99" display="inline"><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">3</mml:mn><mml:mspace linebreak="nobreak" width="0.125em"/><mml:mi mathvariant="italic">%</mml:mi></mml:mrow></mml:math></inline-formula>)</oasis:entry>
         <oasis:entry colname="col3">73.4 (<inline-formula><mml:math id="M100" display="inline"><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">2</mml:mn><mml:mspace width="0.125em" linebreak="nobreak"/><mml:mi mathvariant="italic">%</mml:mi></mml:mrow></mml:math></inline-formula>)</oasis:entry>
         <oasis:entry colname="col4">7.0 (<inline-formula><mml:math id="M101" display="inline"><mml:mrow><mml:mo>+</mml:mo><mml:mn mathvariant="normal">9</mml:mn><mml:mspace linebreak="nobreak" width="0.125em"/><mml:mi mathvariant="italic">%</mml:mi></mml:mrow></mml:math></inline-formula>)</oasis:entry>
         <oasis:entry colname="col5">7.5 (<inline-formula><mml:math id="M102" display="inline"><mml:mrow><mml:mo>+</mml:mo><mml:mn mathvariant="normal">9</mml:mn><mml:mspace width="0.125em" linebreak="nobreak"/><mml:mi mathvariant="italic">%</mml:mi></mml:mrow></mml:math></inline-formula>)</oasis:entry>
       </oasis:row>
       <oasis:row rowsep="1">
         <oasis:entry colname="col1">5.27<inline-formula><mml:math id="M103" display="inline"><mml:msup><mml:mi/><mml:mo>∘</mml:mo></mml:msup></mml:math></inline-formula> W–48.7<inline-formula><mml:math id="M104" display="inline"><mml:msup><mml:mi/><mml:mo>∘</mml:mo></mml:msup></mml:math></inline-formula> N</oasis:entry>
         <oasis:entry colname="col2"><bold>198.8</bold> (<inline-formula><mml:math id="M105" display="inline"><mml:mo lspace="0mm">-</mml:mo></mml:math></inline-formula><bold>4 %</bold>)</oasis:entry>
         <oasis:entry colname="col3"><bold>74.0</bold> (<inline-formula><mml:math id="M106" display="inline"><mml:mo lspace="0mm">-</mml:mo></mml:math></inline-formula><bold>1 %</bold>)</oasis:entry>
         <oasis:entry colname="col4"><bold>6.0</bold> (<inline-formula><mml:math id="M107" display="inline"><mml:mo lspace="0mm">-</mml:mo></mml:math></inline-formula><bold>2 %</bold>)</oasis:entry>
         <oasis:entry colname="col5"><bold>8.8</bold> (<inline-formula><mml:math id="M108" display="inline"><mml:mo lspace="0mm">+</mml:mo></mml:math></inline-formula><bold>29 %</bold>)</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1">Point 2</oasis:entry>
         <oasis:entry colname="col2">169.2 (<inline-formula><mml:math id="M109" display="inline"><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn><mml:mspace linebreak="nobreak" width="0.125em"/><mml:mi mathvariant="italic">%</mml:mi></mml:mrow></mml:math></inline-formula>)</oasis:entry>
         <oasis:entry colname="col3">63.8 (<inline-formula><mml:math id="M110" display="inline"><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn><mml:mspace width="0.125em" linebreak="nobreak"/><mml:mi mathvariant="italic">%</mml:mi></mml:mrow></mml:math></inline-formula>)</oasis:entry>
         <oasis:entry colname="col4">7.0 (<inline-formula><mml:math id="M111" display="inline"><mml:mrow><mml:mo>+</mml:mo><mml:mn mathvariant="normal">6</mml:mn><mml:mspace width="0.125em" linebreak="nobreak"/><mml:mi mathvariant="italic">%</mml:mi></mml:mrow></mml:math></inline-formula>)</oasis:entry>
         <oasis:entry colname="col5">7.0 (<inline-formula><mml:math id="M112" display="inline"><mml:mrow><mml:mo>+</mml:mo><mml:mn mathvariant="normal">5</mml:mn><mml:mspace width="0.125em" linebreak="nobreak"/><mml:mi mathvariant="italic">%</mml:mi></mml:mrow></mml:math></inline-formula>)</oasis:entry>
       </oasis:row>
       <oasis:row rowsep="1">
         <oasis:entry colname="col1">5.27<inline-formula><mml:math id="M113" display="inline"><mml:msup><mml:mi/><mml:mo>∘</mml:mo></mml:msup></mml:math></inline-formula> W–48.48<inline-formula><mml:math id="M114" display="inline"><mml:msup><mml:mi/><mml:mo>∘</mml:mo></mml:msup></mml:math></inline-formula> N</oasis:entry>
         <oasis:entry colname="col2"><bold>170.3</bold> (<inline-formula><mml:math id="M115" display="inline"><mml:mo lspace="0mm">-</mml:mo></mml:math></inline-formula><bold>1 %</bold>)</oasis:entry>
         <oasis:entry colname="col3"><bold>63.0</bold> (<inline-formula><mml:math id="M116" display="inline"><mml:mo lspace="0mm">-</mml:mo></mml:math></inline-formula><bold>1 %</bold>)</oasis:entry>
         <oasis:entry colname="col4"><bold>6.4</bold> (<inline-formula><mml:math id="M117" display="inline"><mml:mo lspace="0mm">-</mml:mo></mml:math></inline-formula><bold>1 %</bold>)</oasis:entry>
         <oasis:entry colname="col5"><bold>8.4</bold> (<inline-formula><mml:math id="M118" display="inline"><mml:mo lspace="0mm">+</mml:mo></mml:math></inline-formula><bold>27 %</bold>)</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1">Point 3</oasis:entry>
         <oasis:entry colname="col2">179.1 (<inline-formula><mml:math id="M119" display="inline"><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">2</mml:mn><mml:mspace width="0.125em" linebreak="nobreak"/><mml:mi mathvariant="italic">%</mml:mi></mml:mrow></mml:math></inline-formula>)</oasis:entry>
         <oasis:entry colname="col3">65.6 (<inline-formula><mml:math id="M120" display="inline"><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">2</mml:mn><mml:mspace width="0.125em" linebreak="nobreak"/><mml:mi mathvariant="italic">%</mml:mi></mml:mrow></mml:math></inline-formula>)</oasis:entry>
         <oasis:entry colname="col4">7.0 (<inline-formula><mml:math id="M121" display="inline"><mml:mrow><mml:mo>+</mml:mo><mml:mn mathvariant="normal">9</mml:mn><mml:mspace width="0.125em" linebreak="nobreak"/><mml:mi mathvariant="italic">%</mml:mi></mml:mrow></mml:math></inline-formula>)</oasis:entry>
         <oasis:entry colname="col5">7.0 (<inline-formula><mml:math id="M122" display="inline"><mml:mrow><mml:mo>+</mml:mo><mml:mn mathvariant="normal">13</mml:mn><mml:mspace linebreak="nobreak" width="0.125em"/><mml:mi mathvariant="italic">%</mml:mi></mml:mrow></mml:math></inline-formula>)</oasis:entry>
       </oasis:row>
       <oasis:row rowsep="1">
         <oasis:entry colname="col1">5.5<inline-formula><mml:math id="M123" display="inline"><mml:msup><mml:mi/><mml:mo>∘</mml:mo></mml:msup></mml:math></inline-formula> W–48.3<inline-formula><mml:math id="M124" display="inline"><mml:msup><mml:mi/><mml:mo>∘</mml:mo></mml:msup></mml:math></inline-formula> N</oasis:entry>
         <oasis:entry colname="col2"><bold>180.0</bold> (<inline-formula><mml:math id="M125" display="inline"><mml:mo lspace="0mm">-</mml:mo></mml:math></inline-formula><bold>2 %</bold>)</oasis:entry>
         <oasis:entry colname="col3"><bold>66.51</bold> (<inline-formula><mml:math id="M126" display="inline"><mml:mo lspace="0mm">-</mml:mo></mml:math></inline-formula><bold>1 %</bold>)</oasis:entry>
         <oasis:entry colname="col4"><bold>6.5</bold> (<inline-formula><mml:math id="M127" display="inline"><mml:mo lspace="0mm">-</mml:mo></mml:math></inline-formula><bold>2 %</bold>)</oasis:entry>
         <oasis:entry colname="col5"><bold>8.5</bold> (<inline-formula><mml:math id="M128" display="inline"><mml:mo lspace="0mm">+</mml:mo></mml:math></inline-formula><bold>36 %</bold>)</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1">Point 4</oasis:entry>
         <oasis:entry colname="col2">192.2 (<inline-formula><mml:math id="M129" display="inline"><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">2</mml:mn><mml:mspace linebreak="nobreak" width="0.125em"/><mml:mi mathvariant="italic">%</mml:mi></mml:mrow></mml:math></inline-formula>)</oasis:entry>
         <oasis:entry colname="col3">72.1 (<inline-formula><mml:math id="M130" display="inline"><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn><mml:mspace linebreak="nobreak" width="0.125em"/><mml:mi mathvariant="italic">%</mml:mi></mml:mrow></mml:math></inline-formula>)</oasis:entry>
         <oasis:entry colname="col4">7.0 (<inline-formula><mml:math id="M131" display="inline"><mml:mrow><mml:mo>+</mml:mo><mml:mn mathvariant="normal">5</mml:mn><mml:mspace linebreak="nobreak" width="0.125em"/><mml:mi mathvariant="italic">%</mml:mi></mml:mrow></mml:math></inline-formula>)</oasis:entry>
         <oasis:entry colname="col5">7.3 (<inline-formula><mml:math id="M132" display="inline"><mml:mrow><mml:mo>+</mml:mo><mml:mn mathvariant="normal">5</mml:mn><mml:mspace linebreak="nobreak" width="0.125em"/><mml:mi mathvariant="italic">%</mml:mi></mml:mrow></mml:math></inline-formula>)</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1">4.7<inline-formula><mml:math id="M133" display="inline"><mml:msup><mml:mi/><mml:mo>∘</mml:mo></mml:msup></mml:math></inline-formula> W–48.3<inline-formula><mml:math id="M134" display="inline"><mml:msup><mml:mi/><mml:mo>∘</mml:mo></mml:msup></mml:math></inline-formula> N</oasis:entry>
         <oasis:entry colname="col2"><bold>192.3</bold> (<inline-formula><mml:math id="M135" display="inline"><mml:mo lspace="0mm">-</mml:mo></mml:math></inline-formula><bold>2 %</bold>)</oasis:entry>
         <oasis:entry colname="col3"><bold>72.3</bold> (<inline-formula><mml:math id="M136" display="inline"><mml:mo lspace="0mm">-</mml:mo></mml:math></inline-formula><bold>1 %</bold>)</oasis:entry>
         <oasis:entry colname="col4"><bold>6.0</bold> (<inline-formula><mml:math id="M137" display="inline"><mml:mo lspace="0mm">-</mml:mo></mml:math></inline-formula><bold>6 %</bold>)</oasis:entry>
         <oasis:entry colname="col5"><bold>8.4</bold> (<inline-formula><mml:math id="M138" display="inline"><mml:mo lspace="0mm">+</mml:mo></mml:math></inline-formula><bold>21 %</bold>)</oasis:entry>
       </oasis:row>
     </oasis:tbody>
   </oasis:tgroup></oasis:table></table-wrap>

      <p id="d1e5266">A similar comparison has also been done for the barotropic currents. The
differences are higher for the minor waves of O1 and K1. They reach up to 5 cm s<inline-formula><mml:math id="M139" display="inline"><mml:msup><mml:mi/><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msup></mml:math></inline-formula> and 30 % in relative difference at some locations (not shown). However, the validation of the PREVIMER atlas currents was not available all over the area, due to a lack of long time series data for the French coast. Barotropic currents have therefore been compared to different available Acoustic Doppler Current Profile (ADCP) datasets recorded in the bay of Brest or Molène archipelago over shallow waters. No significant difference has been found between nesting techniques.</p>

      <?xmltex \floatpos{t}?><fig id="Ch1.F6" specific-use="star"><?xmltex \currentcnt{6}?><?xmltex \def\figurename{Figure}?><label>Figure 6</label><caption><p id="d1e5283">Temperature <bold>(a)</bold> and salinity <bold>(b)</bold> validation for both configurations. The Taylor diagrams are represented with the relative standard deviation (dashed blue lines), correlation (dashed green lines) and relative root mean square error (dashed red lines).</p></caption>
          <?xmltex \igopts{width=455.244094pt}?><graphic xlink:href="https://gmd.copernicus.org/articles/16/1191/2023/gmd-16-1191-2023-f06.png"/>

        </fig>

</sec>
<sec id="Ch1.S3.SS3">
  <label>3.3</label><title>Hydrologic validation</title>
      <p id="d1e5306">A detailed qualification of the regional Bay of Biscay configuration has
been done by Bezaud and Pineau-Guillou (2015). It highlighted the
enhancements in predictions with increasing resolution in the coastal areas
where the 500 m magnification models have been implemented. These comparisons have been made against coarser models. As expected, the authors concluded that a finer resolution allows the model to simulate the small-scale structures (instabilities of the front, eddies, filaments, etc.) accurately.</p>
      <p id="d1e5309">Here, the two-way versus one-way nesting is evaluated over 2017–2018. The
evaluation focuses on the Iroise Sea magnification with different mooring stations (see the black points in Figs. 5 and 8). Figure 6 displays Taylor diagrams for temperature and salinity. A third diagram represents the bias values and root mean squared errors (RMSEs). These graphs summarize the comparisons between the available datasets (see Appendix A) and both nesting
methods.</p>
      <p id="d1e5312">The nesting impact is not homogenous all over the domain. First, the two-way
nesting technique improves the model's overall performance compared to
oceanic datasets (see the green points for one-way and yellow points for
two-way configurations). The simulated temperature offsets are noticeably reduced. The primary favorable impact is the drop in the root mean square error by 0.4 <inline-formula><mml:math id="M140" display="inline"><mml:msup><mml:mi/><mml:mo>∘</mml:mo></mml:msup></mml:math></inline-formula>C for the COAST-HF-MAREL-Iroise buoy (where COAST-HF is Coastal Ocean<?pagebreak page1200?> Observing System – High Frequency). For salinity comparisons, the RMSE and the bias are of the same order of magnitude. The significant improvement relies on the enhancement of correlation for the COAST-HF-ASTAN dataset. This could be due to the proximity of this point to the eastern border of the magnification. The update capability of AGRIF two-way
enables more realistic incoming fluxes at a high temporal resolution. The
relative standard deviation of the simulated salinity at the MAREL-Iroise buoy is also considerably reduced.</p>

      <?xmltex \floatpos{t}?><fig id="Ch1.F7" specific-use="star"><?xmltex \currentcnt{7}?><?xmltex \def\figurename{Figure}?><label>Figure 7</label><caption><p id="d1e5327">Sea surface temperature over the Iroise Sea on 15 August 2016 for Landsat 8 <bold>(a)</bold>, ODYSSEA <bold>(b)</bold>, a one-way  simulation <bold>(c)</bold> and a two-way simulation <bold>(d)</bold>. Coastline source: SHOM.</p></caption>
          <?xmltex \igopts{width=426.791339pt}?><graphic xlink:href="https://gmd.copernicus.org/articles/16/1191/2023/gmd-16-1191-2023-f07.png"/>

        </fig>

</sec>
<sec id="Ch1.S3.SS4">
  <label>3.4</label><title>Focus on particular processes</title>
      <p id="d1e5356">In the Iroise Sea during the summer, the Ushant front is depicted by cold
water of about 14 <inline-formula><mml:math id="M141" display="inline"><mml:msup><mml:mi/><mml:mo>∘</mml:mo></mml:msup></mml:math></inline-formula>C. Over shallow depths, the tidal currents are
intensified and very strong around Ushant and the Molène archipelago. The
induced tidal stirring is so large that waters are mixed (and homogeneous)
from the sea surface to the bottom. Further offshore, the summer
stratification can develop, and the sea surface is warmer (above
18 <inline-formula><mml:math id="M142" display="inline"><mml:msup><mml:mi/><mml:mo>∘</mml:mo></mml:msup></mml:math></inline-formula>C). This phenomenon can be seen from satellite data on 15 August 2016 (Fig. 7) for both Landsat 8 and ODYSSEA products (described in Appendix A). Compared to ODYSSEA, the Landsat surface temperature is overestimated in different spots near the coast, in the bay of Brest, for example, with values over 20 <inline-formula><mml:math id="M143" display="inline"><mml:msup><mml:mi/><mml:mo>∘</mml:mo></mml:msup></mml:math></inline-formula>C which might be due to mis-flagged clouds.</p>
      <p id="d1e5386">The ability of the two-way nesting approach (Fig. 7d) to correctly reproduce this spatial feature is evident, while the one-way nesting (Fig. 7c)
struggles to simulate this phenomenon. Indeed, the Ushant front is nearly
missing in the one-way simulation. It is much better characterized in the
two-way simulation at 5.25<inline-formula><mml:math id="M144" display="inline"><mml:msup><mml:mi/><mml:mo>∘</mml:mo></mml:msup></mml:math></inline-formula> W, with more realistic temperature
magnitudes on each side of the front, thanks to the AGRIF update. Furthermore, the realism of the sub-mesoscale structures around the shoals
of Sein Island (Île de Sein) and in the Molène archipelago is improved. On the other hand, one can notice the open-boundary effect in the southern part of the one-way simulation, where an east–west temperature front is created. It is related to the upwind scheme applied to temperature and salinity open-boundary conditions (i.e., applying an external value when the water mass enters the domain).</p>
      <p id="d1e5398">For wide-open areas such as the Iroise Sea, the benefit of the
feedback or update of the magnification not only contributes to the correct representation of the thermic Ushant front, mainly by enlarging the span of the scale captured (e.g., fine eddies and filaments), which is expected, but also in terms of the horizontal localization of thermal front, which is less expected. As a matter of fact, the forcing through the open boundaries is of primary importance for limited area models; it may dramatically impact the local coastal processes, even in areas where the dynamics are highly controlled by large scales such as the tidal forcing. Even though<?pagebreak page1201?> the tidal signal is better represented with the one-way nesting (due to the CST France model), the upwind scheme applied for tracers at open boundaries is not accurate enough for hourly heat exchanges. The chosen simulated domain is not large enough for one-way nesting to reproduce a sharp temperature front.</p>

      <?xmltex \floatpos{t}?><fig id="Ch1.F8" specific-use="star"><?xmltex \currentcnt{8}?><?xmltex \def\figurename{Figure}?><label>Figure 8</label><caption><p id="d1e5404">The bay of Brest configuration. The geographic extent of the magnified grid at 50 m resolution is the solid red rectangle. The coarser grid at 250 m resolution is the dashed red rectangle. The dashed blue line represents the control volume used for the estimation of the renewal indicator. Bathymetric and coastline sources: Ifremer SHOM.</p></caption>
          <?xmltex \igopts{width=426.791339pt}?><graphic xlink:href="https://gmd.copernicus.org/articles/16/1191/2023/gmd-16-1191-2023-f08.png"/>

        </fig>

</sec>
</sec>
<sec id="Ch1.S4">
  <label>4</label><title>Highlighting the benefit of a two-way conservative approach: estimating renewal time over a coastal area</title>
<sec id="Ch1.S4.SS1">
  <label>4.1</label><title>Bay of Brest configuration</title>
      <p id="d1e5430">The bay of Brest is a semi-enclosed, macro-tidal ecosystem located at the
western end of Brittany (France), covering more than 180 km<inline-formula><mml:math id="M145" display="inline"><mml:msup><mml:mi/><mml:mn mathvariant="normal">2</mml:mn></mml:msup></mml:math></inline-formula>. It is
connected to the Iroise Sea through a 1.8 km wide by 6 km long and roughly
50 m deep inlet (called the Goulet de Brest). Due to its complex geometry
and topography, the currents are strong, but relatively well<?pagebreak page1202?> known, and have been the focus of many previous studies. A dominant semi-diurnal tide characterizes this area, with a tidal range of 1.2 to 7.3 m. The tidal currents peak up to 3 m s<inline-formula><mml:math id="M146" display="inline"><mml:msup><mml:mi/><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msup></mml:math></inline-formula> in the Goulet and are in quadrature phase relative to the surface elevation (Petton et al., 2020). The mean volume at mid-tide inside the bay is roughly <inline-formula><mml:math id="M147" display="inline"><mml:mrow><mml:mn mathvariant="normal">2</mml:mn><mml:mspace width="0.25em" linebreak="nobreak"/><mml:mo>×</mml:mo><mml:mspace linebreak="nobreak" width="0.25em"/><mml:msup><mml:mn mathvariant="normal">10</mml:mn><mml:mn mathvariant="normal">7</mml:mn></mml:msup></mml:mrow></mml:math></inline-formula> m<inline-formula><mml:math id="M148" display="inline"><mml:msup><mml:mi/><mml:mn mathvariant="normal">3</mml:mn></mml:msup></mml:math></inline-formula>. As its average depth is only 8 m, the back-and-forth flow for each tide prevents stratification nearly everywhere (Le Pape and Menesguen, 1997). The tidal prism is 25 % of the mean volume in neap tide and 60 % in spring tide. Freshwater runoffs, mainly coming from the Aulne river, modify the hydrology locally (Auffret, 1983).</p>
      <p id="d1e5480">The MARS3D-AGRIF model has been set up over the Iroise Sea  (47.74–48.82<inline-formula><mml:math id="M149" display="inline"><mml:msup><mml:mi/><mml:mo>∘</mml:mo></mml:msup></mml:math></inline-formula> N; 4.08–5.55<inline-formula><mml:math id="M150" display="inline"><mml:msup><mml:mi/><mml:mo>∘</mml:mo></mml:msup></mml:math></inline-formula> W) with a horizontal grid resolution of 250 m. As shown in Fig. 8, a magnification over the bay of Brest (48.20–48.44<inline-formula><mml:math id="M151" display="inline"><mml:msup><mml:mi/><mml:mo>∘</mml:mo></mml:msup></mml:math></inline-formula> N; 4.09–4.72<inline-formula><mml:math id="M152" display="inline"><mml:msup><mml:mi/><mml:mo>∘</mml:mo></mml:msup></mml:math></inline-formula> W) is introduced, with a resolution of 50 m. The time and space refinement factors are both equal to 5. The vertical discretization is performed with 20 equidistant <inline-formula><mml:math id="M153" display="inline"><mml:mi mathvariant="italic">σ</mml:mi></mml:math></inline-formula> layers in both grids. The bathymetries have been interpolated from a combination of digital terrain models (SHOM, Ifremer, and IGN, the French National Institute of Geography and Forestry). This Iroise model is forced by harmonic components from the SHOM CST France atlas (le Roy and Simon, 2003). The 3D open-boundary conditions for baroclinic currents, temperature and salinity are imposed at an hourly frequency from a hindcast of the previous regional configuration (Caillaud et al., 2016). Freshwater inputs for the four main rivers in the<?pagebreak page1203?> bay have been taken from the French HYDRO database (<uri>http://www.hydro.eaufrance.fr/</uri>, last access: 15 February 2023) and corrected with corresponding watershed surface rates. The atmospheric forcings rely on the Météo-France AROME (2.5 km; hourly) analysis. The configuration is available from Petton and Dumas (2022a), along with a detailed description of the physical and numerical parameterizations.</p>
</sec>
<sec id="Ch1.S4.SS2">
  <label>4.2</label><title>Hydrologic validation</title>
      <p id="d1e5538">Two realistic hindcasts have been run from 2017 to 2019 for both one-way and
two-way nesting techniques. Previous studies have already validated the
coastal bay of Brest one-way configuration in detail (Petton et al., 2020;
Frère et al., 2017). In fact, the large-scale features of the macro-tidal flow are easily captured (Petton et al., 2020) in such a semi-enclosed area. And, due to high turbulent mixing in the area, the dynamics are less sensitive to boundary effects. Consequently, the two-way nesting technique barely enhances the results. The tidal features are the same (not shown), while the hydrology is slightly modified (blue and red points for one-way and two-way nesting, respectively, in Fig. 6). Indeed, the two-way nesting reduces the bias in temperature. The feedback, which enables a more accurate global temperature budget in the mother grid, could explain this improvement. Moreover, the two-way technique reduces the relative standard deviation in salinity for the MAREL-Iroise and ECOSCOPA datasets. As the water runoffs are identical, this amelioration might be hard to explain. Nevertheless, it may result in a better simulation of current flows, according to nonlinear effects.</p>
</sec>
<sec id="Ch1.S4.SS3">
  <label>4.3</label><title>Timescale indicator</title>
      <p id="d1e5549">As the shallow ocean is subject to considerable environmental and anthropogenic pressures, the fate of coastal waters is a key to environmental, ecological and economic issues. Therefore, global and local indicators are crucial for stakeholders to anticipate the spread of different materials such as oil (Jordi et al., 2006), micro-plastics (Frère et al., 2017), biogeochemical processes due to nutrients release (Le Pape and Menesguen, 1997; Fiandrino et al., 2017) and pollution phenomena (Jiang et al., 2017; Neal, 1966) and to develop restoration solutions (Kininmonth et al., 2010; Rossi et al., 2014; Thomas et al., 2014).</p>

<?xmltex \floatpos{t}?><table-wrap id="Ch1.T4" specific-use="star"><?xmltex \currentcnt{4}?><label>Table 4</label><caption><p id="d1e5555">Environmental condition for the mean of each computation period over the first 30 d of the simulation. Note that SD is the standard deviation.</p></caption><oasis:table frame="topbot"><oasis:tgroup cols="4">
     <oasis:colspec colnum="1" colname="col1" align="left"/>
     <oasis:colspec colnum="2" colname="col2" align="left"/>
     <oasis:colspec colnum="3" colname="col3" align="right"/>
     <oasis:colspec colnum="4" colname="col4" align="right"/>
     <oasis:thead>
       <oasis:row>
         <oasis:entry colname="col1">Scenario</oasis:entry>
         <oasis:entry colname="col2">Initial dates of</oasis:entry>
         <oasis:entry colname="col3">Cumulated Aulne</oasis:entry>
         <oasis:entry colname="col4">Wind velocity  <inline-formula><mml:math id="M154" display="inline"><mml:mo>±</mml:mo></mml:math></inline-formula> SD (m s<inline-formula><mml:math id="M155" display="inline"><mml:msup><mml:mi/><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msup></mml:math></inline-formula>)</oasis:entry>
       </oasis:row>
       <oasis:row rowsep="1">
         <oasis:entry colname="col1"/>
         <oasis:entry colname="col2">modeling</oasis:entry>
         <oasis:entry colname="col3">river flow (10<inline-formula><mml:math id="M156" display="inline"><mml:msup><mml:mi/><mml:mn mathvariant="normal">6</mml:mn></mml:msup></mml:math></inline-formula> m<inline-formula><mml:math id="M157" display="inline"><mml:msup><mml:mi/><mml:mn mathvariant="normal">3</mml:mn></mml:msup></mml:math></inline-formula>)</oasis:entry>
         <oasis:entry colname="col4">and direction (<inline-formula><mml:math id="M158" display="inline"><mml:msup><mml:mi/><mml:mo>∘</mml:mo></mml:msup></mml:math></inline-formula>)</oasis:entry>
       </oasis:row>
     </oasis:thead>
     <oasis:tbody>
       <oasis:row>
         <oasis:entry colname="col1">Low runoff – neap tide</oasis:entry>
         <oasis:entry colname="col2">29  Jan 2016</oasis:entry>
         <oasis:entry colname="col3">380.3</oasis:entry>
         <oasis:entry colname="col4"><inline-formula><mml:math id="M159" display="inline"><mml:mrow><mml:mn mathvariant="normal">8.43</mml:mn><mml:mo>±</mml:mo><mml:mn mathvariant="normal">4.0</mml:mn></mml:mrow></mml:math></inline-formula> (257<inline-formula><mml:math id="M160" display="inline"><mml:msup><mml:mi/><mml:mo>∘</mml:mo></mml:msup></mml:math></inline-formula>)</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1">Low runoff – spring tide</oasis:entry>
         <oasis:entry colname="col2">6  Feb 2016</oasis:entry>
         <oasis:entry colname="col3">337.7</oasis:entry>
         <oasis:entry colname="col4"><inline-formula><mml:math id="M161" display="inline"><mml:mrow><mml:mn mathvariant="normal">8.29</mml:mn><mml:mo>±</mml:mo><mml:mn mathvariant="normal">4.2</mml:mn></mml:mrow></mml:math></inline-formula> (274<inline-formula><mml:math id="M162" display="inline"><mml:msup><mml:mi/><mml:mo>∘</mml:mo></mml:msup></mml:math></inline-formula>)</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1">Flood – neap tide</oasis:entry>
         <oasis:entry colname="col2">8  Aug 2015</oasis:entry>
         <oasis:entry colname="col3">13.7</oasis:entry>
         <oasis:entry colname="col4"><inline-formula><mml:math id="M163" display="inline"><mml:mrow><mml:mn mathvariant="normal">4.69</mml:mn><mml:mo>±</mml:mo><mml:mn mathvariant="normal">2.6</mml:mn></mml:mrow></mml:math></inline-formula> (281<inline-formula><mml:math id="M164" display="inline"><mml:msup><mml:mi/><mml:mo>∘</mml:mo></mml:msup></mml:math></inline-formula>)</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1">Flood – spring tide</oasis:entry>
         <oasis:entry colname="col2">29  Jul 2015</oasis:entry>
         <oasis:entry colname="col3">10.5</oasis:entry>
         <oasis:entry colname="col4"><inline-formula><mml:math id="M165" display="inline"><mml:mrow><mml:mn mathvariant="normal">4.97</mml:mn><mml:mo>±</mml:mo><mml:mn mathvariant="normal">2.7</mml:mn></mml:mrow></mml:math></inline-formula> (242<inline-formula><mml:math id="M166" display="inline"><mml:msup><mml:mi/><mml:mo>∘</mml:mo></mml:msup></mml:math></inline-formula>)</oasis:entry>
       </oasis:row>
     </oasis:tbody>
   </oasis:tgroup></oasis:table></table-wrap>

<sec id="Ch1.S4.SS3.SSS1">
  <label>4.3.1</label><?xmltex \opttitle{$e$-folding flushing time estimate}?><title><inline-formula><mml:math id="M167" display="inline"><mml:mi>e</mml:mi></mml:math></inline-formula>-folding flushing time estimate</title>
      <p id="d1e5807">In this study, the water renewal time in the bay of Brest is evaluated from
the flushing time indicator. This diagnostic gives the time for 67 %
<inline-formula><mml:math id="M168" display="inline"><mml:mrow><mml:mo>(</mml:mo><mml:mn mathvariant="normal">1</mml:mn><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn><mml:mo>/</mml:mo><mml:mi>e</mml:mi><mml:mo>)</mml:mo></mml:mrow></mml:math></inline-formula> of the water in a control volume to be renewed. As the incoming
flow may take some time to reach (parts of) the control volume, the flushing
lag <inline-formula><mml:math id="M169" display="inline"><mml:mrow><mml:msub><mml:mi>t</mml:mi><mml:mn mathvariant="normal">0</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula> represents the time required for 5 % of the water mass to be
flushed out by the inflow. It allows understanding where the inflow comes
from. Consequently, the <inline-formula><mml:math id="M170" display="inline"><mml:mi>e</mml:mi></mml:math></inline-formula>-folding flushing time <inline-formula><mml:math id="M171" display="inline"><mml:mi mathvariant="italic">θ</mml:mi></mml:math></inline-formula> is, more precisely, the decay time in the concentration from 95 % down to <inline-formula><mml:math id="M172" display="inline"><mml:mrow><mml:mn mathvariant="normal">1</mml:mn><mml:mo>/</mml:mo><mml:mi>e</mml:mi></mml:mrow></mml:math></inline-formula> of initial concentration using an exponential regression <inline-formula><mml:math id="M173" display="inline"><mml:mrow><mml:mi>C</mml:mi><mml:mfenced open="(" close=")"><mml:mrow><mml:mi>t</mml:mi><mml:mo>-</mml:mo><mml:msub><mml:mi>t</mml:mi><mml:mn mathvariant="normal">0</mml:mn></mml:msub></mml:mrow></mml:mfenced><mml:mo>=</mml:mo><mml:msup><mml:mi>e</mml:mi><mml:mrow><mml:mo>-</mml:mo><mml:mfenced open="(" close=")"><mml:mrow><mml:mi>t</mml:mi><mml:mo>-</mml:mo><mml:msub><mml:mi>t</mml:mi><mml:mn mathvariant="normal">0</mml:mn></mml:msub></mml:mrow></mml:mfenced><mml:mo>/</mml:mo><mml:mi mathvariant="italic">θ</mml:mi></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula> (Jouon et al., 2006;
Grifoll et al., 2013; Plus et al., 2009). The <inline-formula><mml:math id="M174" display="inline"><mml:mi>e</mml:mi></mml:math></inline-formula>-folding<?pagebreak page1204?> flushing time is
estimated locally to provide spatially distributed information on the water-renewal capacity of a basin or over the entire control volume. Then, the global flushing time is the average of the local flushing times.</p>
      <p id="d1e5917">In the bay of Brest, the water inflow can come from the rivers or tidal
progression. To identify the relative importance of these two processes, the
volume control has to extend over the entire bay plus the outer part of the
bay in which only the tide is at play (see the dashed blue line in Fig. 8). For an accurate estimate of the <inline-formula><mml:math id="M175" display="inline"><mml:mi>e</mml:mi></mml:math></inline-formula>-folding flushing time, the simulated domain has to be larger than the control volume (Viero and Defina, 2016). Indeed, the return flow through the Goulet due to the semi-diurnal tide is likely to influence the water mass displacement and, therefore, the renewal time. Thus, the two-way nesting is expected to be an adequate tool; after crossing the open boundary, a particle can re-enter the simulated domain in the full nesting, while it is lost in the one-way method.</p>
      <p id="d1e5927">In our experiment, the flushing time is estimated on an Eulerian reference
system by simulating the dilution of passive tracers whose initial
concentration is set to 1 inside the control volume (in the fine grid) and 0
everywhere else. Water coming from the ocean (outside the Iroise Sea) and
river runoff has a tracer concentration equal to 0. The outflow concentrations are lost when crossing the model grid (mother grid in two-way
nesting). To remove of the initial tide conditions, the release of tracers
is repeated 13 times every hour for an even coverage of the tidal cycle
(Plus et al., 2009). The final indicator is the average of the 13 estimations.</p>
</sec>
<sec id="Ch1.S4.SS3.SSS2">
  <label>4.3.2</label><title>Case scenario</title>
      <p id="d1e5939">Various numerical experiments have been performed to catch variable conditions and estimate an exhaustive renewal indicator. Each simulation has been carried out according to the same protocol, with a hydrodynamic spin-up
run performed over 1 month before the release of passive tracers. To obtain various tidal regimes and hydrologic runoffs, the study focuses on four scenarios related to the tidal range and runoffs, where releases have been
done at the beginning of spring tides and neap tides, in winter and summer
seasons, during flood and weak runoff events. All of these simulations have
been performed with realistic atmospheric forcings, even though the wind
direction and intensity are highly variable at mid-latitudes. First, it is
challenging to find 15 d wind sequences that characterize the local
atmospheric forcings. Second, the bay has a macro-tidal regime, so the water
is mixed, whatever the weather conditions. We then focus on the two dominant
runoff regimes (flood water vs. low runoff) combined with the initial phase of the tide (spring vs. neap tides), as detailed in Table 4.</p>
</sec>
</sec>
<sec id="Ch1.S4.SS4">
  <label>4.4</label><title>Flushing times of the bay of Brest</title>
      <p id="d1e5951">The issue addressed here is the evaluation of the capability of the MARS3D-AGRIF tool to characterize the renewal capacity of the bay and identify the role played by the tidal forcing and river runoffs. The indicators have been estimated with both nesting methods for the four scenarios. The flushing times of the whole control volume are given in Table 5. As expected, low river runoffs imply a longer renewal time than flood situations. However, the initial tidal phase is the main change factor between the scenarios, with more intensive mixing during spring tides. There is a positive offset (roughly 10 %) of the renewal time from AGRIF two-way simulations. This shift is due to the return flow within the bay during each tidal cycle, which is underestimated in the one-way model, as its boundaries act as a sink for the tracer.</p>

<?xmltex \floatpos{t}?><table-wrap id="Ch1.T5"><?xmltex \currentcnt{5}?><label>Table 5</label><caption><p id="d1e5957">Global <inline-formula><mml:math id="M176" display="inline"><mml:mi>e</mml:mi></mml:math></inline-formula>-folding flushing times and standard deviation in days for
the whole control volume for both modeled configurations. The deviation is
estimated over the 13 time-released simulations for each scenario.</p></caption><oasis:table frame="topbot"><oasis:tgroup cols="3">
     <oasis:colspec colnum="1" colname="col1" align="left"/>
     <oasis:colspec colnum="2" colname="col2" align="right"/>
     <oasis:colspec colnum="3" colname="col3" align="right"/>
     <oasis:thead>
       <oasis:row>
         <oasis:entry colname="col1"/>
         <oasis:entry namest="col2" nameend="col3" align="center">Global  <inline-formula><mml:math id="M177" display="inline"><mml:mi>e</mml:mi></mml:math></inline-formula>-folding flushing </oasis:entry>
       </oasis:row>
       <oasis:row rowsep="1">
         <oasis:entry colname="col1"/>
         <oasis:entry namest="col2" nameend="col3" align="center">time in days </oasis:entry>
       </oasis:row>
     </oasis:thead>
     <oasis:tbody>
       <oasis:row rowsep="1">
         <oasis:entry colname="col1">Scenario</oasis:entry>
         <oasis:entry colname="col2">One-way model</oasis:entry>
         <oasis:entry colname="col3">Two-way model</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1">Low runoff – neap tide</oasis:entry>
         <oasis:entry colname="col2"><inline-formula><mml:math id="M178" display="inline"><mml:mrow><mml:mn mathvariant="normal">11.29</mml:mn><mml:mo>±</mml:mo><mml:mn mathvariant="normal">0.42</mml:mn></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col3"><inline-formula><mml:math id="M179" display="inline"><mml:mrow><mml:mn mathvariant="normal">12.23</mml:mn><mml:mo>±</mml:mo><mml:mn mathvariant="normal">0.64</mml:mn></mml:mrow></mml:math></inline-formula></oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1">Low runoff – spring tide</oasis:entry>
         <oasis:entry colname="col2"><inline-formula><mml:math id="M180" display="inline"><mml:mrow><mml:mn mathvariant="normal">7.68</mml:mn><mml:mo>±</mml:mo><mml:mn mathvariant="normal">0.39</mml:mn></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col3"><inline-formula><mml:math id="M181" display="inline"><mml:mrow><mml:mn mathvariant="normal">8.34</mml:mn><mml:mo>±</mml:mo><mml:mn mathvariant="normal">0.48</mml:mn></mml:mrow></mml:math></inline-formula></oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1">Flood – neap tide</oasis:entry>
         <oasis:entry colname="col2"><inline-formula><mml:math id="M182" display="inline"><mml:mrow><mml:mn mathvariant="normal">10.22</mml:mn><mml:mo>±</mml:mo><mml:mn mathvariant="normal">0.41</mml:mn></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col3"><inline-formula><mml:math id="M183" display="inline"><mml:mrow><mml:mn mathvariant="normal">10.84</mml:mn><mml:mo>±</mml:mo><mml:mn mathvariant="normal">0.53</mml:mn></mml:mrow></mml:math></inline-formula></oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1">Flood – spring tide</oasis:entry>
         <oasis:entry colname="col2"><inline-formula><mml:math id="M184" display="inline"><mml:mrow><mml:mn mathvariant="normal">6.95</mml:mn><mml:mo>±</mml:mo><mml:mn mathvariant="normal">0.35</mml:mn></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col3"><inline-formula><mml:math id="M185" display="inline"><mml:mrow><mml:mn mathvariant="normal">7.85</mml:mn><mml:mo>±</mml:mo><mml:mn mathvariant="normal">0.53</mml:mn></mml:mrow></mml:math></inline-formula></oasis:entry>
       </oasis:row>
     </oasis:tbody>
   </oasis:tgroup></oasis:table></table-wrap>

      <?pagebreak page1205?><p id="d1e6147">The local <inline-formula><mml:math id="M186" display="inline"><mml:mi>e</mml:mi></mml:math></inline-formula>-folding flushing times estimated with the two-way nesting
configurations are displayed in Fig. 9 for the four scenarios. The indicator increases as the geographic position moves away from the control volume boundary. In contrast to the global indicator, the runoff impact on the renewal capacity of the bay is obvious. In low river runoff conditions, the southeastern part of the bay is isolated from the rest. The local <inline-formula><mml:math id="M187" display="inline"><mml:mi>e</mml:mi></mml:math></inline-formula>-folding flushing time reaches more than 25 d in shallow coves and is released at neap tide. The impact of tide is the next level in order of importance, with, not surprisingly, stronger renewal during spring tide than neap tide. In each scenario, the central energetic eddy stands out because it is the rallying point of continental waters.</p>

      <?xmltex \floatpos{t}?><fig id="Ch1.F9" specific-use="star"><?xmltex \currentcnt{9}?><?xmltex \def\figurename{Figure}?><label>Figure 9</label><caption><p id="d1e6167">Local <inline-formula><mml:math id="M188" display="inline"><mml:mi>e</mml:mi></mml:math></inline-formula>-folding flushing time estimated for spring <bold>(a)</bold> and neap <bold>(b)</bold> tides in low-flow conditions and for spring <bold>(c)</bold> and neap <bold>(d)</bold> tides for flood
conditions. Coastline source: SHOM.</p></caption>
          <?xmltex \igopts{width=426.791339pt}?><graphic xlink:href="https://gmd.copernicus.org/articles/16/1191/2023/gmd-16-1191-2023-f09.png"/>

        </fig>

      <?xmltex \floatpos{t}?><fig id="Ch1.F10" specific-use="star"><?xmltex \currentcnt{10}?><?xmltex \def\figurename{Figure}?><label>Figure 10</label><caption><p id="d1e6197">Differences between local <inline-formula><mml:math id="M189" display="inline"><mml:mi>e</mml:mi></mml:math></inline-formula>-folding flushing times estimated with
one-way configuration over the two-way nesting method. They are computed for
spring <bold>(a)</bold> and neap <bold>(b)</bold> tides in low-flow conditions and for spring <bold>(c)</bold> and neap <bold>(d)</bold> tides for flood conditions. Coastline source: SHOM.</p></caption>
          <?xmltex \igopts{width=426.791339pt}?><graphic xlink:href="https://gmd.copernicus.org/articles/16/1191/2023/gmd-16-1191-2023-f10.png"/>

        </fig>

      <p id="d1e6225">The relative differences in local <inline-formula><mml:math id="M190" display="inline"><mml:mi>e</mml:mi></mml:math></inline-formula>-folding flushing time estimates are
illustrated in Fig. 10. Whatever the environmental conditions, the one-way nesting overestimates the renewal capacity of the bay by predicting lower local <inline-formula><mml:math id="M191" display="inline"><mml:mi>e</mml:mi></mml:math></inline-formula>-folding flushing times nearly everywhere. Such bias is expected because the one-way nesting does not correctly follow the tidal prism in the control volume: any tracers that leave the volume are lost for the estimate of the <inline-formula><mml:math id="M192" display="inline"><mml:mi>e</mml:mi></mml:math></inline-formula>-folding flushing time. In the inner part of the bay, the local differences are always negative and reach around 20 % in flood conditions. Under low river runoff conditions, the renewal time is independent of the tide regime in the central part. In this area, the water
mass is always replaced by the inflow during the period of simulation, so
the treatment at the open boundary does not matter. In contrast, <inline-formula><mml:math id="M193" display="inline"><mml:mi>e</mml:mi></mml:math></inline-formula>-folding
flushing time estimates are underestimated in shallow areas, especially
during spring tides. To ensure that the disparities are due to open-boundary
treatment, a similar experiment was run with a much smaller control volume
located only within the bay. Then, the simulated domain is larger than the
control volume, and the results are identical, regardless of the nesting
method. This highlights the asset of the two-nesting approach for the evaluation of the water renewal times. Last, some suspicious patches appear at the western part of the control volume, which only takes into account tidal inputs. Others are visible next to the river mouths. Both are related to the initial time release and inaccurate exponential regression, as the inflow quickly replaces the initial water masses (as confirmed by de Brauwere et al., 2011).</p>
</sec>
</sec>
<sec id="Ch1.S5" sec-type="conclusions">
  <label>5</label><title>Discussion</title>
      <p id="d1e6265">The first objective of grid refinement is either to tackle a local stationary problem or to follow a single dynamical structure along with its displacements (Blayo and Debreu, 1999). In the MARS3D structured grid model, the magnification allows us to reach a resolution commensurable with the Rossby internal radius or with the coastal geometry in the presence of islands, capes or peninsulas. Unfortunately, the use of the ADI algorithm in MARS3D makes the implementation of the two-way AGRIF nesting tricky. In addition, coastal applications require the management of wetting–drying. Still, the present applications demonstrate the capabilities of MARS3D-AGRIF two-way nesting to represent the macro-tidal dynamics and propagate the tracers in coastal areas. They also illustrate how it improves the monitoring of the fate of coastal water.</p>
      <p id="d1e6268">Despite the regular improvement in the computational power available for high-performance scientific computing, the computational cost and the storage of massive datasets remain significant issues for long-term numerical oceanic simulations due to various reasons, such as green computing considerations. We hereafter review the different key advantages provided by the introduction of the AGRIF library in MARS3D.</p>
      <p id="d1e6271">Regarding parameterization, the AGRIF library allows the specification of different forcings (meteorology and runoff) or numerical schemes for each grid of the hierarchy. Consequently, the parameterizations can fit every local process. In addition, the local time refinement is specific to each grid (ratio of 3 to 5). The more intense the dynamics, the more the time refinement factor is increased.</p>
      <p id="d1e6274">The AGRIF flexibility also lies in the way child grids of a given hierarchy
can either be added or easily removed. An offline bathymetric update tool,
available with MARS3D code, modifies both mother and child bathymetries to
fit fluxes (from one grid to another) along child borders. Once the
bathymetry consistency is performed, users can launch the runs without
additional tasks. The initial conditions for the new magnification are estimated online by the AGRIF library. This capability has been used to study the deep convection in the northwestern Mediterranean Sea more precisely (Garreau and Garnier, 2015) or to better identify the shear stress on marine
renewable energy structures (Christophe Maisondieu, personal communication, 2019). If a user needs to
remove a specific child grid, then the bathymetry of the mother grid simply has to be recomputed with the tool before launching the model.</p>
      <p id="d1e6278">The usual offline nesting procedure requires writing and storing of 3D
forcing files from which the open-boundary and initial conditions for the
child grid are supplied. To prevent aliasing or spurious incompatibilities
between barotropic and baroclinic modes, high-frequency outputs must be
saved to a hard drive. In every instance in which tidal dynamics are dominant, a massive amount of input–output (I/O) is involved, which raises other kinds of issues, such as how to write massive data in a massive parallel context. Despite the many improvements to deal with this issue, like exporting the I/O on dedicated central processing units (CPUs) with the XIOS library (Yepes-Arbós et al., 2022), the cost of long-term storage of massive data cannot be escaped. The on-the-fly grid nesting procedure (encompassing initial and open-boundary management) included in the two-way nesting circumvents these tedious steps by performing them online at each time step and for the different grids of the hierarchy.</p>
      <?pagebreak page1206?><p id="d1e6281">Another point concerns the vertical coordinate framework, which is here a
sigma one in MARS3D. The vertical interpolation towards a sigma framework
often requires projection onto a geopotential framework to perform a
split horizontal–vertical interpolation. Such split interpolations on
temperature and salinity fields can lead to gravity instabilities in the case of significant bathymetric inconsistencies between the coarse and child grids. Therefore, the user must carefully define the interpolation parameters (such as those defining the intermediate geopotential framework onto which the vertical interpolation is performed) and check the consistency of the
gravity gradient. As MARS3D-AGRIF two-way nesting requires a perfect fit
of the vertical discretization for all grids of the hierarchy and bathymetries coherence, these constraints prevent the gravity issues. Of
course, this well-known problem may also be avoided in offline embedding
procedures by taking the same care in defining the grid and the bathymetry
computations.</p>
      <p id="d1e6284">The traditional one-way nesting remains a lighter solution than the AGRIF
two-way nesting, especially in case repeated experiments are required for tuning purposes, with different parameterizations, or for exploring several
environmental hypotheses (Cadier et al., 2017; Petton et al., 2020; Gangnery
et al., 2019). As open-boundary files can be reused at no cost, this method
is still a good approach to improving numerical developments in coastal
models. However, the two-way update process is compulsory when the final
objective is to ensure a conservative approach (biological tracer, connectivity study, etc.) over large geographic areas at minimum cost. It is not a unique solution as for other kinds of spatial discretization, such as unstructured, curvilinear or polar-style coordinates, but meets the same
numerical constraints. The two-way nesting proposed here keeps it simple for
the end-user.</p>
      <p id="d1e6287">As shown in Sect. 3.2, the online interpolation from the mother to child grid
and the update process preserve the propagation of tidal elevations and
currents with an equivalent level of accuracy to the one achieved with the
SHOM CST France tidal forcing prescribed at the open-boundary conditions of a
single typical coastal grid (some tens of kilometers of extension, with 10 to
100 m depth, at a resolution of some hundreds of meters). The observed differences between the two-way nesting and the one-way offline methods are less than a few centimeters, which are not significant in coastal areas. It
is thus a real performance, first, because, in the two-way nesting approach
depicted here, the tidal propagation computed at the coarse-grid level is
fed with a FES global reference tidal solution (Lyard et al., 2021) far away
from the coasts. And, second, because the use of the ADI algorithm requires that the coarse solution be updated over the entire child domains from the
spatial average of their fine solutions. Therefore, it proves that the
MARS3D-AGRIF<?pagebreak page1207?> implementation conserves mass and momentum and that the
interactions between the child grids are handled accurately over open sea and
over wetting–drying areas. In conclusion, MARS3D-AGRIF represents tides at
regional and coastal scales and at medium resolution (Lazure et al., 2009;
Muller et al., 2014). It is well suited for large configurations with
several magnification models and for long-term hindcast or operational forecast simulations to monitor the marine environment.</p>
      <p id="d1e6290">Regarding environmental applications, Sect. 4.3 confirms that the two-way
nesting solution is mandatory to accurately estimate indicators
characterizing the mixing within a bay, especially in macro-tidal regimes. For estimates defined over a control volume, the management of the open boundaries is a key element. On a stand-alone grid, when the flow enters the
domain, users can either choose to apply or nudge towards a constant value
(zero or whatever value), a time series inferred from a large-scale solution
(if available) or a zero-gradient condition. In all cases, the solution is
strongly non-conservative, resulting in discrepancies in the final
indicators. Even the one-way nesting is not conservative when the control
volume is too close to an open boundary. Beyond the estimation of coastal
indicators, the MARS3D-AGRIF two-way capability improves the management of
the fate of a tracer outside the bay at the coarser horizontal resolution
(and at a fairly reasonable computational cost). It also enforces accurate
incoming concentration across the open boundaries of the child grids. Such a
conservative approach is relevant for applications with sediment, biological
or chemical dynamics models.</p>
      <p id="d1e6293">Finally, it is worth noticing that such a software can also perform the
opposite, i.e., grid coarsening. It is a relevant capability for online
physical–biogeochemical coupling. Such an approach has been used by
Lévy et al. (2012) in an offline mode. Capturing relevant scales of the
oceanic flows may require a higher spatial resolution than that required by
the main biogeochemical features. For instance, the sub-mesoscale features
enhance the vertical exchange and refuel the surface with nutrients. A few
hundred meters of spatial resolution is mandatory to simulate sub-mesoscale
dynamics. But it is unaffordable for state-of-the-art biogeochemical models
that use and advect tens of tracer fields (Heinze and Gehlen, 2013). The
AGRIF coarsening capability allows this differential resolution (physics at
high resolution and biogeochemistry at lower resolution) by building online
non-divergent transport fields from the high-resolution grid onto the coarse-resolution grid. In that way, the “grandmother” grid may completely
overlap the mother grid.</p>
</sec>

      
      </body>
    <back><app-group>

<?pagebreak page1208?><app id="App1.Ch1.S1">
  <?xmltex \currentcnt{A}?><label>Appendix A</label><title>Data used for validation</title>
      <p id="d1e6307">The tidal validation is based on four stations from the French tidal gauge
network RONIM, which is maintained by SHOM. Moreover, three datasets are available in the framework of the national program COAST-HF (Coastal Ocean Observing System – High Frequency; <uri>https://www.coast-hf.fr</uri>, last access: 15 February 2023), which gathers 14 automated moored buoys. The COAST-HF ASTAN buoy (48.749<inline-formula><mml:math id="M194" display="inline"><mml:msup><mml:mi/><mml:mo>∘</mml:mo></mml:msup></mml:math></inline-formula> N;
3.961<inline-formula><mml:math id="M195" display="inline"><mml:msup><mml:mi/><mml:mo>∘</mml:mo></mml:msup></mml:math></inline-formula> W) is a cardinal buoy of opportunity located 3.1 km
offshore from Roscoff, east of Île de Batz (Isle of Batz). It has recorded data every 30 min at 5 m depth since 2008 (Gac et al., 2020), over a mean
bathymetry of 45 m. The COAST-HF-MAREL-Iroise buoy (48.357<inline-formula><mml:math id="M196" display="inline"><mml:msup><mml:mi/><mml:mo>∘</mml:mo></mml:msup></mml:math></inline-formula> N,
4.582<inline-formula><mml:math id="M197" display="inline"><mml:msup><mml:mi/><mml:mo>∘</mml:mo></mml:msup></mml:math></inline-formula> W) is located at the entrance of the bay of Brest and has
recorded data every 20 min at 2 m depth since 2000 (Rimmelin-Maury et
al., 2020). Inside the bay of Brest, next to the Mignonne river mouth, the COAST-HF-SMART-Daoulas buoy (48.317<inline-formula><mml:math id="M198" display="inline"><mml:msup><mml:mi/><mml:mo>∘</mml:mo></mml:msup></mml:math></inline-formula> N, 4.331<inline-formula><mml:math id="M199" display="inline"><mml:msup><mml:mi/><mml:mo>∘</mml:mo></mml:msup></mml:math></inline-formula> W) has been monitoring parameters at 50 cm over the seabed at 15 min frequency since 2016 (Petton et al., 2021b). Next to this last point, the Ifremer observatory network, ECOSCOPA, has a study site called Pointe du Château (48.335<inline-formula><mml:math id="M200" display="inline"><mml:msup><mml:mi/><mml:mo>∘</mml:mo></mml:msup></mml:math></inline-formula> N, 4.319<inline-formula><mml:math id="M201" display="inline"><mml:msup><mml:mi/><mml:mo>∘</mml:mo></mml:msup></mml:math></inline-formula> W), which is at an oyster farm in the intertidal zone. Temperature and salinity data have been available at a 15 min frequency since 2008 (Petton et al., 2021a). We also had access to the sea surface temperature data from the Datawell buoy of Les Pierres Noires, which
is part of the swell monitoring network CANDHIS (CEREMA; <uri>https://candhis.cerema.fr/</uri>, last access: 15 February 2023) and located in the middle of the Iroise Sea (48.29<inline-formula><mml:math id="M202" display="inline"><mml:msup><mml:mi/><mml:mo>∘</mml:mo></mml:msup></mml:math></inline-formula> N, 4.97<inline-formula><mml:math id="M203" display="inline"><mml:msup><mml:mi/><mml:mo>∘</mml:mo></mml:msup></mml:math></inline-formula> W). These monitoring stations are presented in Figs. 5 and 8.</p>
      <p id="d1e6408">Besides, satellite data are used for sea surface temperature (SST) validation at two different horizontal scales. The first one is based on SST fields
extracted from the global Advanced Very High Resolution Radiometer (AVHRR)
Pathfinder v5 daily dataset. The ODYSSEA chain has been modified by
Saulquin and Gohin (2010) to use an optimal interpolation for the
reconstruction of gap-free data, and it uses the previous analysis as a first guess. The product is gridded at a 0.02<inline-formula><mml:math id="M204" display="inline"><mml:msup><mml:mi/><mml:mo>∘</mml:mo></mml:msup></mml:math></inline-formula> spatial resolution and is freely available at <uri>https://resources.marine.copernicus.eu</uri> (last access: 15 February 2023; Autret and
Piolleì, 2018). The second one is based on the Thermal Infrared Sensor
(TIRS) from the Landsat 8 satellite. As it orbits the Earth in a sun-synchronous, near-polar orbit inclined at 98.2<inline-formula><mml:math id="M205" display="inline"><mml:msup><mml:mi/><mml:mo>∘</mml:mo></mml:msup></mml:math></inline-formula>, one has a track over our area of interest every 8 d. Consequently, it is hard to extract snapshots without too many clouds. Recently, the United States Geological
Survey (USGS) has started to distribute Landsat Collection 2 Level-2 (values
are given after atmospheric corrections) with a calibrated land surface
temperature field. The development of a water temperature algorithm is not
the aim of this paper and represents a challenge by itself (Vanhellemont,
2020). However, the use of such a high-resolution product (30 m gridded) is
very useful to detect fine structures. In that respect, the ODYSSEA product
is complementary to the Landsat 8 scene and a reference on a coarser grid. To discriminate water temperature from clouds or land values, the quality
index given for each pixel for this collection is used.</p>
</app>
  </app-group><notes notes-type="codeavailability"><title>Code availability</title>

      <p id="d1e6436">The last version of MARS3D is freely available on request at <uri>https://mars3d.ifremer.fr</uri> (last access: 16 February 2023). The AGRIF library is freely available under a CECILL license
(<uri>http://www.cecill.info</uri>, last access: 15 February 2023) and is distributed within the MARS3D code. The version of AGRIF library used in this paper is available at <ext-link xlink:href="https://doi.org/10.5281/zenodo.6672562" ext-link-type="DOI">10.5281/zenodo.6672562</ext-link> (Petton and Dumas, 2022b). Both codes are written in Fortran 90/95, and figures are displayed from Python scripts or with QGIS software for both configuration presentations. All of the model codes, bathymetric grid files and namelist configuration files for both regional and coastal applications and Python scripts used in this paper are available at <ext-link xlink:href="https://doi.org/10.5281/zenodo.6672562" ext-link-type="DOI">10.5281/zenodo.6672562</ext-link> (Petton and Dumas, 2022b).</p>
  </notes><notes notes-type="dataavailability"><title>Data availability</title>

      <p id="d1e6454">All data used in this paper are described in Appendix A and are freely available.</p>
  </notes><notes notes-type="authorcontribution"><title>Author contributions</title>

      <p id="d1e6460">LD developed the AGRIF Library. LD, VG and FD integrated the AGRIF library into the MARS3D model. MC and SP have set up the model configurations, adapted the AGRIF integration to coastal environment and provided figures for the paper. All authors have contributed to the concepts and the writing of the paper.</p>
  </notes><notes notes-type="competinginterests"><title>Competing interests</title>

      <p id="d1e6466">The contact author has declared that none of the authors has any competing interests.</p>
  </notes><notes notes-type="disclaimer"><title>Disclaimer</title>

      <p id="d1e6472">Publisher's note: Copernicus Publications remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.</p>
  </notes><ack><title>Acknowledgements</title><p id="d1e6478">We would like to acknowledge the COAST-HF and ECOSCOPA national observing
networks, for making the data flux readily available. We also thank
Jean-François Le Roux and Tina Odaka, for their many code developments,
which allowed its parallelization and optimization. We thank the referees,
for their helpful and constructive comments.</p></ack><notes notes-type="financialsupport"><title>Financial support</title>

      <p id="d1e6484">This research has been supported by the Agence Nationale de la Recherche (grant no. ANR-11-MONU-005 COMODO).</p>
  </notes><notes notes-type="reviewstatement"><title>Review statement</title>

      <p id="d1e6490">This paper was edited by Qiang Wang and reviewed by two anonymous referees.</p>
  </notes><?xmltex \hack{\newpage}?><ref-list>
    <title>References</title>

      <ref id="bib1.bib1"><label>1</label><?label 1?><mixed-citation>Auffret, G.-A.: Dynamique sédimentaire de la marge continentale celtique
– Evolution Cénozoïque - Spécificité du Pleistocène
supérieur et de l'Holocène, Université de Bordeaux I, <uri>https://archimer.ifremer.fr/doc/00034/14524/</uri> (last access: 15 February 2023), 1983.</mixed-citation></ref>
      <ref id="bib1.bib2"><label>2</label><?label 1?><mixed-citation>Autret, E. and Piolleì, J.-F.: European North West Shelf/Iberia Biscay Irish
Seas – High Resolution ODYSSEA L4 Sea Surface Temperature Analysis, Ifremer, Copernicus program,
<ext-link xlink:href="https://doi.org/10.48670/moi-00152" ext-link-type="DOI">10.48670/moi-00152</ext-link>, 2018.</mixed-citation></ref>
      <ref id="bib1.bib3"><label>3</label><?label 1?><mixed-citation>Berger, M. J. and Oliger, J.: Adaptive mesh refinement for hyperbolic
partial differential equations, J. Comput. Phys., 53, 484–512,
<ext-link xlink:href="https://doi.org/10.1016/0021-9991(84)90073-1" ext-link-type="DOI">10.1016/0021-9991(84)90073-1</ext-link>, 1984.</mixed-citation></ref>
      <ref id="bib1.bib4"><label>4</label><?label 1?><mixed-citation>
Bezaud, M. and Pineau-Guillou, L.: Qualification des modèles
hydrodynamiques 3D des côtes de la Manche et de l'Atlantique, ODE/DYNECO/PHYSED/2015-02, 158 pp.,
2015.</mixed-citation></ref>
      <ref id="bib1.bib5"><label>5</label><?label 1?><mixed-citation>Biastoch, A., Böning, C. W., Schwarzkopf, F. U., and Lutjeharms, J. R.
E.: Increase in Agulhas leakage due to poleward shift of Southern Hemisphere
westerlies, Nature, 462, 495–498, <ext-link xlink:href="https://doi.org/10.1038/nature08519" ext-link-type="DOI">10.1038/nature08519</ext-link>,
2009.</mixed-citation></ref>
      <ref id="bib1.bib6"><label>6</label><?label 1?><mixed-citation>Biastoch, A., Sein, D., Durgadoo, J. V, Wang, Q., and Danilov, S.:
Simulating the Agulhas system in global ocean models – nesting vs.
multi-resolution unstructured meshes, Ocean Model., 121, 117–131,
<ext-link xlink:href="https://doi.org/10.1016/j.ocemod.2017.12.002" ext-link-type="DOI">10.1016/j.ocemod.2017.12.002</ext-link>, 2018.</mixed-citation></ref>
      <ref id="bib1.bib7"><label>7</label><?label 1?><mixed-citation>Blayo, E. and Debreu, L.: Adaptive Mesh Refinement for Finite-Difference
Ocean Models: First Experiments, J. Phys. Oceanogr., 29, 1239–1250,
<ext-link xlink:href="https://doi.org/10.1175/1520-0485(1999)029&lt;1239:AMRFFD&gt;2.0.CO;2" ext-link-type="DOI">10.1175/1520-0485(1999)029&lt;1239:AMRFFD&gt;2.0.CO;2</ext-link>, 1999.</mixed-citation></ref>
      <ref id="bib1.bib8"><label>8</label><?label 1?><mixed-citation>Cadier, M., Gorgues, T., Sourisseau, M., Edwards, C. A., Aumont, O.,
Marié, L., and Memery, L.: Assessing spatial and temporal variability of
phytoplankton communities' composition in the Iroise Sea ecosystem
(Brittany, France): A 3D modeling approach. Part 1: Biophysical control over
plankton functional types succession and distribution, J. Marine Syst., 165, 47–68,
<ext-link xlink:href="https://doi.org/10.1016/j.jmarsys.2016.09.009" ext-link-type="DOI">10.1016/j.jmarsys.2016.09.009</ext-link>, 2017.</mixed-citation></ref>
      <ref id="bib1.bib9"><label>9</label><?label 1?><mixed-citation>Caillaud, M., Petton, S., Dumas, F., Rochette, S., and Vasquez, M.: Rejeu hydrodynamique à 500 m de résolution avec le modèle MARS3D-AGRIF – Zone Manche-Gascogne, Ifremer, <ext-link xlink:href="https://doi.org/10.12770/3edee80f-5a3e-42f4-9427-9684073c87f5" ext-link-type="DOI">10.12770/3edee80f-5a3e-42f4-9427-9684073c87f5</ext-link>, 2016.</mixed-citation></ref>
      <ref id="bib1.bib10"><label>10</label><?label 1?><mixed-citation>Capet, X.: Contributions to the understanding of meso/submesoscale
turbulence and their impact on the ocean functioning, UPMC – Université
Paris 6 Pierre et Marie Curie, <uri>https://hal.science/tel-01346627</uri> (last access: 15 February 2023), 2015.</mixed-citation></ref>
      <ref id="bib1.bib11"><label>11</label><?label 1?><mixed-citation>de Brauwere, A., de Brye, B., Blaise, S., and Deleersnijder, E.: Residence
time, exposure time and connectivity in the Scheldt Estuary,
J. Marine Syst., 84, 85–95, <ext-link xlink:href="https://doi.org/10.1016/j.jmarsys.2010.10.001" ext-link-type="DOI">10.1016/j.jmarsys.2010.10.001</ext-link>,
2011.</mixed-citation></ref>
      <ref id="bib1.bib12"><label>12</label><?label 1?><mixed-citation>Debreu, L. and Blayo, E.: Two-way embedding algorithms: a review, Ocean Dynam.,
58, 415–428, <ext-link xlink:href="https://doi.org/10.1007/s10236-008-0150-9" ext-link-type="DOI">10.1007/s10236-008-0150-9</ext-link>, 2008.</mixed-citation></ref>
      <ref id="bib1.bib13"><label>13</label><?label 1?><mixed-citation>Debreu, L., Vouland, C., and Blayo, E.: AGRIF: Adaptive grid refinement in
Fortran, Comput. Geosci., 34, 8–13,
<ext-link xlink:href="https://doi.org/10.1016/j.cageo.2007.01.009" ext-link-type="DOI">10.1016/j.cageo.2007.01.009</ext-link>, 2008.</mixed-citation></ref>
      <ref id="bib1.bib14"><label>14</label><?label 1?><mixed-citation>Debreu, L., Marchesiello, P., Penven, P., and Cambon, G.: Two-way nesting in
split-explicit ocean models: Algorithms, implementation and validation,
Ocean Model., 49–50, 1–21,
<ext-link xlink:href="https://doi.org/10.1016/j.ocemod.2012.03.003" ext-link-type="DOI">10.1016/j.ocemod.2012.03.003</ext-link>, 2012.</mixed-citation></ref>
      <ref id="bib1.bib15"><label>15</label><?label 1?><mixed-citation>Delandmeter, P., Lambrechts, J., Legat, V., Vallaeys, V., Naithani, J., Thiery, W., Remacle, J.-F., and Deleersnijder, E.: A fully consistent and conservative vertically adaptive coordinate system for SLIM 3D v0.4 with an application to the thermocline oscillations of Lake Tanganyika, Geosci. Model Dev., 11, 1161–1179, <ext-link xlink:href="https://doi.org/10.5194/gmd-11-1161-2018" ext-link-type="DOI">10.5194/gmd-11-1161-2018</ext-link>, 2018.</mixed-citation></ref>
      <ref id="bib1.bib16"><label>16</label><?label 1?><mixed-citation>Diaz, M., Grasso, F., Le Hir, P., Sottolichio, A., Caillaud, M., and
Thouvenin, B.: Modeling Mud and Sand Transfers Between a Macrotidal Estuary
and the Continental Shelf: Influence of the Sediment Transport
Parameterization, J. Geophys. Res.-Oceans, 125, e2019JC015643,
<ext-link xlink:href="https://doi.org/10.1029/2019JC015643" ext-link-type="DOI">10.1029/2019JC015643</ext-link>, 2020.</mixed-citation></ref>
      <ref id="bib1.bib17"><label>17</label><?label 1?><mixed-citation>Dufois, F., Verney, R., Le Hir, P., Dumas, F., and Charmasson, S.: Impact of
winter storms on sediment erosion in the Rhone River prodelta and fate of
sediment in the Gulf of Lions (North Western Mediterranean Sea), Cont. Shelf
Res., 72, 57–72, <ext-link xlink:href="https://doi.org/10.1016/j.csr.2013.11.004" ext-link-type="DOI">10.1016/j.csr.2013.11.004</ext-link>,
2014.</mixed-citation></ref>
      <ref id="bib1.bib18"><label>18</label><?label 1?><mixed-citation>Fiandrino, A., Ouisse, V., Dumas, F., Lagarde, F., Pete, R., Malet, N., Le
Noc, S., and de Wit, R.: Spatial patterns in coastal lagoons related to the
hydrodynamics of seawater intrusion, Mar. Pollut. Bull., 119, 132–144,
<ext-link xlink:href="https://doi.org/10.1016/j.marpolbul.2017.03.006" ext-link-type="DOI">10.1016/j.marpolbul.2017.03.006</ext-link>, 2017.</mixed-citation></ref>
      <ref id="bib1.bib19"><label>19</label><?label 1?><mixed-citation>Frère, L., Paul-Pont, I., Rinnert, E., Petton, S., Jaffré, J.,
Bihannic, I., Soudant, P., Lambert, C., and Huvet, A.: Influence of
environmental and anthropogenic factors on the composition, concentration
and spatial distribution of microplastics: A case study of the Bay of Brest
(Brittany, France), Environ. Pollut., 225, 211–222,
<ext-link xlink:href="https://doi.org/10.1016/j.envpol.2017.03.023" ext-link-type="DOI">10.1016/j.envpol.2017.03.023</ext-link>, 2017.</mixed-citation></ref>
      <ref id="bib1.bib20"><label>20</label><?label 1?><mixed-citation>Gac, J.-P., Marrec, P., Cariou, T., Guillerm, C., Macé, É., Vernet,
M., and Bozec, Y.: Cardinal Buoys: An Opportunity for the Study of Air-Sea
CO2 Fluxes in Coastal Ecosystems, Front. Mar. Sci., 7, 712,
<ext-link xlink:href="https://doi.org/10.3389/fmars.2020.00712" ext-link-type="DOI">10.3389/fmars.2020.00712</ext-link>, 2020.</mixed-citation></ref>
      <ref id="bib1.bib21"><label>21</label><?label 1?><mixed-citation>Gangnery, A., Normand, J., Duval, C., Cugier, P., Grangeré, K., Petton,
B., Petton, S., Orvain, F., and Pernet, F.: Connectivities with Shellfish
Farms and Channel Rivers are Associated with Mortality Risk in Oysters,
Aquacult. Env. Interac., 11, 493–506, <ext-link xlink:href="https://doi.org/10.3354/aei00327" ext-link-type="DOI">10.3354/aei00327</ext-link>,
2019.</mixed-citation></ref>
      <ref id="bib1.bib22"><label>22</label><?label 1?><mixed-citation>
Garreau, P. and Garnier, V.: Physical processes acting in a numerical
oceanic model during the convection period of SOP2, in: 9th HyMeX workshop,
21–25 September 2015, Mykonos, Greece, Oral, 2015.</mixed-citation></ref>
      <ref id="bib1.bib23"><label>23</label><?label 1?><mixed-citation>Grasso, F., Verney, R., Le Hir, P., Thouvenin, B., Schulz, E., Kervella, Y.,
Khojasteh Pour Fard, I., Lemoine, J.-P., Dumas, F., and Garnier, V.:
Suspended Sediment Dynamics in the Macrotidal Seine Estuary (France): 1.
Numerical Modeling of Turbidity Maximum Dynamics, J. Geophys. Res.-Oceans, 123,
558–577, <ext-link xlink:href="https://doi.org/10.1002/2017JC013185" ext-link-type="DOI">10.1002/2017JC013185</ext-link>, 2018.</mixed-citation></ref>
      <ref id="bib1.bib24"><label>24</label><?label 1?><mixed-citation>Grifoll, M., Del Campo, A., Espino, M., Mader, J., González, M., and
Borja, Á.: Water renewal and risk assessment of water pollution in
semi-enclosed domains: Application to Bilbao Harbour (Bay of Biscay),
J. Marine Syst., 109–110, S241–S251,
<ext-link xlink:href="https://doi.org/10.1016/j.jmarsys.2011.07.010" ext-link-type="DOI">10.1016/j.jmarsys.2011.07.010</ext-link>, 2013.</mixed-citation></ref>
      <ref id="bib1.bib25"><label>25</label><?label 1?><mixed-citation>Heinze, C. and Gehlen, M.: Modeling Ocean Biogeochemical Processes and the
Resulting Tracer Distributions, in: Ocean Circulation and Climate, vol. 103,
edited by: Siedler, G., Griffies, S. M., Gould, J., and Church,
J. A., International Geophysics, Academic Press, 667–694,
<ext-link xlink:href="https://doi.org/10.1016/B978-0-12-391851-2.00026-X" ext-link-type="DOI">10.1016/B978-0-12-391851-2.00026-X</ext-link>, 2013.</mixed-citation></ref>
      <?pagebreak page1210?><ref id="bib1.bib26"><label>26</label><?label 1?><mixed-citation>Huret, M., Sourisseau, M., Petitgas, P., Struski, C., Léger, F., and
Lazure, P.: A multi-decadal hindcast of a physical-biogeochemical model and
derived oceanographic indices in the Bay of Biscay, J. Marine Syst., 109–110, <ext-link xlink:href="https://doi.org/10.1016/j.jmarsys.2012.02.009" ext-link-type="DOI">10.1016/j.jmarsys.2012.02.009</ext-link>, 2013.</mixed-citation></ref>
      <ref id="bib1.bib27"><label>27</label><?label 1?><mixed-citation>Janin, J. M., Lepeintre, F., and Péchon, P.: TELEMAC-3D: A Finite Element Code to Solve 3D Free Surface Flow Problems, edited by: Partridge, P. W., Computer Modelling of Seas and Coastal Regions, Springer, Dordrecht, <ext-link xlink:href="https://doi.org/10.1007/978-94-011-2878-0_36" ext-link-type="DOI">10.1007/978-94-011-2878-0_36</ext-link>, 1992.</mixed-citation></ref>
      <ref id="bib1.bib28"><label>28</label><?label 1?><mixed-citation>Jiang, C., Liu, Y., Long, Y., and Wu, C.: Estimation of Residence Time and
Transport Trajectory in Tieshangang Bay, China, Water, 9, 15,
<ext-link xlink:href="https://doi.org/10.3390/w9050321" ext-link-type="DOI">10.3390/w9050321</ext-link>, 2017.</mixed-citation></ref>
      <ref id="bib1.bib29"><label>29</label><?label 1?><mixed-citation>Jordi, A., Ferrer, M. I., Vizoso, G., Orfila, A., Basterretxea, G., Casas,
B., Álvarez, A., Roig, D., Garau, B., Martínez, M., Fernández,
V., Fornés, A., Ruiz, M., Fornós, J. J., Balaguer, P., Duarte, C.
M., Rodríguez, I., Alvarez, E., Onken, R., Orfila, P., and Tintoré,
J.: Scientific management of Mediterranean coastal zone: A hybrid ocean
forecasting system for oil spill and search and rescue operations, Mar. Pollut. Bull., 53, 361–368, <ext-link xlink:href="https://doi.org/10.1016/j.marpolbul.2005.10.008" ext-link-type="DOI">10.1016/j.marpolbul.2005.10.008</ext-link>,
2006.</mixed-citation></ref>
      <ref id="bib1.bib30"><label>30</label><?label 1?><mixed-citation>Jouon, A., Douillet, P., Ouillon, S., and Fraunié, P.: Calculations of
hydrodynamic time parameters in a semi-opened coastal zone using a 3D
hydrodynamic model, Cont. Shelf Res., 26, 1395–1415,
<ext-link xlink:href="https://doi.org/10.1016/j.csr.2005.11.014" ext-link-type="DOI">10.1016/j.csr.2005.11.014</ext-link>, 2006.</mixed-citation></ref>
      <ref id="bib1.bib31"><label>31</label><?label 1?><mixed-citation>Kininmonth, S. J., De'ath, G., and Possingham, H. P.: Graph theoretic
topology of the Great but small Barrier Reef world, Theor. Ecol., 3, 75–88,
<ext-link xlink:href="https://doi.org/10.1007/s12080-009-0055-3" ext-link-type="DOI">10.1007/s12080-009-0055-3</ext-link>, 2010.</mixed-citation></ref>
      <ref id="bib1.bib32"><label>32</label><?label 1?><mixed-citation>Lazure, P. and Dumas, F.: An external–internal mode coupling for a 3D
hydrodynamical model for applications at regional scale (MARS), Adv. Water
Resour., 31, 233–250, <ext-link xlink:href="https://doi.org/10.1016/J.ADVWATRES.2007.06.010" ext-link-type="DOI">10.1016/J.ADVWATRES.2007.06.010</ext-link>, 2008.</mixed-citation></ref>
      <ref id="bib1.bib33"><label>33</label><?label 1?><mixed-citation>Lazure, P., Garnier, V., Dumas, F., Herry, C., and Chifflet, M.: Development
of a hydrodynamic model of the Bay of Biscay. Validation of hydrology, Cont.
Shelf Res., 29, 985–997, <ext-link xlink:href="https://doi.org/10.1016/j.csr.2008.12.017" ext-link-type="DOI">10.1016/j.csr.2008.12.017</ext-link>, 2009.</mixed-citation></ref>
      <ref id="bib1.bib34"><label>34</label><?label 1?><mixed-citation>Leendertse, J. J. and Gritton, E. C.: A water quality simulation model for
well mixed estuaries and coastal seas: Vol. II, Computation Procedures,
<uri>https://www.rand.org/pubs/reports/R0708.html</uri> (last access: 15 February 2023), 1971.</mixed-citation></ref>
      <ref id="bib1.bib35"><label>35</label><?label 1?><mixed-citation>Le Pape, O. and Menesguen, A.: Hydrodynamic prevention of eutrophication in
the Bay of Brest (France), a modelling approach, J. Marine Syst.,
12, 171–186, <ext-link xlink:href="https://doi.org/10.1016/S0924-7963(96)00096-6" ext-link-type="DOI">10.1016/S0924-7963(96)00096-6</ext-link>, 1997.</mixed-citation></ref>
      <ref id="bib1.bib36"><label>36</label><?label 1?><mixed-citation>
le Roy, R. and Simon, B.: Réalisation et validation d'un modèle de
marée en Manche et dans le Golfe de Gascogne. Application à la
réalisation d'un nouveau programme de réduction des sondages
bathymétriques, Rapport technique, EPSHOM, 2003.</mixed-citation></ref>
      <ref id="bib1.bib37"><label>37</label><?label 1?><mixed-citation>Lévy, M., Resplandy, L., Klein, P., Capet, X., Iovino, D., and Ethé,
C.: Grid degradation of submesoscale resolving ocean models: Benefits for
offline passive tracer transport, Ocean Model., 48, 1–9,
<ext-link xlink:href="https://doi.org/10.1016/j.ocemod.2012.02.004" ext-link-type="DOI">10.1016/j.ocemod.2012.02.004</ext-link>, 2012.</mixed-citation></ref>
      <ref id="bib1.bib38"><label>38</label><?label 1?><mixed-citation>Li, J. G.: Filling oceans on a spherical multiple-cell grid, Ocean Model., 157, 101729, <ext-link xlink:href="https://doi.org/10.1016/j.ocemod.2020.101729" ext-link-type="DOI">10.1016/j.ocemod.2020.101729</ext-link>, 2021.</mixed-citation></ref>
      <ref id="bib1.bib39"><label>39</label><?label 1?><mixed-citation>Lyard, F. H., Allain, D. J., Cancet, M., Carrère, L., and Picot, N.: FES2014 global ocean tide atlas: design and performance, Ocean Sci., 17, 615–649, <ext-link xlink:href="https://doi.org/10.5194/os-17-615-2021" ext-link-type="DOI">10.5194/os-17-615-2021</ext-link>, 2021.</mixed-citation></ref>
      <ref id="bib1.bib40"><label>40</label><?label 1?><mixed-citation>Marchesiello, P., Capet, X., Menkes, C., and Kennan, S. C.: Submesoscale
dynamics in tropical instability waves, Ocean Model., 39, 31–46,
<ext-link xlink:href="https://doi.org/10.1016/j.ocemod.2011.04.011" ext-link-type="DOI">10.1016/j.ocemod.2011.04.011</ext-link>, 2011.</mixed-citation></ref>
      <ref id="bib1.bib41"><label>41</label><?label 1?><mixed-citation>Marsaleix, P., Auclair, F., and Estournel, C.: Considerations on Open Boundary Conditions for Regional and Coastal Ocean Models, J. Atmos. Ocean. Tech., 23, 1604–1613, <ext-link xlink:href="https://doi.org/10.1175/JTECH1930.1" ext-link-type="DOI">10.1175/JTECH1930.1</ext-link>, 2006.</mixed-citation></ref>
      <ref id="bib1.bib42"><label>42</label><?label 1?><mixed-citation>Muller, H., Blanke, B., Dumas, F., Lekien, F., and Mariette, V.: Estimating
the Lagrangian residual circulation in the Iroise Sea, J. Marine Syst., 78, S17–S36,
<ext-link xlink:href="https://doi.org/10.1016/j.jmarsys.2009.01.008" ext-link-type="DOI">10.1016/j.jmarsys.2009.01.008</ext-link>, 2009.</mixed-citation></ref>
      <ref id="bib1.bib43"><label>43</label><?label 1?><mixed-citation>Muller, H., Pineau-Guillou, L., Idier, D., and Ardhuin, F.: Atmospheric
storm surge modeling methodology along the French (Atlantic and English
Channel) coast, Ocean Dynam., 64, 1671–1692,
<ext-link xlink:href="https://doi.org/10.1007/s10236-014-0771-0" ext-link-type="DOI">10.1007/s10236-014-0771-0</ext-link>, 2014.</mixed-citation></ref>
      <ref id="bib1.bib44"><label>44</label><?label 1?><mixed-citation>Naranjo, C., Garcia-Lafuente, J., Sannino, G., and Sanchez-Garrido, J. C.:
How much do tides affect the circulation of the Mediterranean Sea? From
local processes in the Strait of Gibraltar to basin-scale effects, Prog.
Oceanogr., 127, 108–116,
<ext-link xlink:href="https://doi.org/10.1016/j.pocean.2014.06.005" ext-link-type="DOI">10.1016/j.pocean.2014.06.005</ext-link>, 2014.</mixed-citation></ref>
      <ref id="bib1.bib45"><label>45</label><?label 1?><mixed-citation>Neal, V. T.: Predicted flushing times and pollution distribution in the
columbia river estuary, Coastal Engineering Proceedings, 1, 10,
<ext-link xlink:href="https://doi.org/10.9753/icce.v10.81" ext-link-type="DOI">10.9753/icce.v10.81</ext-link>, 1966.</mixed-citation></ref>
      <ref id="bib1.bib46"><label>46</label><?label 1?><mixed-citation>Penven, P., Debreu, L., Marchesiello, P., and McWilliams, J. C.: Evaluation
and application of the ROMS 1-way embedding procedure to the central
california upwelling system, Ocean Model., 12, 157–187,
<ext-link xlink:href="https://doi.org/10.1016/j.ocemod.2005.05.002" ext-link-type="DOI">10.1016/j.ocemod.2005.05.002</ext-link>, 2006.</mixed-citation></ref>
      <ref id="bib1.bib47"><label>47</label><?label 1?><mixed-citation>Petton, S. and Dumas, F.: MARS3D/AGRIF model configuration for the Bay of
Brest, SEANOE [data set], <ext-link xlink:href="https://doi.org/10.17882/86400" ext-link-type="DOI">10.17882/86400</ext-link>,  2022a.</mixed-citation></ref>
      <ref id="bib1.bib48"><label>48</label><?label 1?><mixed-citation>Petton, S. and Dumas, F.: Hydrodynamic MARS3D V11.2 model coupled with two-nesting AGRIF library (V11.2), Zenodo [code], <ext-link xlink:href="https://doi.org/10.5281/zenodo.6672562" ext-link-type="DOI">10.5281/zenodo.6672562</ext-link>, 2022b.</mixed-citation></ref>
      <ref id="bib1.bib49"><label>49</label><?label 1?><mixed-citation>Petton, S., Pouvreau, S., and Dumas, F.: Intensive use of Lagrangian
trajectories to quantify coastal area dispersion, SEANOE [data set],
<ext-link xlink:href="https://doi.org/10.1007/s10236-019-01343-6" ext-link-type="DOI">10.1007/s10236-019-01343-6</ext-link>, 2020.</mixed-citation></ref>
      <ref id="bib1.bib50"><label>50</label><?label 1?><mixed-citation>Petton, S., Le Roy, V., Bellec, G., Queau, I., Le Souchu, P., and Pouvreau,
S.: Marine environmental station database of Daoulas bay, SEANOE [data set],
<ext-link xlink:href="https://doi.org/10.17882/42493" ext-link-type="DOI">10.17882/42493</ext-link>, 2021a.</mixed-citation></ref>
      <ref id="bib1.bib51"><label>51</label><?label 1?><mixed-citation>Petton, S., Le Roy, V., and Pouvreau, S.: SMART Daoulas data from coriolis
Data Centre in the Bay of Brest, SEANOE [data set],  <ext-link xlink:href="https://doi.org/10.17882/86020" ext-link-type="DOI">10.17882/86020</ext-link>,
2021b.</mixed-citation></ref>
      <ref id="bib1.bib52"><label>52</label><?label 1?><mixed-citation>Pineau-Guillou, L.: Previmer. Validation des atlas de composantes
harmoniques de hauteurs et courants de marée, Ifremer, Ifremer, France, ODE/DYNECO/PHYSED/2013-02, <uri>https://archimer.ifremer.fr/doc/00157/26801/</uri> (last access: 15 February 2023),
2013.</mixed-citation></ref>
      <ref id="bib1.bib53"><label>53</label><?label 1?><mixed-citation>Piton, V., Herrmann, M., Lyard, F., Marsaleix, P., Duhaut, T., Allain, D., and Ouillon, S.: Sensitivity study on the main tidal constituents of the Gulf of Tonkin by using the frequency-domain tidal solver in T-UGOm, Geosci. Model Dev., 13, 1583–1607, <ext-link xlink:href="https://doi.org/10.5194/gmd-13-1583-2020" ext-link-type="DOI">10.5194/gmd-13-1583-2020</ext-link>, 2020.</mixed-citation></ref>
      <ref id="bib1.bib54"><label>54</label><?label 1?><mixed-citation>Plus, M., Dumas, F., Stanisière, J. Y., and Maurer, D.: Hydrodynamic
characterization of the Arcachon Bay, using model-derived descriptors, Cont.
Shelf Res., 29, 1008–1013, <ext-link xlink:href="https://doi.org/10.1016/j.csr.2008.12.016" ext-link-type="DOI">10.1016/j.csr.2008.12.016</ext-link>, 2009.</mixed-citation></ref>
      <?pagebreak page1211?><ref id="bib1.bib55"><label>55</label><?label 1?><mixed-citation>Rétif, F., Bouchette, F., Marsaleix, P., Liou, J.-Y., Meulé, S.,
Michaud, H., Lin, L.-C., Hwang, K.-S., Bujan, N., Hwung, H.-H., and SIROCCO Team: Realistic simulation of instantaneous nearshore water levels during
typhoons, Coastal Engineering Proceedings, 1, 34,
<ext-link xlink:href="https://doi.org/10.9753/icce.v34.waves.17" ext-link-type="DOI">10.9753/icce.v34.waves.17</ext-link>, 2014.</mixed-citation></ref>
      <ref id="bib1.bib56"><label>56</label><?label 1?><mixed-citation>Rimmelin-Maury, P., Charria, G., Repecaud, M., Quemener, L., Beaumont, L.,
Guillot, A., Gautier, L., Prigent, S., Le Becque, T., Bihannic, I., Bonnat,
A., Le Roux, J.-F., Grossteffan, E., Devesa, J., and Bozec, Y.: Iroise buoy
data from Coriolis data center as core parameter support for Brest Bay and
Iroise sea studies, SEANOE [data set], <ext-link xlink:href="https://doi.org/10.17882/74004" ext-link-type="DOI">10.17882/74004</ext-link>, 2020.</mixed-citation></ref>
      <ref id="bib1.bib57"><label>57</label><?label 1?><mixed-citation>
Roelvink, J. A. D. and van Banning, G.: Design and development of DELFT3D
and application to coastal morphodynamics, Oceanographic Literature Review,
11, 42, 1995.</mixed-citation></ref>
      <ref id="bib1.bib58"><label>58</label><?label 1?><mixed-citation>Rossi, V., Ser-Giacomi, E., López, C., and Hernández-García,
E.: Hydrodynamic provinces and oceanic connectivity from a transport network
help designing marine reserves, Geophys. Res. Lett., 41, 2883–2891,
<ext-link xlink:href="https://doi.org/10.1002/2014GL059540" ext-link-type="DOI">10.1002/2014GL059540</ext-link>, 2014.</mixed-citation></ref>
      <ref id="bib1.bib59"><label>59</label><?label 1?><mixed-citation>Saulquin, B. and Gohin, F.: Mean seasonal cycle and evolution of the sea
surface temperature from satellite and in situ data in the English Channel
for the period 1986–2006, Int. J. Remote Sens., 31, 4069–4093,
<ext-link xlink:href="https://doi.org/10.1080/01431160903199155" ext-link-type="DOI">10.1080/01431160903199155</ext-link>, 2010.
</mixed-citation></ref><?xmltex \hack{\newpage}?>
      <ref id="bib1.bib60"><label>60</label><?label 1?><mixed-citation>Thomas, C. J., Lambrechts, J., Wolanski, E., Traag, V. A., Blondel, V. D.,
Deleersnijder, E., and Hanert, E.: Numerical modelling and graph theory
tools to study ecological connectivity in the Great Barrier Reef, Ecol.
Model., 272, 160–174, <ext-link xlink:href="https://doi.org/10.1016/J.ECOLMODEL.2013.10.002" ext-link-type="DOI">10.1016/J.ECOLMODEL.2013.10.002</ext-link>,
2014.</mixed-citation></ref>
      <ref id="bib1.bib61"><label>61</label><?label 1?><mixed-citation>Vanhellemont, Q.: Automated water surface temperature retrieval from Landsat
8/TIRS, Remote Sens. Environ., 237, 111518,
<ext-link xlink:href="https://doi.org/10.1016/j.rse.2019.111518" ext-link-type="DOI">10.1016/j.rse.2019.111518</ext-link>, 2020.</mixed-citation></ref>
      <ref id="bib1.bib62"><label>62</label><?label 1?><mixed-citation>Viero, D. P. and Defina, A.: Renewal time scales in tidal basins:
Climbing the Tower of Babel, Sustainable Hydraulics in the Era of Global
Change: Proceedings of the 4th IAHR Europe Congress, Liege, Belgium, 27-29 July 2016, 1st ed., CRC Press., <ext-link xlink:href="https://doi.org/10.1201/b21902, 338--345" ext-link-type="DOI">10.1201/b21902, 338–345</ext-link>, 2016.</mixed-citation></ref>
      <ref id="bib1.bib63"><label>63</label><?label 1?><mixed-citation>Yepes-Arbós, X., van den Oord, G., Acosta, M. C., and Carver, G. D.: Evaluation and optimisation of the I/O scalability for the next generation of Earth system models: IFS CY43R3 and XIOS 2.0 integration as a case study, Geosci. Model Dev., 15, 379–394, <ext-link xlink:href="https://doi.org/10.5194/gmd-15-379-2022" ext-link-type="DOI">10.5194/gmd-15-379-2022</ext-link>, 2022.</mixed-citation></ref>

  </ref-list></back>
    <!--<article-title-html>Using the two-way nesting technique AGRIF with MARS3D V11.2 to improve hydrodynamics and estimate environmental indicators</article-title-html>
<abstract-html/>
<ref-html id="bib1.bib1"><label>1</label><mixed-citation>
      
Auffret, G.-A.: Dynamique sédimentaire de la marge continentale celtique
– Evolution Cénozoïque - Spécificité du Pleistocène
supérieur et de l'Holocène, Université de Bordeaux I, <a href="https://archimer.ifremer.fr/doc/00034/14524/" target="_blank"/> (last access: 15 February 2023), 1983.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib2"><label>2</label><mixed-citation>
      
Autret, E. and Piolleì, J.-F.: European North West Shelf/Iberia Biscay Irish
Seas – High Resolution ODYSSEA L4 Sea Surface Temperature Analysis, Ifremer, Copernicus program,
<a href="https://doi.org/10.48670/moi-00152" target="_blank">https://doi.org/10.48670/moi-00152</a>, 2018.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib3"><label>3</label><mixed-citation>
      
Berger, M. J. and Oliger, J.: Adaptive mesh refinement for hyperbolic
partial differential equations, J. Comput. Phys., 53, 484–512,
<a href="https://doi.org/10.1016/0021-9991(84)90073-1" target="_blank">https://doi.org/10.1016/0021-9991(84)90073-1</a>, 1984.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib4"><label>4</label><mixed-citation>
      
Bezaud, M. and Pineau-Guillou, L.: Qualification des modèles
hydrodynamiques 3D des côtes de la Manche et de l'Atlantique, ODE/DYNECO/PHYSED/2015-02, 158 pp.,
2015.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib5"><label>5</label><mixed-citation>
      
Biastoch, A., Böning, C. W., Schwarzkopf, F. U., and Lutjeharms, J. R.
E.: Increase in Agulhas leakage due to poleward shift of Southern Hemisphere
westerlies, Nature, 462, 495–498, <a href="https://doi.org/10.1038/nature08519" target="_blank">https://doi.org/10.1038/nature08519</a>,
2009.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib6"><label>6</label><mixed-citation>
      
Biastoch, A., Sein, D., Durgadoo, J. V, Wang, Q., and Danilov, S.:
Simulating the Agulhas system in global ocean models – nesting vs.
multi-resolution unstructured meshes, Ocean Model., 121, 117–131,
<a href="https://doi.org/10.1016/j.ocemod.2017.12.002" target="_blank">https://doi.org/10.1016/j.ocemod.2017.12.002</a>, 2018.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib7"><label>7</label><mixed-citation>
      
Blayo, E. and Debreu, L.: Adaptive Mesh Refinement for Finite-Difference
Ocean Models: First Experiments, J. Phys. Oceanogr., 29, 1239–1250,
<a href="https://doi.org/10.1175/1520-0485(1999)029&lt;1239:AMRFFD&gt;2.0.CO;2" target="_blank">https://doi.org/10.1175/1520-0485(1999)029&lt;1239:AMRFFD&gt;2.0.CO;2</a>, 1999.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib8"><label>8</label><mixed-citation>
      
Cadier, M., Gorgues, T., Sourisseau, M., Edwards, C. A., Aumont, O.,
Marié, L., and Memery, L.: Assessing spatial and temporal variability of
phytoplankton communities' composition in the Iroise Sea ecosystem
(Brittany, France): A 3D modeling approach. Part 1: Biophysical control over
plankton functional types succession and distribution, J. Marine Syst., 165, 47–68,
<a href="https://doi.org/10.1016/j.jmarsys.2016.09.009" target="_blank">https://doi.org/10.1016/j.jmarsys.2016.09.009</a>, 2017.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib9"><label>9</label><mixed-citation>
      
Caillaud, M., Petton, S., Dumas, F., Rochette, S., and Vasquez, M.: Rejeu hydrodynamique à 500 m de résolution avec le modèle MARS3D-AGRIF – Zone Manche-Gascogne, Ifremer, <a href="https://doi.org/10.12770/3edee80f-5a3e-42f4-9427-9684073c87f5" target="_blank">https://doi.org/10.12770/3edee80f-5a3e-42f4-9427-9684073c87f5</a>, 2016.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib10"><label>10</label><mixed-citation>
      
Capet, X.: Contributions to the understanding of meso/submesoscale
turbulence and their impact on the ocean functioning, UPMC – Université
Paris 6 Pierre et Marie Curie, <a href="https://hal.science/tel-01346627" target="_blank"/> (last access: 15 February 2023), 2015.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib11"><label>11</label><mixed-citation>
      
de Brauwere, A., de Brye, B., Blaise, S., and Deleersnijder, E.: Residence
time, exposure time and connectivity in the Scheldt Estuary,
J. Marine Syst., 84, 85–95, <a href="https://doi.org/10.1016/j.jmarsys.2010.10.001" target="_blank">https://doi.org/10.1016/j.jmarsys.2010.10.001</a>,
2011.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib12"><label>12</label><mixed-citation>
      
Debreu, L. and Blayo, E.: Two-way embedding algorithms: a review, Ocean Dynam.,
58, 415–428, <a href="https://doi.org/10.1007/s10236-008-0150-9" target="_blank">https://doi.org/10.1007/s10236-008-0150-9</a>, 2008.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib13"><label>13</label><mixed-citation>
      
Debreu, L., Vouland, C., and Blayo, E.: AGRIF: Adaptive grid refinement in
Fortran, Comput. Geosci., 34, 8–13,
<a href="https://doi.org/10.1016/j.cageo.2007.01.009" target="_blank">https://doi.org/10.1016/j.cageo.2007.01.009</a>, 2008.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib14"><label>14</label><mixed-citation>
      
Debreu, L., Marchesiello, P., Penven, P., and Cambon, G.: Two-way nesting in
split-explicit ocean models: Algorithms, implementation and validation,
Ocean Model., 49–50, 1–21,
<a href="https://doi.org/10.1016/j.ocemod.2012.03.003" target="_blank">https://doi.org/10.1016/j.ocemod.2012.03.003</a>, 2012.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib15"><label>15</label><mixed-citation>
      
Delandmeter, P., Lambrechts, J., Legat, V., Vallaeys, V., Naithani, J., Thiery, W., Remacle, J.-F., and Deleersnijder, E.: A fully consistent and conservative vertically adaptive coordinate system for SLIM 3D v0.4 with an application to the thermocline oscillations of Lake Tanganyika, Geosci. Model Dev., 11, 1161–1179, <a href="https://doi.org/10.5194/gmd-11-1161-2018" target="_blank">https://doi.org/10.5194/gmd-11-1161-2018</a>, 2018.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib16"><label>16</label><mixed-citation>
      
Diaz, M., Grasso, F., Le Hir, P., Sottolichio, A., Caillaud, M., and
Thouvenin, B.: Modeling Mud and Sand Transfers Between a Macrotidal Estuary
and the Continental Shelf: Influence of the Sediment Transport
Parameterization, J. Geophys. Res.-Oceans, 125, e2019JC015643,
<a href="https://doi.org/10.1029/2019JC015643" target="_blank">https://doi.org/10.1029/2019JC015643</a>, 2020.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib17"><label>17</label><mixed-citation>
      
Dufois, F., Verney, R., Le Hir, P., Dumas, F., and Charmasson, S.: Impact of
winter storms on sediment erosion in the Rhone River prodelta and fate of
sediment in the Gulf of Lions (North Western Mediterranean Sea), Cont. Shelf
Res., 72, 57–72, <a href="https://doi.org/10.1016/j.csr.2013.11.004" target="_blank">https://doi.org/10.1016/j.csr.2013.11.004</a>,
2014.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib18"><label>18</label><mixed-citation>
      
Fiandrino, A., Ouisse, V., Dumas, F., Lagarde, F., Pete, R., Malet, N., Le
Noc, S., and de Wit, R.: Spatial patterns in coastal lagoons related to the
hydrodynamics of seawater intrusion, Mar. Pollut. Bull., 119, 132–144,
<a href="https://doi.org/10.1016/j.marpolbul.2017.03.006" target="_blank">https://doi.org/10.1016/j.marpolbul.2017.03.006</a>, 2017.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib19"><label>19</label><mixed-citation>
      
Frère, L., Paul-Pont, I., Rinnert, E., Petton, S., Jaffré, J.,
Bihannic, I., Soudant, P., Lambert, C., and Huvet, A.: Influence of
environmental and anthropogenic factors on the composition, concentration
and spatial distribution of microplastics: A case study of the Bay of Brest
(Brittany, France), Environ. Pollut., 225, 211–222,
<a href="https://doi.org/10.1016/j.envpol.2017.03.023" target="_blank">https://doi.org/10.1016/j.envpol.2017.03.023</a>, 2017.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib20"><label>20</label><mixed-citation>
      
Gac, J.-P., Marrec, P., Cariou, T., Guillerm, C., Macé, É., Vernet,
M., and Bozec, Y.: Cardinal Buoys: An Opportunity for the Study of Air-Sea
CO2 Fluxes in Coastal Ecosystems, Front. Mar. Sci., 7, 712,
<a href="https://doi.org/10.3389/fmars.2020.00712" target="_blank">https://doi.org/10.3389/fmars.2020.00712</a>, 2020.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib21"><label>21</label><mixed-citation>
      
Gangnery, A., Normand, J., Duval, C., Cugier, P., Grangeré, K., Petton,
B., Petton, S., Orvain, F., and Pernet, F.: Connectivities with Shellfish
Farms and Channel Rivers are Associated with Mortality Risk in Oysters,
Aquacult. Env. Interac., 11, 493–506, <a href="https://doi.org/10.3354/aei00327" target="_blank">https://doi.org/10.3354/aei00327</a>,
2019.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib22"><label>22</label><mixed-citation>
      
Garreau, P. and Garnier, V.: Physical processes acting in a numerical
oceanic model during the convection period of SOP2, in: 9th HyMeX workshop,
21–25 September 2015, Mykonos, Greece, Oral, 2015.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib23"><label>23</label><mixed-citation>
      
Grasso, F., Verney, R., Le Hir, P., Thouvenin, B., Schulz, E., Kervella, Y.,
Khojasteh Pour Fard, I., Lemoine, J.-P., Dumas, F., and Garnier, V.:
Suspended Sediment Dynamics in the Macrotidal Seine Estuary (France): 1.
Numerical Modeling of Turbidity Maximum Dynamics, J. Geophys. Res.-Oceans, 123,
558–577, <a href="https://doi.org/10.1002/2017JC013185" target="_blank">https://doi.org/10.1002/2017JC013185</a>, 2018.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib24"><label>24</label><mixed-citation>
      
Grifoll, M., Del Campo, A., Espino, M., Mader, J., González, M., and
Borja, Á.: Water renewal and risk assessment of water pollution in
semi-enclosed domains: Application to Bilbao Harbour (Bay of Biscay),
J. Marine Syst., 109–110, S241–S251,
<a href="https://doi.org/10.1016/j.jmarsys.2011.07.010" target="_blank">https://doi.org/10.1016/j.jmarsys.2011.07.010</a>, 2013.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib25"><label>25</label><mixed-citation>
      
Heinze, C. and Gehlen, M.: Modeling Ocean Biogeochemical Processes and the
Resulting Tracer Distributions, in: Ocean Circulation and Climate, vol. 103,
edited by: Siedler, G., Griffies, S. M., Gould, J., and Church,
J. A., International Geophysics, Academic Press, 667–694,
<a href="https://doi.org/10.1016/B978-0-12-391851-2.00026-X" target="_blank">https://doi.org/10.1016/B978-0-12-391851-2.00026-X</a>, 2013.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib26"><label>26</label><mixed-citation>
      
Huret, M., Sourisseau, M., Petitgas, P., Struski, C., Léger, F., and
Lazure, P.: A multi-decadal hindcast of a physical-biogeochemical model and
derived oceanographic indices in the Bay of Biscay, J. Marine Syst., 109–110, <a href="https://doi.org/10.1016/j.jmarsys.2012.02.009" target="_blank">https://doi.org/10.1016/j.jmarsys.2012.02.009</a>, 2013.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib27"><label>27</label><mixed-citation>
      
Janin, J. M., Lepeintre, F., and Péchon, P.: TELEMAC-3D: A Finite Element Code to Solve 3D Free Surface Flow Problems, edited by: Partridge, P. W., Computer Modelling of Seas and Coastal Regions, Springer, Dordrecht, <a href="https://doi.org/10.1007/978-94-011-2878-0_36" target="_blank">https://doi.org/10.1007/978-94-011-2878-0_36</a>, 1992.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib28"><label>28</label><mixed-citation>
      
Jiang, C., Liu, Y., Long, Y., and Wu, C.: Estimation of Residence Time and
Transport Trajectory in Tieshangang Bay, China, Water, 9, 15,
<a href="https://doi.org/10.3390/w9050321" target="_blank">https://doi.org/10.3390/w9050321</a>, 2017.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib29"><label>29</label><mixed-citation>
      
Jordi, A., Ferrer, M. I., Vizoso, G., Orfila, A., Basterretxea, G., Casas,
B., Álvarez, A., Roig, D., Garau, B., Martínez, M., Fernández,
V., Fornés, A., Ruiz, M., Fornós, J. J., Balaguer, P., Duarte, C.
M., Rodríguez, I., Alvarez, E., Onken, R., Orfila, P., and Tintoré,
J.: Scientific management of Mediterranean coastal zone: A hybrid ocean
forecasting system for oil spill and search and rescue operations, Mar. Pollut. Bull., 53, 361–368, <a href="https://doi.org/10.1016/j.marpolbul.2005.10.008" target="_blank">https://doi.org/10.1016/j.marpolbul.2005.10.008</a>,
2006.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib30"><label>30</label><mixed-citation>
      
Jouon, A., Douillet, P., Ouillon, S., and Fraunié, P.: Calculations of
hydrodynamic time parameters in a semi-opened coastal zone using a 3D
hydrodynamic model, Cont. Shelf Res., 26, 1395–1415,
<a href="https://doi.org/10.1016/j.csr.2005.11.014" target="_blank">https://doi.org/10.1016/j.csr.2005.11.014</a>, 2006.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib31"><label>31</label><mixed-citation>
      
Kininmonth, S. J., De'ath, G., and Possingham, H. P.: Graph theoretic
topology of the Great but small Barrier Reef world, Theor. Ecol., 3, 75–88,
<a href="https://doi.org/10.1007/s12080-009-0055-3" target="_blank">https://doi.org/10.1007/s12080-009-0055-3</a>, 2010.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib32"><label>32</label><mixed-citation>
      
Lazure, P. and Dumas, F.: An external–internal mode coupling for a 3D
hydrodynamical model for applications at regional scale (MARS), Adv. Water
Resour., 31, 233–250, <a href="https://doi.org/10.1016/J.ADVWATRES.2007.06.010" target="_blank">https://doi.org/10.1016/J.ADVWATRES.2007.06.010</a>, 2008.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib33"><label>33</label><mixed-citation>
      
Lazure, P., Garnier, V., Dumas, F., Herry, C., and Chifflet, M.: Development
of a hydrodynamic model of the Bay of Biscay. Validation of hydrology, Cont.
Shelf Res., 29, 985–997, <a href="https://doi.org/10.1016/j.csr.2008.12.017" target="_blank">https://doi.org/10.1016/j.csr.2008.12.017</a>, 2009.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib34"><label>34</label><mixed-citation>
      
Leendertse, J. J. and Gritton, E. C.: A water quality simulation model for
well mixed estuaries and coastal seas: Vol. II, Computation Procedures,
<a href="https://www.rand.org/pubs/reports/R0708.html" target="_blank"/> (last access: 15 February 2023), 1971.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib35"><label>35</label><mixed-citation>
      
Le Pape, O. and Menesguen, A.: Hydrodynamic prevention of eutrophication in
the Bay of Brest (France), a modelling approach, J. Marine Syst.,
12, 171–186, <a href="https://doi.org/10.1016/S0924-7963(96)00096-6" target="_blank">https://doi.org/10.1016/S0924-7963(96)00096-6</a>, 1997.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib36"><label>36</label><mixed-citation>
      
le Roy, R. and Simon, B.: Réalisation et validation d'un modèle de
marée en Manche et dans le Golfe de Gascogne. Application à la
réalisation d'un nouveau programme de réduction des sondages
bathymétriques, Rapport technique, EPSHOM, 2003.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib37"><label>37</label><mixed-citation>
      
Lévy, M., Resplandy, L., Klein, P., Capet, X., Iovino, D., and Ethé,
C.: Grid degradation of submesoscale resolving ocean models: Benefits for
offline passive tracer transport, Ocean Model., 48, 1–9,
<a href="https://doi.org/10.1016/j.ocemod.2012.02.004" target="_blank">https://doi.org/10.1016/j.ocemod.2012.02.004</a>, 2012.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib38"><label>38</label><mixed-citation>
      
Li, J. G.: Filling oceans on a spherical multiple-cell grid, Ocean Model., 157, 101729, <a href="https://doi.org/10.1016/j.ocemod.2020.101729" target="_blank">https://doi.org/10.1016/j.ocemod.2020.101729</a>, 2021.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib39"><label>39</label><mixed-citation>
      
Lyard, F. H., Allain, D. J., Cancet, M., Carrère, L., and Picot, N.: FES2014 global ocean tide atlas: design and performance, Ocean Sci., 17, 615–649, <a href="https://doi.org/10.5194/os-17-615-2021" target="_blank">https://doi.org/10.5194/os-17-615-2021</a>, 2021.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib40"><label>40</label><mixed-citation>
      
Marchesiello, P., Capet, X., Menkes, C., and Kennan, S. C.: Submesoscale
dynamics in tropical instability waves, Ocean Model., 39, 31–46,
<a href="https://doi.org/10.1016/j.ocemod.2011.04.011" target="_blank">https://doi.org/10.1016/j.ocemod.2011.04.011</a>, 2011.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib41"><label>41</label><mixed-citation>
      
Marsaleix, P., Auclair, F., and Estournel, C.: Considerations on Open Boundary Conditions for Regional and Coastal Ocean Models, J. Atmos. Ocean. Tech., 23, 1604–1613, <a href="https://doi.org/10.1175/JTECH1930.1" target="_blank">https://doi.org/10.1175/JTECH1930.1</a>, 2006.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib42"><label>42</label><mixed-citation>
      
Muller, H., Blanke, B., Dumas, F., Lekien, F., and Mariette, V.: Estimating
the Lagrangian residual circulation in the Iroise Sea, J. Marine Syst., 78, S17–S36,
<a href="https://doi.org/10.1016/j.jmarsys.2009.01.008" target="_blank">https://doi.org/10.1016/j.jmarsys.2009.01.008</a>, 2009.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib43"><label>43</label><mixed-citation>
      
Muller, H., Pineau-Guillou, L., Idier, D., and Ardhuin, F.: Atmospheric
storm surge modeling methodology along the French (Atlantic and English
Channel) coast, Ocean Dynam., 64, 1671–1692,
<a href="https://doi.org/10.1007/s10236-014-0771-0" target="_blank">https://doi.org/10.1007/s10236-014-0771-0</a>, 2014.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib44"><label>44</label><mixed-citation>
      
Naranjo, C., Garcia-Lafuente, J., Sannino, G., and Sanchez-Garrido, J. C.:
How much do tides affect the circulation of the Mediterranean Sea? From
local processes in the Strait of Gibraltar to basin-scale effects, Prog.
Oceanogr., 127, 108–116,
<a href="https://doi.org/10.1016/j.pocean.2014.06.005" target="_blank">https://doi.org/10.1016/j.pocean.2014.06.005</a>, 2014.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib45"><label>45</label><mixed-citation>
      
Neal, V. T.: Predicted flushing times and pollution distribution in the
columbia river estuary, Coastal Engineering Proceedings, 1, 10,
<a href="https://doi.org/10.9753/icce.v10.81" target="_blank">https://doi.org/10.9753/icce.v10.81</a>, 1966.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib46"><label>46</label><mixed-citation>
      
Penven, P., Debreu, L., Marchesiello, P., and McWilliams, J. C.: Evaluation
and application of the ROMS 1-way embedding procedure to the central
california upwelling system, Ocean Model., 12, 157–187,
<a href="https://doi.org/10.1016/j.ocemod.2005.05.002" target="_blank">https://doi.org/10.1016/j.ocemod.2005.05.002</a>, 2006.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib47"><label>47</label><mixed-citation>
      
Petton, S. and Dumas, F.: MARS3D/AGRIF model configuration for the Bay of
Brest, SEANOE [data set], <a href="https://doi.org/10.17882/86400" target="_blank">https://doi.org/10.17882/86400</a>,  2022a.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib48"><label>48</label><mixed-citation>
      
Petton, S. and Dumas, F.: Hydrodynamic MARS3D V11.2 model coupled with two-nesting AGRIF library (V11.2), Zenodo [code], <a href="https://doi.org/10.5281/zenodo.6672562" target="_blank">https://doi.org/10.5281/zenodo.6672562</a>, 2022b.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib49"><label>49</label><mixed-citation>
      
Petton, S., Pouvreau, S., and Dumas, F.: Intensive use of Lagrangian
trajectories to quantify coastal area dispersion, SEANOE [data set],
<a href="https://doi.org/10.1007/s10236-019-01343-6" target="_blank">https://doi.org/10.1007/s10236-019-01343-6</a>, 2020.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib50"><label>50</label><mixed-citation>
      
Petton, S., Le Roy, V., Bellec, G., Queau, I., Le Souchu, P., and Pouvreau,
S.: Marine environmental station database of Daoulas bay, SEANOE [data set],
<a href="https://doi.org/10.17882/42493" target="_blank">https://doi.org/10.17882/42493</a>, 2021a.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib51"><label>51</label><mixed-citation>
      
Petton, S., Le Roy, V., and Pouvreau, S.: SMART Daoulas data from coriolis
Data Centre in the Bay of Brest, SEANOE [data set],  <a href="https://doi.org/10.17882/86020" target="_blank">https://doi.org/10.17882/86020</a>,
2021b.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib52"><label>52</label><mixed-citation>
      
Pineau-Guillou, L.: Previmer. Validation des atlas de composantes
harmoniques de hauteurs et courants de marée, Ifremer, Ifremer, France, ODE/DYNECO/PHYSED/2013-02, <a href="https://archimer.ifremer.fr/doc/00157/26801/" target="_blank"/> (last access: 15 February 2023),
2013.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib53"><label>53</label><mixed-citation>
      
Piton, V., Herrmann, M., Lyard, F., Marsaleix, P., Duhaut, T., Allain, D., and Ouillon, S.: Sensitivity study on the main tidal constituents of the Gulf of Tonkin by using the frequency-domain tidal solver in T-UGOm, Geosci. Model Dev., 13, 1583–1607, <a href="https://doi.org/10.5194/gmd-13-1583-2020" target="_blank">https://doi.org/10.5194/gmd-13-1583-2020</a>, 2020.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib54"><label>54</label><mixed-citation>
      
Plus, M., Dumas, F., Stanisière, J. Y., and Maurer, D.: Hydrodynamic
characterization of the Arcachon Bay, using model-derived descriptors, Cont.
Shelf Res., 29, 1008–1013, <a href="https://doi.org/10.1016/j.csr.2008.12.016" target="_blank">https://doi.org/10.1016/j.csr.2008.12.016</a>, 2009.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib55"><label>55</label><mixed-citation>
      
Rétif, F., Bouchette, F., Marsaleix, P., Liou, J.-Y., Meulé, S.,
Michaud, H., Lin, L.-C., Hwang, K.-S., Bujan, N., Hwung, H.-H., and SIROCCO Team: Realistic simulation of instantaneous nearshore water levels during
typhoons, Coastal Engineering Proceedings, 1, 34,
<a href="https://doi.org/10.9753/icce.v34.waves.17" target="_blank">https://doi.org/10.9753/icce.v34.waves.17</a>, 2014.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib56"><label>56</label><mixed-citation>
      
Rimmelin-Maury, P., Charria, G., Repecaud, M., Quemener, L., Beaumont, L.,
Guillot, A., Gautier, L., Prigent, S., Le Becque, T., Bihannic, I., Bonnat,
A., Le Roux, J.-F., Grossteffan, E., Devesa, J., and Bozec, Y.: Iroise buoy
data from Coriolis data center as core parameter support for Brest Bay and
Iroise sea studies, SEANOE [data set], <a href="https://doi.org/10.17882/74004" target="_blank">https://doi.org/10.17882/74004</a>, 2020.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib57"><label>57</label><mixed-citation>
      
Roelvink, J. A. D. and van Banning, G.: Design and development of DELFT3D
and application to coastal morphodynamics, Oceanographic Literature Review,
11, 42, 1995.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib58"><label>58</label><mixed-citation>
      
Rossi, V., Ser-Giacomi, E., López, C., and Hernández-García,
E.: Hydrodynamic provinces and oceanic connectivity from a transport network
help designing marine reserves, Geophys. Res. Lett., 41, 2883–2891,
<a href="https://doi.org/10.1002/2014GL059540" target="_blank">https://doi.org/10.1002/2014GL059540</a>, 2014.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib59"><label>59</label><mixed-citation>
      
Saulquin, B. and Gohin, F.: Mean seasonal cycle and evolution of the sea
surface temperature from satellite and in situ data in the English Channel
for the period 1986–2006, Int. J. Remote Sens., 31, 4069–4093,
<a href="https://doi.org/10.1080/01431160903199155" target="_blank">https://doi.org/10.1080/01431160903199155</a>, 2010.


    </mixed-citation></ref-html>
<ref-html id="bib1.bib60"><label>60</label><mixed-citation>
      
Thomas, C. J., Lambrechts, J., Wolanski, E., Traag, V. A., Blondel, V. D.,
Deleersnijder, E., and Hanert, E.: Numerical modelling and graph theory
tools to study ecological connectivity in the Great Barrier Reef, Ecol.
Model., 272, 160–174, <a href="https://doi.org/10.1016/J.ECOLMODEL.2013.10.002" target="_blank">https://doi.org/10.1016/J.ECOLMODEL.2013.10.002</a>,
2014.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib61"><label>61</label><mixed-citation>
      
Vanhellemont, Q.: Automated water surface temperature retrieval from Landsat
8/TIRS, Remote Sens. Environ., 237, 111518,
<a href="https://doi.org/10.1016/j.rse.2019.111518" target="_blank">https://doi.org/10.1016/j.rse.2019.111518</a>, 2020.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib62"><label>62</label><mixed-citation>
      
Viero, D. P. and Defina, A.: Renewal time scales in tidal basins:
Climbing the Tower of Babel, Sustainable Hydraulics in the Era of Global
Change: Proceedings of the 4th IAHR Europe Congress, Liege, Belgium, 27-29 July 2016, 1st ed., CRC Press., <a href="https://doi.org/10.1201/b21902, 338-345" target="_blank">https://doi.org/10.1201/b21902, 338–345</a>, 2016.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib63"><label>63</label><mixed-citation>
      
Yepes-Arbós, X., van den Oord, G., Acosta, M. C., and Carver, G. D.: Evaluation and optimisation of the I/O scalability for the next generation of Earth system models: IFS CY43R3 and XIOS 2.0 integration as a case study, Geosci. Model Dev., 15, 379–394, <a href="https://doi.org/10.5194/gmd-15-379-2022" target="_blank">https://doi.org/10.5194/gmd-15-379-2022</a>, 2022.

    </mixed-citation></ref-html>--></article>
