Closed rburghol closed 1 year ago
Yeah, thank you for pointing that out! I'm sure you have the correct fix. I'm planning to take a closer look to see how this error got in there, and make sure there aren't other places where something similar needs to be fixed.
Found and fixed similar occurrences with OPNID of wrong length, now all consistently length 10.
IT looks like the
HYDR-INIT
block should follow a format where theOPNID
parameters occupy 10 columns, but ParseTable.csv has 12 allocated. This seems to go without causing problems in many cases, however, when the initial VOL parameter is rather large (like in a super large reservoir), the warm-up period for the model can be greatly extended, as the left-most digit of theVOL
parameter is cut off, and therefore, a million (or couple hundred thousand) or so acre feet are missing at initial conditions.Example:
The simulation begins with a VOL of
79231.00
rather than a VOL of279231.00
I shifted all columns over 2 in ParseTable.csv and all runs correctly )see below). Pull Request at #108
Table 1: New ParseTable.csv entries for HYDR-INIT
Table 2: Old ParseTable.csv entries for HYDR-INIT
Image 1: HYDR-INIT Tale description in HSPF Manual V12