Merge branch 'patch-1' into develop (PR #156)
commitc796b9023b3ea252bec057d6c86bfc255e53bf06
authorMichael Duda <duda@ucar.edu>
Mon, 3 May 2021 21:56:51 +0000 (3 15:56 -0600)
committerMichael Duda <duda@ucar.edu>
Mon, 3 May 2021 22:04:26 +0000 (3 16:04 -0600)
treefc65d610afa7895fc12f2fd47fa48f75fea41ca7
parent97c042d3ed5bd9f951a2b09a61aff8375c310649
parentd02c30806c066bce3a0d32ff65c42b95b72bf31f
Merge branch 'patch-1' into develop (PR #156)

This merge updates the build_hdate code so that years < 1000 result in zero-
padded four digit years in date strings. Without the changes in this merge,
ungrib.exe was unable to extract data from, e.g., files with fields valid in
the year 450, failing due to

hdate 450-01-01_00:00:00 > hsave 0000-00-00_00:00:00

not evaluating as true in one of the internal loops. This was apparently
caused by a formatting error when hdate was created.

The solution adopted in this merge is to change the 'i4' format to 'i4.4' on
lines 26, 30, 34 and 38 in build_hdate.F. The previously failing comparison now
works as

hdate 0450-01-01_00:00:00 > hsave 0000-00-00_00:00:00

.

Thanks to Ozan Mert Göktürk (@ozanmert) for contributing this fix.

* patch-1:
  Update build_hdate.F