mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#5550 Python : Fix crash for case.set_grid_property
This commit is contained in:
parent
d6a1f79135
commit
3ba301f56e
@ -274,6 +274,12 @@ protected:
|
|||||||
size_t timeStepIndex,
|
size_t timeStepIndex,
|
||||||
RigEclipseResultAddress resVarAddr ) override
|
RigEclipseResultAddress resVarAddr ) override
|
||||||
{
|
{
|
||||||
|
auto resultValues = caseData->results( porosityModel )->modifiableCellScalarResult( resVarAddr, timeStepIndex );
|
||||||
|
if ( resultValues->empty() )
|
||||||
|
{
|
||||||
|
resultValues->resize( caseData->grid( gridIndex )->cellCount() );
|
||||||
|
}
|
||||||
|
|
||||||
m_resultAccessor =
|
m_resultAccessor =
|
||||||
RigResultAccessorFactory::createFromResultAddress( caseData, gridIndex, porosityModel, timeStepIndex, resVarAddr );
|
RigResultAccessorFactory::createFromResultAddress( caseData, gridIndex, porosityModel, timeStepIndex, resVarAddr );
|
||||||
m_resultModifier =
|
m_resultModifier =
|
||||||
|
Loading…
Reference in New Issue
Block a user