Fix mismatch between Timeserie write FMT and actual variable list in WRITE statement #2265
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.
Fix mismatch in WRF time series WRITE format (with solar_diagnostics option activated).
TYPE: bug fix
KEYWORDS: time series, TS, format, write, wrf solar, solar_diagnostics
SOURCE: Massimo D'Isidoro (ENEA - Italian National Agency for New Technologies, Energy and Sustainable Economic Development)
DESCRIPTION OF CHANGES:
Problem:
When solar diagnostics is activated in namelist.input, the WRF time series output WRITE statement lists 55 variables but the Fortran FMT only specifies 54 fields. This causes the last variable (ts_swddnic2) to be written in a separate record in the output files *.TS , leading to inconsistent time series data.
Solution:
The WRITE statement FMT has been corrected to match all 55 variables, ensuring that they are written on the same record in the TS file.
ISSUE:
This fixes part of issue #2255
LIST OF MODIFIED FILES:
M share/wrf_timeseries.F
TESTS CONDUCTED:
A WRF run with solar_diagnostics activated, compared to previous version to confirm the fix.
RELEASE NOTE: Corrected a bug in the WRF time series output, when solar_diagnostics is activated, where the last variable (ts_swddnic2) was written in a separate record. TS files now correctly includes all the 55 variables on the same record.