Revision 3657e4066889b03de1ae808db02c049a13ccca7d authored by Alan V Di Vittorio on 08 December 2023, 23:14:38 UTC, committed by Alan V Di Vittorio on 08 December 2023, 23:14:38 UTC
The model successfully runs to completion for ZLND  with functional CO2
downscaling. The linearly downscaled CO2 data have been verified
within the GCAM repo code, but not yet in the fortran ehc code
(giac repo). Convergence downscaling has not been verified. Restarts
work properly. The gcam namelist has been updated to add several
options for convergence downscaling and the gcam co2 passing namelist
item has been corrected in name. A shell script has been added to
gcam/tools that generates the new input base co2 gridded files.
The fortran floating point exception checks are still off because
the model still fails due to untrapped GCAM nans if these are on
(which usually is only when DEBUG=TRUE). This allows for DEBUG to
be set to TRUE and for the model to run. The configuration for
the boost library for the ehc/gcam now points to the files in
the gcam repo for portability. The xerces library configuration
has been removed as it is no longer needed by GCAM.  The three repo
branches (e3sm, giac, gcam) at this commit work together
(at least for ZLND), and thse branches are set in the .gitmodules files.
1 parent 2cf7280
Raw File
template.case.test
#!/usr/bin/env python3
{{ batchdirectives }}
"""
This is the system test submit script for CIME. This should only ever be called
by case.submit when on batch system. This script only exists as a way of providing
batch directives. Use case.submit from the command line to run your case.

DO NOT RUN THIS SCRIPT MANUALLY
"""
import os, sys
os.chdir( '{{ caseroot }}')

_LIBDIR = os.path.join("{{ cimeroot }}", "CIME", "Tools")
sys.path.append(_LIBDIR)

from standard_script_setup import *

from CIME.case import Case

import argparse

###############################################################################
def parse_command_line(args, description):
###############################################################################
    parser = argparse.ArgumentParser(
        usage="""\n{0} [<testname>] [--verbose]
OR
{0} --help

\033[1mEXAMPLES:\033[0m
    \033[1;32m# case.test SMS\033[0m
    > {0}
""".format(os.path.basename(args[0])),

description=description,

formatter_class=argparse.ArgumentDefaultsHelpFormatter
)

    CIME.utils.setup_standard_logging_options(parser)

    parser.add_argument("testname", nargs="?",default=None,
                        help="Name of the test to run, default is set in TESTCASE in env_test.xml")

    parser.add_argument("--caseroot",
                        help="Case directory to build")

    parser.add_argument("--reset", action="store_true",
                        help="Reset the case to its original state as defined by config_tests.xml")

    parser.add_argument("--skip-preview-namelist", action="store_true",
                        help="Skip calling preview-namelist during case.run")

    args = CIME.utils.parse_args_and_handle_standard_logging_options(args, parser)

    if args.caseroot is not None:
        os.chdir(args.caseroot)

    return args.caseroot, args.testname, args.reset, args.skip_preview_namelist

###############################################################################
def _main_func(description):
###############################################################################
    sys.argv.extend([] if "ARGS_FOR_SCRIPT" not in os.environ else os.environ["ARGS_FOR_SCRIPT"].split())

    caseroot, testname, reset, skip_pnl = parse_command_line(sys.argv, description)
    with Case(caseroot, read_only=False) as case:
        success = case.case_test(testname=testname, reset=reset, skip_pnl=skip_pnl)

    sys.exit(0 if success else 1)

if (__name__ == "__main__"):
    _main_func(__doc__)
back to top