From d17a7df9561a63575e6484a56e3287d1f25e87f4 Mon Sep 17 00:00:00 2001 From: Lew Rossman Date: Wed, 19 Jun 2019 11:00:23 -0400 Subject: [PATCH] Update input3.c --- src/input3.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/input3.c b/src/input3.c index 0f20388..0770a83 100644 --- a/src/input3.c +++ b/src/input3.c @@ -7,7 +7,7 @@ Description: parses network data from a line of an EPANET input file Authors: see AUTHORS Copyright: see AUTHORS License: see LICENSE -Last Updated: 05/24/2019 +Last Updated: 06/19/2019 ****************************************************************************** */ @@ -197,8 +197,12 @@ int tankdata(Project *pr) } // Parse overflow indicator if present - if (n >= 9 && match(parser->Tok[8], w_YES)) - overflow = TRUE; + if (n >= 9) + { + if (match(parser->Tok[8], w_YES)) overflow = TRUE; + else if (match(parser->Tok[8], w_NO)) overflow = FALSE; + else return setError(parser, 8, 213); + } if (initlevel < 0.0) return setError(parser, 2, 209); if (minlevel < 0.0) return setError(parser, 3, 209);