Refactor result definition

This commit is contained in:
Magne Sjaastad
2023-05-11 08:37:58 +02:00
committed by GitHub
parent 02ec71955b
commit 5ee764af48
66 changed files with 1045 additions and 822 deletions

View File

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

View File

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