write_hrate ignored in new diagnostics

Issue #125 resolved
David Dickinson created an issue

The new diagnostics module accepts write_hrate as an input but this is not used for anything. The equivalent functionality to write_hrate = .true. from the old diagnostics is controlled by write_heating=.true. in the new diagnostics – this is confusing and likely lead to mistakes. We should probably do one of:

  1. Remove write_heating from the new diagnostics – this may break input files.
  2. Make write_heating be write_heating = write_heating .or. write_hrate so that this is enabled if either flag is set.

Option 1 may break input files so option 2 is probably preferred.

Comments (6)

  1. Peter Hill

    Agree, I think it needs to be option 2. At the same time, we should make sure all inputs are mapped correctly between the two systems. This will make consolidating them much easier.

  2. Peter Hill

    No, but there is at least a warning if you set the wrong one for the particular diagnostic module you’re using.

    We could set write_heating = write_heating .or. write_hrate in read_diagnostics_base_config, and then switch to using write_heating in the old diagnostics module.

  3. Log in to comment