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

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

No files matched your search

@@ -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;