Skip to content

Commit

Permalink
Fix misc float error
Browse files Browse the repository at this point in the history
  • Loading branch information
StasJ committed Dec 30, 2021
1 parent 3b1f02b commit 81a2167
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/render/NavigationUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ void NavigationUtils::SetTimestep(ControlExec *ce, size_t ts)

MapperFunction *tf = rp->GetMapperFunc(varNames[i]);
vector<double> range = tf->getMinMaxMapValue();
if (abs(range[1] - range[0]) > FLT_EPSILON) continue;
if (abs(range[1] - range[0]) > FLT_EPSILON * max(abs(range[0]), abs(range[1]))) continue;

DataMgr *dm = dataStatus->GetDataMgr(dataSetNames[j]);
if (!dm) continue;
Expand Down

0 comments on commit 81a2167

Please sign in to comment.