mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Don't skip loading data if one or more timesteps are missing.
This commit is contained in:
parent
2e61023a85
commit
8ea818f03e
@ -1441,8 +1441,6 @@ size_t RigCaseCellResultsData::findOrLoadKnownScalarResult( const RigEclipseResu
|
|||||||
// Add one more result to result container
|
// Add one more result to result container
|
||||||
size_t timeStepCount = infoForEachResultIndex()[scalarResultIndex].timeStepInfos().size();
|
size_t timeStepCount = infoForEachResultIndex()[scalarResultIndex].timeStepInfos().size();
|
||||||
|
|
||||||
bool resultLoadingSuccess = true;
|
|
||||||
|
|
||||||
size_t tempGridCellCount = m_ownerMainGrid->totalTemporaryGridCellCount();
|
size_t tempGridCellCount = m_ownerMainGrid->totalTemporaryGridCellCount();
|
||||||
|
|
||||||
if ( type == RiaDefines::ResultCatType::DYNAMIC_NATIVE && timeStepCount > 0 )
|
if ( type == RiaDefines::ResultCatType::DYNAMIC_NATIVE && timeStepCount > 0 )
|
||||||
@ -1455,7 +1453,7 @@ size_t RigCaseCellResultsData::findOrLoadKnownScalarResult( const RigEclipseResu
|
|||||||
std::vector<double>& values = m_cellScalarResults[scalarResultIndex][i];
|
std::vector<double>& values = m_cellScalarResults[scalarResultIndex][i];
|
||||||
if ( !m_readerInterface->dynamicResult( resultName, m_porosityModel, i, &values ) )
|
if ( !m_readerInterface->dynamicResult( resultName, m_porosityModel, i, &values ) )
|
||||||
{
|
{
|
||||||
resultLoadingSuccess = false;
|
values.clear();
|
||||||
}
|
}
|
||||||
else if ( tempGridCellCount > 0 )
|
else if ( tempGridCellCount > 0 )
|
||||||
{
|
{
|
||||||
@ -1475,7 +1473,7 @@ size_t RigCaseCellResultsData::findOrLoadKnownScalarResult( const RigEclipseResu
|
|||||||
std::vector<double>& values = m_cellScalarResults[scalarResultIndex][0];
|
std::vector<double>& values = m_cellScalarResults[scalarResultIndex][0];
|
||||||
if ( !m_readerInterface->staticResult( resultName, m_porosityModel, &values ) )
|
if ( !m_readerInterface->staticResult( resultName, m_porosityModel, &values ) )
|
||||||
{
|
{
|
||||||
resultLoadingSuccess = false;
|
values.clear();
|
||||||
}
|
}
|
||||||
else if ( tempGridCellCount > 0 )
|
else if ( tempGridCellCount > 0 )
|
||||||
{
|
{
|
||||||
@ -1487,12 +1485,6 @@ size_t RigCaseCellResultsData::findOrLoadKnownScalarResult( const RigEclipseResu
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( !resultLoadingSuccess )
|
|
||||||
{
|
|
||||||
// Remove last scalar result because loading of result failed
|
|
||||||
m_cellScalarResults[scalarResultIndex].clear();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( resultName == RiaResultNames::riCellVolumeResultName() )
|
if ( resultName == RiaResultNames::riCellVolumeResultName() )
|
||||||
|
Loading…
Reference in New Issue
Block a user