mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-16 18:34:54 -06:00
#5326 Phase Distribution : Make sure Eclipse case is open
This commit is contained in:
parent
198f738be8
commit
7de6fda595
@ -339,7 +339,7 @@ void RimWellDistributionPlot::onLoadDataAndUpdate()
|
||||
|
||||
updateLegend();
|
||||
|
||||
if ( m_case )
|
||||
if ( m_case && m_case->ensureReservoirCaseIsOpen() )
|
||||
{
|
||||
// tim.reportLapTimeMS("about to start calc");
|
||||
RigTofWellDistributionCalculator calc( m_case, m_wellName, m_timeStepIndex, m_phase() );
|
||||
|
@ -42,6 +42,7 @@ RigTofAccumulatedPhaseFractionsCalculator::RigTofAccumulatedPhaseFractionsCalcul
|
||||
size_t timestep )
|
||||
{
|
||||
RigEclipseCaseData* eclipseCaseData = caseToApply->eclipseCaseData();
|
||||
if ( !eclipseCaseData ) return;
|
||||
|
||||
const std::vector<double>* swatResults = eclipseCaseData->resultValues( RiaDefines::MATRIX_MODEL,
|
||||
RiaDefines::DYNAMIC_NATIVE,
|
||||
|
Loading…
Reference in New Issue
Block a user