Fixed missing celledge visualization: abs/fabs usage error. Not detected on Windows

This commit is contained in:
magnesj 2014-08-31 14:37:25 +02:00
parent 01cfed9ab7
commit 68831f6e99
2 changed files with 3 additions and 3 deletions

View File

@ -180,7 +180,7 @@ void RivCellEdgeGeometryUtils::addCellEdgeResultsToDrawableGeo(
bool RivCellEdgeGeometryUtils::hideScalarValue(double scalarValue, double scalarValueToHide, double tolerance) bool RivCellEdgeGeometryUtils::hideScalarValue(double scalarValue, double scalarValueToHide, double tolerance)
{ {
return (scalarValue == HUGE_VAL || abs(scalarValue - scalarValueToHide) <= scalarValueToHide*tolerance); return (scalarValue == HUGE_VAL || cvf::Math::abs(scalarValue - scalarValueToHide) <= scalarValueToHide*tolerance);
} }
//-------------------------------------------------------------------------------------------------- //--------------------------------------------------------------------------------------------------

View File

@ -1107,7 +1107,7 @@ double riMult(double transResults, double riTransResults)
if (riTransResults == 0.0) if (riTransResults == 0.0)
{ {
if (abs (transResults) < 1e-12) if (cvf::Math::abs (transResults) < 1e-12)
{ {
return 1.0; return 1.0;
} }
@ -1540,4 +1540,4 @@ RimReservoirCellResultsStorageEntryInfo::RimReservoirCellResultsStorageEntryInfo
RimReservoirCellResultsStorageEntryInfo::~RimReservoirCellResultsStorageEntryInfo() RimReservoirCellResultsStorageEntryInfo::~RimReservoirCellResultsStorageEntryInfo()
{ {
} }