Skip to content

Commit

Permalink
add some more info to README file
Browse files Browse the repository at this point in the history
  • Loading branch information
jedwards4b committed Aug 1, 2016
1 parent cdb7805 commit 0e95d19
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 11 deletions.
9 changes: 4 additions & 5 deletions scripts/create_test
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ OR

description=description,

formatter_class=argparse.ArgumentDefaultsHelpFormatter
)

CIME.utils.setup_standard_logging_options(parser)
Expand Down Expand Up @@ -156,13 +155,13 @@ OR
help="Set the wallclock limit for all tests in the suite. "
"Can use env var CIME_GLOBAL_WALLTIME to set this for all test.")

parser.add_argument("--xml-machine",default=argparse.SUPPRESS,
parser.add_argument("--xml-machine",
help="Use this machine key in the lookup in testlist.xml, default is all if any --xml- argument is used")
parser.add_argument("--xml-compiler",default=argparse.SUPPRESS,
parser.add_argument("--xml-compiler",
help="Use this compiler key in the lookup in testlist.xml, default is all if any --xml- argument is used")
parser.add_argument("--xml-category",default=argparse.SUPPRESS,
parser.add_argument("--xml-category",
help="Use this category key in the lookup in testlist.xml, default is all if any --xml- argument is used")
parser.add_argument("--xml-testlist",default=argparse.SUPPRESS,
parser.add_argument("--xml-testlist",
help="Use this testlist to lookup tests, default specified in config_files.xml")
parser.add_argument("--testfile",
help="A file containing an ascii list of tests to run")
Expand Down
4 changes: 2 additions & 2 deletions utils/python/CIME/SystemTests/eri.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def run(self):
with open("user_nl_cam", "a") as fd:
fd.write("inithist = 'ENDOFRUN'\n")

success = self._run(suffix=None,
success = self._run(suffix="base",
coupler_log_path=os.path.join(dout_sr1, "logs"),
st_archive=True)
if not success:
Expand Down Expand Up @@ -149,7 +149,7 @@ def run(self):

# run ref2 case (all component history files will go to short term archiving)

success = self._run(suffix=None,
success = self._run(suffix="hybrid",
coupler_log_path=os.path.join(dout_sr2, "logs"),
st_archive=True)
if not success:
Expand Down
21 changes: 17 additions & 4 deletions utils/python/CIME/case.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import glob, os, shutil, traceback
from CIME.XML.standard_module_setup import *

from CIME.utils import expect, get_cime_root
from CIME.utils import expect, get_cime_root, append_status
from CIME.utils import convert_to_type, get_model, get_project
from CIME.XML.machines import Machines
from CIME.XML.pes import Pes
Expand Down Expand Up @@ -779,9 +779,22 @@ def create_caseroot(self, clone=False):
for newdir in newdirs:
os.makedirs(newdir)
# Open a new README.case file in $self._caseroot
with open(os.path.join(self._caseroot,"README.case"), "w") as fd:
for arg in sys.argv:
fd.write(" %s"%arg)

append_status(" ".join(sys.argv), caseroot=self._caseroot, sfile="README.case")
append_status("Compset longname is %s"%self.get_value("COMPSET"),
caseroot=self._caseroot, sfile="README.case")
append_status("Compset specification file is %s" %
(self.get_value("COMPSETS_SPEC_FILE")),
caseroot=self._caseroot, sfile="README.case")
append_status("Pes specification file is %s" %
(self.get_value("PES_SPEC_FILE")),
caseroot=self._caseroot, sfile="README.case")
for component_class in self._component_classes:
if component_class == "DRV":
continue
comp_grid = "%s_GRID"%component_class
append_status("%s is %s"%(comp_grid,self.get_value(comp_grid)),
caseroot=self._caseroot, sfile="README.case")
if not clone:
self._create_caseroot_sourcemods()
self._create_caseroot_tools()
Expand Down

0 comments on commit 0e95d19

Please sign in to comment.