Skip to content

Commit

Permalink
Fix function almostEqualRelativeAndAbs (#1072)
Browse files Browse the repository at this point in the history
  • Loading branch information
lochel committed Jul 22, 2021
1 parent 1adcca8 commit 7212988
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/OMSimulatorLib/Util.h
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ static inline bool almostEqualRelativeAndAbs(double a, double b, double reltol=D
return true;

if (diff <= fmax(fabs(a), fabs(b)) * reltol)
return false;
return true;

return false;
}
Expand Down

0 comments on commit 7212988

Please sign in to comment.