Skip to content

Commit 5b21879

Browse files
James CraigJames Craig
authored andcommitted
fix for units stage correction
1 parent 2b1e1f4 commit 5b21879

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ParseManagementFile.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -567,7 +567,7 @@ bool ParseManagementFile(CModel *&pModel,const optStruct &Options)
567567
}
568568
else{
569569
int k=pSB->GetReservoir()->GetHRUIndex();
570-
if (k!=DOESNT_EXIST){
570+
if (k==DOESNT_EXIST){
571571
string advice="ParseManagementFile:The reservoir in subbasin "+to_string(pSB->GetID()) + " doesnt have an :HRUID and cannot be used to calculate a stage units correction.";
572572
ExitGracefully(advice.c_str(), BAD_DATA_WARN);
573573
}

0 commit comments

Comments
 (0)