Update input3.c
This commit is contained in:
10
src/input3.c
10
src/input3.c
@@ -7,7 +7,7 @@ Description: parses network data from a line of an EPANET input file
|
|||||||
Authors: see AUTHORS
|
Authors: see AUTHORS
|
||||||
Copyright: see AUTHORS
|
Copyright: see AUTHORS
|
||||||
License: see LICENSE
|
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
|
// Parse overflow indicator if present
|
||||||
if (n >= 9 && match(parser->Tok[8], w_YES))
|
if (n >= 9)
|
||||||
overflow = TRUE;
|
{
|
||||||
|
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 (initlevel < 0.0) return setError(parser, 2, 209);
|
||||||
if (minlevel < 0.0) return setError(parser, 3, 209);
|
if (minlevel < 0.0) return setError(parser, 3, 209);
|
||||||
|
|||||||
Reference in New Issue
Block a user