#2315. Replaced abs() by fabs() where relevant

This commit is contained in:
Bjørn Erik Jensen
2018-01-05 09:29:53 +01:00
parent 0f30433286
commit 4cdc109ec3
7 changed files with 16 additions and 16 deletions

View File

@@ -1797,7 +1797,7 @@ void RigFemPartResultsCollection::calculateGammaFromFrames(int partIndex,
float por = srcPORFrameData[nodeIdx];
if ( por == inf || abs(por) < 0.01e6*1.0e-5 )
if ( por == inf || fabs(por) < 0.01e6*1.0e-5 )
dstFrameData[elmNodResIdx] = inf;
else
dstFrameData[elmNodResIdx] = srcSTFrameData[elmNodResIdx]/por;