When write_hist_at_0h_rst=.true., will now apply to user-def streams #2133
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The first line should be a single-line "purpose" for this change
TYPE: bug fix/enhancement
KEYWORDS: wrf, wrfv4, restart, output streams
SOURCE: James Ruppert (University of Oklahoma)
DESCRIPTION OF CHANGES:
Problem:
When running WRF from as a restart, the option write_hist_at_0h_rst would only apply to the default history stream. Now, when this option is set to true, it will also apply to special user-defined streams. This is required to maintain a consistent number of output time steps per file with multiple time steps writing to a single file, which is often preferred for multiple-day runs.
Solution:
Added an additional loop over history streams with CALL med_hist_out when the following condition is met:
IF ( (config_flags%restart) .AND. ( currTime .EQ. startTime ) .AND. ( config_flags%write_hist_at_0h_rst ))
ISSUE: For use when this PR closes an issue.
While it's apparently not a very common need, it is something we are now using across multiple projects (and likely more in the future) so it would help to have it included moving forward. There is a thread on the wrf forum at https://forum.mmm.ucar.edu/threads/to-the-wrf-developers-write_hist_at_0h_rst-for-user-defined-output-streams.16824/
LIST OF MODIFIED FILES:
share/mediation_integrate.F
TESTS CONDUCTED:
RELEASE NOTE:
When the namelist option write_hist_at_0h_rst is set to .true. under &time_control, history write-out will now be conducted for the first time step for both the 0th stream (wrfout* files) and any special user-defined streams being implemented.