mirror of
https://github.com/OPM/ResInsight.git
synced 2026-11-01 16:43:03 -06:00
Fix type conversion issues
This commit is contained in:
1 parent
a5d010fe60
commit
c204593f08
4 files changed
+16
-16
No files matched your search
@@ -41,7 +41,7 @@ void RigFemNativeStatCalc::minMaxCellScalarValues( size_t timeStepIndex, double&
|
||||
{
|
||||
auto frames = m_resultsData->findOrLoadScalarResult( pIdx, m_resVarAddr );
|
||||
|
||||
auto [stepIdx, frameIdx] = m_resultsData->stepListIndexToTimeStepAndDataFrameIndex( timeStepIndex );
|
||||
auto [stepIdx, frameIdx] = m_resultsData->stepListIndexToTimeStepAndDataFrameIndex( static_cast<int>( timeStepIndex ) );
|
||||
const std::vector<float>& values = frames->frameData( stepIdx, frameIdx );
|
||||
|
||||
size_t i;
|
||||
@@ -73,7 +73,7 @@ void RigFemNativeStatCalc::posNegClosestToZero( size_t timeStepIndex, double& po
|
||||
{
|
||||
auto frames = m_resultsData->findOrLoadScalarResult( pIdx, m_resVarAddr );
|
||||
|
||||
auto [stepIdx, frameIdx] = m_resultsData->stepListIndexToTimeStepAndDataFrameIndex( timeStepIndex );
|
||||
auto [stepIdx, frameIdx] = m_resultsData->stepListIndexToTimeStepAndDataFrameIndex( static_cast<int>( timeStepIndex ) );
|
||||
const std::vector<float>& values = frames->frameData( stepIdx, frameIdx );
|
||||
|
||||
for ( size_t i = 0; i < values.size(); i++ )
|
||||
@@ -106,7 +106,7 @@ void RigFemNativeStatCalc::valueSumAndSampleCount( size_t timeStepIndex, double&
|
||||
for ( int pIdx = 0; pIdx < partCount; ++pIdx )
|
||||
{
|
||||
auto frames = m_resultsData->findOrLoadScalarResult( pIdx, m_resVarAddr );
|
||||
auto [stepIdx, frameIdx] = m_resultsData->stepListIndexToTimeStepAndDataFrameIndex( timeStepIndex );
|
||||
auto [stepIdx, frameIdx] = m_resultsData->stepListIndexToTimeStepAndDataFrameIndex( static_cast<int>( timeStepIndex ) );
|
||||
|
||||
const std::vector<float>& values = frames->frameData( stepIdx, frameIdx );
|
||||
size_t undefValueCount = 0;
|
||||
@@ -137,7 +137,7 @@ void RigFemNativeStatCalc::addDataToHistogramCalculator( size_t timeStepIndex, R
|
||||
{
|
||||
auto frames = m_resultsData->findOrLoadScalarResult( pIdx, m_resVarAddr );
|
||||
|
||||
auto [stepIdx, frameIdx] = m_resultsData->stepListIndexToTimeStepAndDataFrameIndex( timeStepIndex );
|
||||
auto [stepIdx, frameIdx] = m_resultsData->stepListIndexToTimeStepAndDataFrameIndex( static_cast<int>( timeStepIndex ) );
|
||||
const std::vector<float>& values = frames->frameData( stepIdx, frameIdx );
|
||||
|
||||
histogramCalculator.addData( values );
|
||||
@@ -153,7 +153,7 @@ void RigFemNativeStatCalc::uniqueValues( size_t timeStepIndex, std::set<int>& va
|
||||
{
|
||||
auto frames = m_resultsData->findOrLoadScalarResult( pIdx, m_resVarAddr );
|
||||
|
||||
auto [stepIdx, frameIdx] = m_resultsData->stepListIndexToTimeStepAndDataFrameIndex( timeStepIndex );
|
||||
auto [stepIdx, frameIdx] = m_resultsData->stepListIndexToTimeStepAndDataFrameIndex( static_cast<int>( timeStepIndex ) );
|
||||
const std::vector<float>& floatValues = frames->frameData( stepIdx, frameIdx );
|
||||
|
||||
for ( size_t i = 0; i < floatValues.size(); i++ )
|
||||
|
||||
@@ -63,7 +63,7 @@ private:
|
||||
int elmCount = part->elementCount();
|
||||
m_resultsData->findOrLoadScalarResult( pIdx, m_resVarAddr );
|
||||
|
||||
auto [stepIdx, frameIdx] = m_resultsData->stepListIndexToTimeStepAndDataFrameIndex( timeStepIndex );
|
||||
auto [stepIdx, frameIdx] = m_resultsData->stepListIndexToTimeStepAndDataFrameIndex( static_cast<int>( timeStepIndex ) );
|
||||
|
||||
const std::vector<float>& values = m_resultsData->resultValues( m_resVarAddr, pIdx, stepIdx, frameIdx );
|
||||
|
||||
|
||||
Reference in new issue
Block a user