CIME.hist_utils.compare_test

CIME.hist_utils.compare_test(case, suffix1, suffix2, ignore_fieldlist_diffs=False)[source]

Compares two sets of component history files in the testcase directory

Args:

case (CIME.case.Case): The case containing the hist files to compare suffix1 (str): The suffix that identifies the first batch of hist files suffix2 (str): The suffix that identifies the second batch of hist files ignore_fieldlist_diffs (bool): If True, then: If the two cases differ only in their field lists (i.e., all shared fields are bit-for-bit, but one case has some diagnostic fields that are missing from the other case), treat the two cases as identical.

Returns:

Tuple bool, str, str: (files_match, output_filename, comment) files_match is True if the files matched, False otherwise. output_filename is the name of the cprnc output file or None if outfile_suffix is None. comment is either an empty string or one of the module-level constants beginning with CPRNC (e.g., CPRNC_FIELDLISTS_DIFFER)