compare_namelists

compare_namelists is a script in CIMEROOT/CIME/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
  -c CASE, --case CASE  The case base id (<TESTCASE>.<GRID>.<COMPSET>). Helps
                        us normalize data. (default: None)

Logging options:
  -d, --debug           Print debug information (very verbose) to file /home/r
                        unner/work/cime/cime/CIME/Tools/compare_namelists.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)