<?xml version="1.0"?>
<testlist version="2.0">

  <test name="ERI_Ly44" grid="f09_g17_gris20" compset="T1850Gg" testmods="cism/isostasy_period4">
    <machines>

      <machine name="derecho" compiler="intel" category="aux_glc">
        <options>
          <option name="wallclock">0:40</option>
          <option name="comment">include a longer ERI test to catch problems that may just show up after longer runs, using a coarse resolution to get faster turnaround and lower cost; include isostasy because there are extra subtleties with getting isostasy to restart exactly</option>
        </options>
      </machine>

    </machines>
  </test>

  <test name="ERI_Ly15" grid="f09_g17_gris4" compset="T1850Gg" testmods="cism/isostasy_period4">
    <machines>

      <machine name="derecho" compiler="intel" category="prebeta">
        <options>
          <option name="wallclock">0:40</option>
        </options>
      </machine>

      <machine name="derecho" compiler="intel" category="aux_glc">
        <options>
          <option name="wallclock">0:40</option>
          <option name="comment">include an ERI test at the production resolution, to exercise all options used at that resolution; include isostasy because there are extra subtleties with getting isostasy to restart exactly</option>
        </options>
      </machine>

    </machines>
  </test>

  <test name="ERS_D_Ld9" grid="f10_f10_mg37" compset="I1850Clm50SpG" testmods="cism/override_glc_frac">
    <machines>

      <machine name="derecho" compiler="gnu" category="aux_glc">
        <options>
          <option name="wallclock">01:30:00</option>
          <option name="comment">Make sure glc override options work correctly, and restart properly. Note that we do not generate cism history files in this test, but that is okay: this test is about what is sent to the coupler, not what is output by CISM. (And currently CISM history files do not restart properly in this test.)</option>
        </options>
      </machine>

    </machines>
  </test>

  <test name="ERS_Ly11" grid="f09_g17_gris20" compset="T1850Gg">
    <machines>

      <machine name="derecho" compiler="gnu" category="aux_glc">
        <options>
          <option name="wallclock">0:20</option>
        </options>
      </machine>

    </machines>
  </test>

  <test name="ERS_Ly11" grid="f09_g17_gris20" compset="T1850Gg" testmods="cism/oneway">
    <machines>

      <machine name="derecho" compiler="gnu" category="aux_glc">
        <options>
          <option name="wallclock">0:20</option>
          <option name="comment">(3-3-16) identical to an existing non-oneway test, which generates some non-zero runoff fluxes</option>
        </options>
      </machine>

    </machines>
  </test>

  <!-- Remove mct tests as they are no longer supported -->
  <!--test name="ERS_Vmct_D_Ly3" grid="f09_g17_gris4" compset="T1850Gg" testmods="cism/noevolve">
    <machines>

      <machine name="derecho" compiler="intel" category="aux_glc">
        <options>
          <option name="wallclock">0:30</option>
          <option name="comment">ice evolution off is the typical operation of cism within cesm, so test that configuration</option>
        </options>
      </machine>

    </machines>
  </test-->

  <!-- BUG(wjs, 2021-09-29, ESCOMP/CISM-wrapper#60) This currently fails
       at namelist generation time, with "ERROR: for TG compset require
       that lnd_cpl_time equal glc_cpl_time". If I remember correctly,
       Mariana Vertenstein has fixed this issue on a branch of CMEPS.
       Once it is working, we should restore this test. -->
  <test name="ERS_D_Ly3" grid="f09_g17_gris4" compset="T1850Gg" testmods="cism/noevolve">
    <machines>

      <machine name="derecho" compiler="intel" category="aux_glc">
        <options>
          <option name="wallclock">0:30</option>
          <option name="comment">ice evolution off is the typical operation of cism within cesm, so test that configuration</option>
        </options>
      </machine>

    </machines>
  </test>


  <test name="ERS_Ly3_C2_D" grid="f09_g17_gris20" compset="T1850Gg">
    <machines>

      <machine name="derecho" compiler="intel" category="aux_glc">
        <options>
          <option name="wallclock">0:30</option>
          <option name="comment">Include a CISM2 multi-instance restart test, and a multi-instance debug test</option>
        </options>
      </machine>

      <machine name="derecho" compiler="intel" category="prebeta">
        <options>
          <option name="wallclock">0:30</option>
        </options>
      </machine>

    </machines>
  </test>
  <test name="ERS_Ly3_C2_D" grid="f09_g17_gris20" compset="T1850Gg">
    <machines>

      <machine name="derecho" compiler="intel" category="aux_glc">
        <options>
          <option name="wallclock">0:30</option>
          <option name="comment">Include a CISM2 multi-instance restart test, and a multi-instance debug test</option>
        </options>
      </machine>

      <machine name="derecho" compiler="intel" category="prebeta">
        <options>
          <option name="wallclock">0:30</option>
        </options>
      </machine>

    </machines>
  </test>

  <test name="ERS_Ly7" grid="f09_g17_gris4" compset="T1850Gg">
    <machines>

      <machine name="derecho" compiler="intel" category="aux_glc">
        <options>
          <option name="wallclock">0:20</option>
          <option name="comment">include one ERS test of the typical production resolution for CISM2</option>
        </options>
      </machine>

      <machine name="derecho" compiler="intel" category="prealpha">
        <options>
          <option name="wallclock">0:20</option>
        </options>
      </machine>

    </machines>
  </test>

  <test name="ERS_Ly5" grid="f09_g17_ais8" compset="T1850Ga">
    <machines>

      <machine name="derecho" compiler="intel" category="aux_glc">
        <options>
          <option name="wallclock">0:20</option>
          <option name="comment">include a non-debug T compset test of Antarctica</option>
        </options>
      </machine>

    </machines>
  </test>

  <test name="ERS_D_Ly3" grid="f09_g17_gris4" compset="T1850Gg" testmods="cism/cmip6_evolving_icesheet">
    <machines>

      <machine name="derecho" compiler="intel" category="aux_glc">
        <options>
          <option name="wallclock">1:00</option>
          <option name="comment">Want both an ERS test and a _D test that include the cmip6_evolving_icesheet usermods</option>
        </options>
      </machine>

    </machines>
  </test>

  <test name="ERS_Ly3" grid="f10_f10_mg37" compset="I1850Clm50SpG">
    <machines>

      <machine name="derecho" compiler="intel" category="aux_glc">
        <options>
          <option name="wallclock">1:59</option>
          <!-- 2016-10-25: There is a big jump in memory at the start of year
               2. In the 5-year run, things then stay roughly constant after
               that. Note that the start of year 2 is when CISM does its first
               prognostic solve, so I think this is expected behavior. Thus, I
               believe this is not actually a problem. -->
          <option name="memleak_tolerance">0.34</option>
          <option name="comment">Need IG ERS test to catch problems with fields sent before the end of the first year after restart. Also note that this is the only multi-year non-TG test in the test list, so this is the one test that a production-like configuration can run for a few years.</option>
        </options>
      </machine>

    </machines>
  </test>

  <test name="ERS_Ly3" grid="f10_f10_ais8_mg37" compset="I1850Clm50SpGa">
    <machines>

      <machine name="derecho" compiler="intel" category="aux_glc">
        <options>
          <option name="wallclock">1:59</option>
          <!-- 2016-10-25: Notes from similar Greenland, non-NUOPC test:
               There is a big jump in memory at the start of year
               2. In the 5-year run, things then stay roughly constant after
               that. Note that the start of year 2 is when CISM does its first
               prognostic solve, so I think this is expected behavior. Thus, I
               believe this is not actually a problem. -->
          <option name="memleak_tolerance">0.34</option>
          <option name="comment">include a multi-year I compset test with Antarctica</option>
        </options>
      </machine>

    </machines>
  </test>

  <test name="SMS_Lm13" grid="f10_f10_mg37" compset="I1850Clm50SpG">
    <machines>

      <machine name="derecho" compiler="intel" category="prealpha">
        <options>
          <option name="wallclock">2:00</option>
          <option name="comment">Include one test in the prealpha test list that exercises CISM without resorting to the test_coupling testmod, in order to exercise CISM in a production-like configuration. 13-months rather than 1-year in order to allow time for CISM to affect CLM (and CLM to produce the next month's history file).</option>
        </options>
      </machine>

    </machines>
  </test>

  <test name="ERS_Lm24" grid="f10_f10_ais8gris4_mg37" compset="I1850Clm50SpGag">
    <machines>

      <machine name="derecho" compiler="intel" category="aux_glc">
        <options>
          <option name="wallclock">1:59:00</option>
          <!-- 2016-10-25: At least in the ERS_Ly5 test: There is a big jump in
               memory at the start of year 2. In the 5-year run, things then
               stay roughly constant after that. Note that the start of year 2
               is when CISM does its first prognostic solve, so I think this is
               expected behavior. Thus, I believe this is not actually a
               problem. -->
          <option name="memleak_tolerance">0.34</option>
          <option name="comment">Mid-year exact restart test. Also covers multiple ice sheets in a multi-year I compset test.</option>
        </options>
      </machine>

    </machines>
  </test>

  <test name="ERI_Lm24" grid="f10_f10_mg37" compset="I1850Clm50SpG" testmods="cism/isostasy_period4">
    <machines>

      <machine name="derecho" compiler="intel" category="aux_glc">
        <options>
          <option name="wallclock">1:59</option>
          <!-- 2016-10-25: At least in the ERS_Ly5 test: There is a big jump in
               memory at the start of year 2. In the 5-year run, things then
               stay roughly constant after that. Note that the start of year 2
               is when CISM does its first prognostic solve, so I think this is
               expected behavior. Thus, I believe this is not actually a
               problem. -->
          <option name="memleak_tolerance">0.34</option>
          <option name="comment">Test branching mid-year; include isostasy because there are extra subtleties with getting isostasy to restart exactly</option>
        </options>
      </machine>

    </machines>
  </test>

  <test name="ERI" grid="f10_f10_mg37" compset="I1850Clm50SpG" testmods="cism/test_coupling">
    <machines>

      <machine name="derecho" compiler="gnu" category="aux_glc">
        <options>
          <option name="wallclock">1:45</option>
          <option name="comment">Changes often break the test_coupling testmod, so include an ERI test with this testmod to help catch these problems</option>
        </options>
      </machine>

    </machines>
  </test>

  <test name="NCK_Ly3" grid="f09_g17_gris20" compset="T1850Gg">
    <machines>

      <machine name="derecho" compiler="gnu" category="aux_glc">
        <options>
          <option name="wallclock">0:20</option>
        </options>
      </machine>

    </machines>
  </test>
  <test name="MCC_Ly3" grid="f09_g17_gris20" compset="T1850Gg">
    <machines>

      <machine name="derecho" compiler="gnu" category="prebeta">
        <options>
          <option name="wallclock">0:20</option>
        </options>
      </machine>

      <machine name="derecho" compiler="gnu" category="aux_glc">
        <options>
          <option name="wallclock">0:20</option>
        </options>
      </machine>

    </machines>
  </test>

  <test name="SMS_D_Ld5" grid="f10_f10_ais8gris4_mg37" compset="I1850Clm50SpGag" testmods="cism/test_coupling">
    <machines>

      <machine name="derecho" compiler="gnu" category="aux_glc">
        <options>
          <option name="wallclock">0:30:00</option>
          <option name="comment">Include a short debug I compset test with both Antarctica and Greenland (basically duplicates a test on izumi, so we don't need to do baseline comparisons on izumi)</option>
        </options>
      </machine>

    </machines>
  </test>

  <test name="SMS_D_Ld5_P24x1" grid="f10_f10_ais8gris4_mg37" compset="I1850Clm50SpGag" testmods="cism/test_coupling">
    <machines>

      <machine name="izumi" compiler="nag" category="aux_glc">
        <options>
          <option name="wallclock">1:59:00</option>
          <option name="comment">IG nag debug test with both Antarctica and Greenland, to check logic for fields sent from glc to lnd</option>
        </options>
      </machine>

      <machine name="izumi" compiler="nag" category="prealpha">
        <options>
          <option name="wallclock">1:59:00</option>
        </options>
      </machine>

    </machines>
  </test>

  <test name="SMS_D_Ly1" grid="f09_g17_gris4" compset="T1850Gg" testmods="cism/isostasy_period1">
    <machines>

      <machine name="derecho" compiler="intel" category="aux_glc">
        <options>
          <option name="wallclock">0:20</option>
          <option name="comment">Include a debug test with isostasy turned on</option>
        </options>
      </machine>

    </machines>
  </test>

  <test name="SMS_D_Ly1" grid="f09_g17_gris4" compset="T1850Gg">
    <machines>

      <machine name="derecho" compiler="gnu" category="aux_glc">
        <options>
          <option name="wallclock">0:20</option>
        </options>
      </machine>

    </machines>
  </test>

  <test name="SMS_D_Ly1" grid="f09_g17_gris4" compset="T1850Gg">
    <machines>

      <machine name="derecho" compiler="intel" category="aux_glc">
        <options>
          <option name="wallclock">0:20</option>
        </options>
      </machine>

      <machine name="derecho" compiler="intel" category="prebeta">
        <options>
          <option name="wallclock">0:20</option>
        </options>
      </machine>

    </machines>
  </test>

  <test name="SMS_D_Ly1" grid="f09_g17_ais8" compset="T1850Ga">
    <machines>

      <machine name="derecho" compiler="gnu" category="aux_glc">
        <options>
          <option name="wallclock">0:20</option>
          <option name="comment">include a debug T compset test with Antarctica, gnu compiler</option>
        </options>
      </machine>

      <machine name="derecho" compiler="gnu" category="prealpha">
        <options>
          <option name="wallclock">0:20</option>
          <option name="comment">include an Antarctica test in the prealpha suite</option>
        </options>
      </machine>

    </machines>
  </test>
  <test name="SMS_D_Ly1" grid="f09_g17_ais8" compset="T1850Ga">
    <machines>

      <machine name="derecho" compiler="intel" category="aux_glc">
        <options>
          <option name="wallclock">0:20</option>
          <option name="comment">include a debug T compset test with Antarctica, intel compiler</option>
        </options>
      </machine>

    </machines>
  </test>

  <test name="SMS_D_Ly1_P24x1" grid="f09_g17_gris4" compset="T1850Gg">
    <machines>

      <machine name="izumi" compiler="nag" category="aux_glc">
        <options>
          <option name="wallclock">1:59</option>
          <option name="comment">short nag debug test of CISM2 at production resolution, to test options specific to the production resolution (currently, which_ho_babc differs at the production resolution)</option>
        </options>
      </machine>

    </machines>
  </test>

  <test name="SMS_D_Ly1_P24x1" grid="f09_g17_ais8" compset="T1850Ga">
    <machines>

      <machine name="izumi" compiler="nag" category="aux_glc">
        <options>
          <option name="wallclock">1:59</option>
          <option name="comment">short nag debug T compset test of CISM2 with Antarctica</option>
        </options>
      </machine>

    </machines>
  </test>
  
  <test name="SMS_D_Ly3_P24x1" grid="f09_g17_gris20" compset="T1850Gg">
    <machines>

      <machine name="izumi" compiler="nag" category="aux_glc">
        <options>
          <option name="wallclock">1:59</option>
          <option name="comment">multi-year nag debug test of CISM2 at coarse resolution</option>
        </options>
      </machine>

    </machines>
  </test>
  
  <test name="ERS_Ly5" grid="f09_g17_gris4" compset="T1850Gg" testmods="cism/isostasy_period4">
    <machines>

      <machine name="derecho" compiler="gnu" category="aux_glc">
        <options>
          <option name="wallclock">1:30</option>
          <option name="comment">Include an exact restart test with isostasy, where we restart in the middle of the isostasy update period</option>
        </options>
      </machine>

    </machines>
  </test>

  <test name="ERS_Ly3" grid="f09_g17_gris4" compset="T1850Gg" testmods="cism/isostasy_period1">
    <machines>

      <machine name="derecho" compiler="gnu" category="aux_glc">
        <options>
          <option name="wallclock">0:50</option>
          <option name="comment">Include an exact restart test with isostasy, where restart aligns with the isostasy update period</option>
        </options>
      </machine>

    </machines>
  </test>

  <test name="SMS_Lm13" grid="f10_f10_mg37" compset="I1850Clm50SpG" testmods="cism/noevolve">
    <machines>

      <machine name="derecho" compiler="intel" category="aux_glc">
        <options>
          <option name="wallclock">2:00</option>
          <option name="comment">Include an I compset test with CISM in NOEVOLVE mode. The purpose of this test is: Often there are answer changes in CISM, but we expect that these should not affect NOEVOLVE runs (which is the typical CESM configuration). This test allows us to do a baseline comparison to confirm that expectation. 13-months rather than 1-year in order to allow time for CISM to affect CLM (and CLM to produce the next month's history file).</option>
        </options>
      </machine>

    </machines>
  </test>

  <test name="ERS_D_Ly3" grid="f09_g17_ais8gris4" compset="T1850Gag">
    <machines>

      <machine name="derecho" compiler="intel" category="aux_glc">
        <options>
          <option name="wallclock">1:00:00</option>
          <option name="comment">Include an ERS_D test with multiple ice sheets</option>
        </options>
      </machine>

    </machines>
  </test>

  <test name="ERI_C2_Ly9" grid="f09_g17_ais8gris4" compset="T1850Gag">
    <machines>

      <machine name="derecho" compiler="gnu" category="aux_glc">
        <options>
          <option name="wallclock">0:50:00</option>
          <option name="comment">This test covers a lot of things we want: (1) a multi-instance ERI test (to catch problems with multi-instance branch/hybrid runs); (2) a multi-ice sheet ERI test; (3) a multi-instance multi-ice sheet test.</option>
        </options>
      </machine>

    </machines>
  </test>

  <test name="ERI_Ly9" grid="f09_g17_ais8gris4" compset="T1850Gag" testmods="cism-noevolve_ais">
    <machines>

      <machine name="derecho" compiler="gnu" category="aux_glc">
        <options>
          <option name="wallclock">0:50:00</option>
          <option name="comment">ERI test with one ice sheet evolving and the other not, to make sure restart, branch and hybrid runs all work when one ice sheet is evolving and another is not.</option>
        </options>
      </machine>

    </machines>
  </test>

  <test name="IRT_Ly5_P24x1" grid="f09_g17_ais8gris4" compset="T1850Gag">
    <machines>

      <!-- BUG(wjs, 2021-10-20, ESMCI/cime#3978) I wanted this test to
           be on cheyenne_gnu. However, IRT tests are currently failing
           in the GENERATE phase (and presumably would fail in the
           COMPARE phase, too). So for now I'm putting this test on
           izumi_nag, since we don't do baseline generation or
           comparison on izumi. Once ESMCI/cime#3978 is resolved,
           probably move this back to cheyenne_gnu (though it isn't
           really critical for baseline generation and comparison to be
           done with this test). -->
      <machine name="izumi" compiler="nag" category="aux_glc">
        <options>
          <option name="wallclock">0:30:00</option>
          <option name="comment">Include a multi-ice sheet IRT test to test saving and restoring interim restart files to/from the archive (partly because the specification of interim restart file patterns for multiple ice sheets in config_archive.xml is a bit tricky).</option>
        </options>
      </machine>

    </machines>
  </test>

  <!-- The following two tests (MULTINOAIS and MULTINOGRIS) are similar
       but one compares a multi-ice sheet run to a Greenland-only run
       and the other compares a multi-ice sheet run to an
       Antarctica-only run. By doing both, we ensure that both Greenland
       and Antarctica are identical between a multi-ice sheet run and a
       single ice sheet run.

       For now these work as I compset runs. If that stops being the
       case due to hard-to-disable interactions between grid cells in
       Greenland and those in Antarctica in CTSM, then we could change
       these to T compset tests, though we wouldn't be exercising as
       much code at that point. See the comments at the top of
       multivssingle.py for more thoughts on this.
  -->
  <test name="MULTINOAIS_Ly2" grid="f10_f10_ais8gris4_mg37" compset="I1850Clm50SpRsGag" testmods="cism/change_params">
    <machines>

      <machine name="derecho" compiler="intel" category="aux_glc">
        <options>
          <option name="wallclock">1:50:00</option>
          <option name="comment">Compare a run with Antarctica and Greenland against a run with just Greenland; Greenland should be bit-for-bit in the two runs. Using an I compset test to exercise smb renormalization as well as code related to glc -> lnd coupling. The use of the change_params testmod is not critical for this test, but this test is a useful one for exercising that testmod.</option>
        </options>
      </machine>

      <machine name="derecho" compiler="intel" category="prealpha">
        <options>
          <option name="wallclock">1:50:00</option>
          <option name="comment">Compare a run with Antarctica and Greenland against a run with just Greenland; Greenland should be bit-for-bit in the two runs. Using an I compset test to exercise smb renormalization as well as code related to glc -> lnd coupling. The use of the change_params testmod is not critical for this test, but this test is a useful one for exercising that testmod.</option>
        </options>
      </machine>

    </machines>
  </test>
  <test name="MULTINOGRIS_Ly2" grid="f10_f10_ais8gris4_mg37" compset="I1850Clm50SpRsGag" testmods="cism/change_params">
    <machines>

      <machine name="derecho" compiler="intel" category="aux_glc">
        <options>
          <option name="wallclock">1:50:00</option>
          <option name="comment">Compare a run with Antarctica and Greenland against a run with just Antarctica; Antarctica should be bit-for-bit in the two runs. Using an I compset test to exercise smb renormalization as well as code related to glc -> lnd coupling. The use of the change_params testmod is not critical for this test, but this test is a useful one for exercising that testmod.</option>
        </options>
      </machine>

    </machines>
  </test>

  <!-- aux_cime_baselines category

       For the sake of making sure cime hasn't inadvertently changed
       answers, make sure we cover a T compset (to test dlnd) and an I
       compset with test_coupling (to test both directions of two-way
       coupling); note that the test_coupling test also tests multiple
       ice sheets.
  -->

  <test name="SMS_Ly2" grid="f09_g17_gris20" compset="T1850Gg">
    <machines>

      <machine name="derecho" compiler="intel" category="aux_cime_baselines">
        <options>
          <option name="wallclock">0:30:00</option>
        </options>
      </machine>

    </machines>
  </test>

  <test name="SMS_Ld5" grid="f10_f10_ais8gris4_mg37" compset="I1850Clm50SpGag" testmods="cism/test_coupling">
    <machines>

      <machine name="derecho" compiler="intel" category="aux_cime_baselines">
        <options>
          <option name="wallclock">0:30:00</option>
        </options>
      </machine>

    </machines>
  </test>

</testlist>
