Merge pull request #618 from OpenWaterAnalytics/dev-EN_STARTTIME

Add EN_STARTTIME to EN_settimeparam function
This commit is contained in:
Lew Rossman
2020-11-19 16:12:07 -05:00
committed by GitHub
2 changed files with 4 additions and 2 deletions

View File

@@ -8,4 +8,6 @@ This document describes the changes and updates that have been made in version 2
- A `EN_setvertex` function was added to allow API clients to change the coordinates of a single link vertex. - A `EN_setvertex` function was added to allow API clients to change the coordinates of a single link vertex.
- The index of a General Purpose Valve's (GPV's) head loss curve was added to the list of editable Link Properties using the symbolic constant name `EN_GPV_CURVE`. - The index of a General Purpose Valve's (GPV's) head loss curve was added to the list of editable Link Properties using the symbolic constant name `EN_GPV_CURVE`.
- The `EN_getlinkvalue` and `EN_setlinkvalue` functions were updated to get and set the value of `EN_GPV_CURVE`. - The `EN_getlinkvalue` and `EN_setlinkvalue` functions were updated to get and set the value of `EN_GPV_CURVE`.
- Negative pressure values for `EN_SETTING` are now permitted in the `EN_setlinkvalue` function.
- The `EN_STARTTIME` parameter was added into the `EN_settimeparam` function.

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: 02/01/2020 Last Updated: 11/08/2020
****************************************************************************** ******************************************************************************
*/ */
@@ -1592,7 +1592,7 @@ int DLLEXPORT EN_settimeparam(EN_Project p, int param, long value)
break; break;
case EN_STARTTIME: case EN_STARTTIME:
if (value < 0 || value > SECperDAY) return 213; if (value > SECperDAY) return 213;
time->Tstart = value; time->Tstart = value;
break; break;