Fix missing Pazi/Pinc

This commit is contained in:
Jon Jenssen 2023-01-25 17:50:08 +01:00 committed by jonjenssen
parent 42a9fef2d3
commit 1f901a5ea5

View File

@ -83,10 +83,10 @@ RigFemScalarResultFrames* RigFemPartResultCalculatorSurfaceAngles::calculate( in
size_t valCount = femPart->elementCount() * 24; // Number of Elm Node Face results 24 = 4 * num faces = 3*
// numElmNodes
const int timeSteps = PaziFrames->timeStepCount();
const int timeSteps = m_resultCollection->timeStepCount();
for ( int stepIdx = 0; stepIdx < timeSteps; stepIdx++ )
{
const int frameCount = PaziFrames->frameCount( stepIdx );
const int frameCount = m_resultCollection->frameCount( stepIdx );
for ( int fIdx = 0; fIdx < frameCount; fIdx++ )
{
std::vector<float>& Pazi = PaziFrames->frameData( stepIdx, fIdx );