mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#4835 Python Cell Results : Not possible to write data if no dynamic data is present
This commit is contained in:
@@ -52,18 +52,17 @@ cvf::ref<RigResultModifier> RigResultModifierFactory::createResultModifier( RigE
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
std::vector<std::vector<double>>& scalarSetResults = eclipseCase->results( porosityModel )
|
||||
->modifiableCellScalarResultTimesteps( resVarAddr );
|
||||
auto scalarSetResults = eclipseCase->results( porosityModel )->modifiableCellScalarResultTimesteps( resVarAddr );
|
||||
|
||||
if ( timeStepIndex >= scalarSetResults.size() )
|
||||
if ( timeStepIndex >= scalarSetResults->size() )
|
||||
{
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
std::vector<double>* resultValues = nullptr;
|
||||
if ( timeStepIndex < scalarSetResults.size() )
|
||||
if ( timeStepIndex < scalarSetResults->size() )
|
||||
{
|
||||
resultValues = &( scalarSetResults[timeStepIndex] );
|
||||
resultValues = &( scalarSetResults->at( timeStepIndex ) );
|
||||
}
|
||||
|
||||
bool useGlobalActiveIndex = eclipseCase->results( porosityModel )->isUsingGlobalActiveIndex( resVarAddr );
|
||||
|
||||
Reference in New Issue
Block a user