mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Refactor result definition
This commit is contained in:
@@ -144,7 +144,7 @@ void RigFemPartResultCalculatorGamma::calculateGammaFromFrames( int
|
||||
int nodeIdx = femPart->nodeIdxFromElementNodeResultIdx( elmNodResIdx );
|
||||
|
||||
float por = inf;
|
||||
if ( nodeIdx < srcPORFrameData.size() ) por = srcPORFrameData[nodeIdx];
|
||||
if ( nodeIdx < static_cast<int>( srcPORFrameData.size() ) ) por = srcPORFrameData[nodeIdx];
|
||||
|
||||
if ( por == inf || fabs( por ) < 0.01e6 * 1.0e-5 )
|
||||
dstFrameData[elmNodResIdx] = inf;
|
||||
|
||||
@@ -108,7 +108,7 @@ RigFemScalarResultFrames* RigFemPartResultCalculatorNormalST::calculate( int par
|
||||
const size_t elmNodResIdx = femPart->elementNodeResultIdx( elmIdx, elmNodIdx );
|
||||
const int nodeIdx = femPart->nodeIdxFromElementNodeResultIdx( elmNodResIdx );
|
||||
float por = 0.0f;
|
||||
if ( nodeIdx < srcPORFrameData.size() )
|
||||
if ( nodeIdx < static_cast<int>( srcPORFrameData.size() ) )
|
||||
{
|
||||
por = srcPORFrameData[nodeIdx];
|
||||
if ( por == inf ) por = 0.0f;
|
||||
|
||||
Reference in New Issue
Block a user