mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-13 17:02:13 -05:00
Revert "Early return if data already is available"
This reverts commit 274d4fc0db.
This commit is contained in:
1 parent
745f9883b5
commit
91c82f0010
1 file changed
+1
-7
@@ -1587,13 +1587,6 @@ size_t RigCaseCellResultsData::findOrLoadKnownScalarResultByResultTypeOrder( con
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
size_t RigCaseCellResultsData::findOrLoadKnownScalarResultForTimeStep( const RigEclipseResultAddress& resVarAddr, size_t timeStepIndex )
|
||||
{
|
||||
size_t scalarResultIndex = findScalarResultIndexFromAddress( resVarAddr );
|
||||
if ( scalarResultIndex == cvf::UNDEFINED_SIZE_T )
|
||||
{
|
||||
return cvf::UNDEFINED_SIZE_T;
|
||||
}
|
||||
if ( isDataPresent( scalarResultIndex ) ) return scalarResultIndex;
|
||||
|
||||
RiaDefines::ResultCatType type = resVarAddr.resultCatType();
|
||||
QString resultName = resVarAddr.resultName();
|
||||
|
||||
@@ -1622,6 +1615,7 @@ size_t RigCaseCellResultsData::findOrLoadKnownScalarResultForTimeStep( const Rig
|
||||
return completionTypeScalarResultIndex;
|
||||
}
|
||||
|
||||
size_t scalarResultIndex = findScalarResultIndexFromAddress( resVarAddr );
|
||||
if ( scalarResultIndex == cvf::UNDEFINED_SIZE_T ) return cvf::UNDEFINED_SIZE_T;
|
||||
|
||||
if ( type == RiaDefines::ResultCatType::GENERATED )
|
||||
|
||||
Reference in new issue
Block a user