Skip to content

Commit 408321c

Browse files
committed
Fixed: Capture negative return value from writeGlvS1() correctly
1 parent d0f1ca7 commit 408321c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Linear/main_LinEl.C

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -898,7 +898,7 @@ int main (int argc, char** argv)
898898
return terminate(16);
899899

900900
if (displ.size() > 1)
901-
if (!model->writeGlvS1(displ[1],1,nBlock,0.0,"Dual solution",90,-1))
901+
if (model->writeGlvS1(displ[1],1,nBlock,0.0,"Dual solution",90,-1) < 0)
902902
return terminate(16);
903903

904904
std::vector<PointValues>* maxVals = lelp ? lelp->getMaxVals() : nullptr;

0 commit comments

Comments
 (0)