diff --git a/cime_config/SystemTests/dimcs.py b/cime_config/SystemTests/dimcs.py index de58a514..5d4278a4 100644 --- a/cime_config/SystemTests/dimcs.py +++ b/cime_config/SystemTests/dimcs.py @@ -32,8 +32,8 @@ "H_RESCALE_POWER = -11", "Z_RESCALE_POWER = -11", "R_RESCALE_POWER = -11", - "Q_RESCALE_POWER = -11" - ] + "Q_RESCALE_POWER = -11", +] run_suffixes = [ "base", @@ -67,27 +67,36 @@ "scale the dimension Q by 2**-11", ] + class DIMCS(SystemTestsCompareN): def __init__(self, case): self.comp = case.get_value("COMP_OCN") - SystemTestsCompareN.__init__(self, case, N=len(nl_contents), - separate_builds = False, - run_suffixes = run_suffixes, - run_descriptions = run_descriptions, - ignore_fieldlist_diffs = True) + SystemTestsCompareN.__init__( + self, + case, + N=len(nl_contents), + separate_builds=False, + run_suffixes=run_suffixes, + run_descriptions=run_descriptions, + ignore_fieldlist_diffs=True, + ) def _common_setup(self): - nl_contents_common = ''' + nl_contents_common = """ ! DIMCS test changes - ''' - append_to_user_nl_files(caseroot = self._case.get_value("CASEROOT"), - component = self.comp, - contents = nl_contents_common) + """ + append_to_user_nl_files( + caseroot=self._case.get_value("CASEROOT"), + component=self.comp, + contents=nl_contents_common, + ) def _case_setup(self, i): # Second append user_nl change sepecific to case-i - append_to_user_nl_files(caseroot = self._case.get_value("CASEROOT"), - component = self.comp, - contents = nl_contents[i]) \ No newline at end of file + append_to_user_nl_files( + caseroot=self._case.get_value("CASEROOT"), + component=self.comp, + contents=nl_contents[i], + ) diff --git a/cime_config/SystemTests/dimcsl.py b/cime_config/SystemTests/dimcsl.py index d090e0d9..3e7ff609 100644 --- a/cime_config/SystemTests/dimcsl.py +++ b/cime_config/SystemTests/dimcsl.py @@ -27,7 +27,7 @@ "Z_RESCALE_POWER = 11", "R_RESCALE_POWER = 11", "Q_RESCALE_POWER = 11", - ] +] run_suffixes = [ "base", @@ -49,27 +49,36 @@ "scale the dimension Q by 2**11", ] + class DIMCSL(SystemTestsCompareN): def __init__(self, case): self.comp = case.get_value("COMP_OCN") - SystemTestsCompareN.__init__(self, case, N=len(nl_contents), - separate_builds = False, - run_suffixes = run_suffixes, - run_descriptions = run_descriptions, - ignore_fieldlist_diffs = True) + SystemTestsCompareN.__init__( + self, + case, + N=len(nl_contents), + separate_builds=False, + run_suffixes=run_suffixes, + run_descriptions=run_descriptions, + ignore_fieldlist_diffs=True, + ) def _common_setup(self): - nl_contents_common = ''' + nl_contents_common = """ ! DIMCSL test changes - ''' - append_to_user_nl_files(caseroot = self._case.get_value("CASEROOT"), - component = self.comp, - contents = nl_contents_common) + """ + append_to_user_nl_files( + caseroot=self._case.get_value("CASEROOT"), + component=self.comp, + contents=nl_contents_common, + ) def _case_setup(self, i): # Second append user_nl change sepecific to case-i - append_to_user_nl_files(caseroot = self._case.get_value("CASEROOT"), - component = self.comp, - contents = nl_contents[i]) \ No newline at end of file + append_to_user_nl_files( + caseroot=self._case.get_value("CASEROOT"), + component=self.comp, + contents=nl_contents[i], + )