~lindsayvail/streamflow/newheader

Viewing all changes in revision 12.

  • Committer: Lindsay Reynolds
  • Date: 2010-12-06 22:20:42 UTC
  • mfrom: (9.1.3 newheader)
  • Revision ID: lindsayvail@gmail.com-20101206222042-dnoek1nyswbxbl41
Account for years with only 0.00 flow days

If we encounter a year with only 0.00 flow days, we will never set
a max flow day, and we blow up when trying to print a non-existent
variable.

The fix is simple: initialize the max_flow_day and max_flow_month
to dummy values so that we can print something in this case.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: