Adds send_data_time to the input_data_buffer object. This will be used when we are buffering the data (i.e running with multiple threads). Without this update the correct time was not used when buffering the data which was causing diagnostic changes when running with and without threads.
Moves the code that does the math outside of diag_send_complete to its own function do_buffer_math
Adds a call to do_buffer_math in diag_manager_end to finish doing any math that wasn't done before (without this change, there were diagnostic data diffs at the last time step)
Fixes # (issue)
How Has This Been Tested?
CI
AM4 1 year long runs.
Checklist:
[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
[x] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[x] Any dependent changes have been merged and published in downstream modules
Description
send_data_time
to the input_data_buffer object. This will be used when we are buffering the data (i.e running with multiple threads). Without this update the correct time was not used when buffering the data which was causing diagnostic changes when running with and without threads.do_buffer_math
do_buffer_math
in diag_manager_end to finish doing any math that wasn't done before (without this change, there were diagnostic data diffs at the last time step)Fixes # (issue)
How Has This Been Tested? CI AM4 1 year long runs.
Checklist:
make distcheck
passes