Merge pull request #618 from OpenWaterAnalytics/dev-EN_STARTTIME
Add EN_STARTTIME to EN_settimeparam function
This commit is contained in:
@@ -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.
|
||||
- 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`.
|
||||
- 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.
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
Authors: see AUTHORS
|
||||
Copyright: see AUTHORS
|
||||
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;
|
||||
|
||||
case EN_STARTTIME:
|
||||
if (value < 0 || value > SECperDAY) return 213;
|
||||
if (value > SECperDAY) return 213;
|
||||
time->Tstart = value;
|
||||
break;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user