compare_namelistsΒΆ

compare_namelists is a script in CIMEROOT/scripts/Tools.

$ ./compare_namelists --help
usage: 
compare_namelists <Path to gold namelist file> <Path to new namelist file> [-c <CASEBASEID>] [--verbose]
OR
compare_namelists --help

EXAMPLES:
    # Compare namelist files
    > compare_namelists baseline_dir/test/namelistfile mytestarea/namelistfile -c <CASE>

Compare namelists. Should be called by an ACME test. Designed to not be
sensitive to order or whitespace.

positional arguments:
  gold_file             Path to gold file
  new_file              Path to file to compare against gold

options:
  -h, --help            show this help message and exit
  -d, --debug           Print debug information (very verbose) to file /home/t
                        itters/devel/E3SM/cime/master/scripts/Tools/compare_na
                        melists.log (default: False)
  -v, --verbose         Add additional context (time and file) to log messages
                        (default: False)
  -s, --silent          Print only warnings and error messages (default:
                        False)
  -c CASE, --case CASE  The case base id (<TESTCASE>.<GRID>.<COMPSET>). Helps
                        us normalize data. (default: None)