Merge pull request #657 from OpenWaterAnalytics/dev-Qualflag_Fix

Removes silent change to WQ option for 0 duration run
This commit is contained in:
Elad Salomons
2021-09-28 10:09:26 +03:00
committed by GitHub

View File

@@ -229,9 +229,6 @@ void adjustdata(Project *pr)
// Report start time cannot be greater than simulation duration // Report start time cannot be greater than simulation duration
if (time->Rstart > time->Dur) time->Rstart = 0; if (time->Rstart > time->Dur) time->Rstart = 0;
// No water quality analysis for single period run
if (time->Dur == 0) qual->Qualflag = NONE;
// If no quality timestep, then make it 1/10 of hydraulic timestep // If no quality timestep, then make it 1/10 of hydraulic timestep
if (time->Qstep == 0) time->Qstep = time->Hstep / 10; if (time->Qstep == 0) time->Qstep = time->Hstep / 10;