Skip to content

EN_setimeparam() EN_HYDSTEP and EN_QUALSTEP do not have any impact on Quality Timestep nor Hydraulic Timestep in the [].inp File #839

Open
@ZachG2004

Description

@ZachG2004

I am unsure if it is something with my code or the API; but I during my project setup run

  // Unit Conversion(s)
  long runTimeSecs = runTime * 60 * 60;
  long runStepSecs = runStep * 60 * 60;
  // Setup time parameters
  EN_settimeparam(pp, EN_DURATION, runTimeSecs);
  EN_settimeparam(pp, EN_PATTERNSTEP, runStepSecs); // 3
  EN_settimeparam(pp, EN_QUALSTEP, runStepSecs/2); // 1
  EN_settimeparam(pp, EN_HYDSTEP, runStepSecs); // 2
  EN_settimeparam(pp, EN_REPORTSTEP, runStepSecs * repRatio);

The runTime and runStep are both taken as inputs when calling in main. What I've noticed, though, is that no matter how I do it (e.g. with either the ENUM call or its compared value, the INPUT file will not receive anything except 1:00:00. Other calls (EN_DURATION, REPORTSTEP and PATTERNSTEP) All work as intended. I've also tried subtracting 30mins, since it indicates in documentation that PATTERNSTEP should be largest (or equal to largest) value of times; but none seems to have worked.

The larger code/project is on my repo for reference.
Any thoughts on this?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions