add a default value to controlIndex

This commit is contained in:
0tkl
2023-08-02 14:42:48 +08:00
parent 434cd68a23
commit b860f9b16f

View File

@@ -7,7 +7,7 @@
Authors: see AUTHORS Authors: see AUTHORS
Copyright: see AUTHORS Copyright: see AUTHORS
License: see LICENSE License: see LICENSE
Last Updated: 08/13/2022 Last Updated: 08/02/2023
****************************************************************************** ******************************************************************************
*/ */
@@ -718,7 +718,7 @@ int controltimestep(Project *pr, long *tstep)
Network *net = &pr->network; Network *net = &pr->network;
Hydraul *hyd = &pr->hydraul; Hydraul *hyd = &pr->hydraul;
int i, j, k, n, controlIndex; int i, j, k, n, controlIndex = 0;
double h, q, v; double h, q, v;
long t, t1, t2; long t, t1, t2;
Slink *link; Slink *link;