Skip to content

Commit 5bbc2f3

Browse files
authored
Update ClassFlowPostProcessing.cpp
fix for: ChangeRateThreshold could not be deactivated
1 parent 2831478 commit 5bbc2f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

code/components/jomjol_flowcontroll/ClassFlowPostProcessing.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -898,7 +898,7 @@ bool ClassFlowPostProcessing::doFlow(string zwtime) {
898898
#endif
899899

900900
if (PreValueUse && NUMBERS[j]->PreValueOkay) {
901-
if (NUMBERS[j]->Nachkomma > 0) {
901+
if ((NUMBERS[j]->Nachkomma > 0) && (NUMBERS[j]->ChangeRateThreshold > 0)) {
902902
double _difference1 = (NUMBERS[j]->PreValue - (NUMBERS[j]->ChangeRateThreshold / pow(10, NUMBERS[j]->Nachkomma)));
903903
double _difference2 = (NUMBERS[j]->PreValue + (NUMBERS[j]->ChangeRateThreshold / pow(10, NUMBERS[j]->Nachkomma)));
904904

0 commit comments

Comments
 (0)