(#707) Fixed regression regarding well pipe and well cells

Introduced in 707e8c6 and not quite fixed in 179f0c9
This commit is contained in:
Jacob Støren
2015-12-11 17:34:52 +01:00
parent 7bcf6bfd89
commit d01367a932
4 changed files with 18 additions and 17 deletions

View File

@@ -50,7 +50,7 @@ RimEclipseWell::RimEclipseWell()
name.uiCapability()->setUiHidden(true);
name.uiCapability()->setUiReadOnly(true);
m_wellIndex = cvf::UNDEFINED_SIZE_T;
m_resultWellIndex = cvf::UNDEFINED_SIZE_T;
m_reservoirView = NULL;
}
@@ -254,9 +254,17 @@ void RimEclipseWell::defineUiOrdering(QString uiConfigName, caf::PdmUiOrdering&
//--------------------------------------------------------------------------------------------------
bool RimEclipseWell::isWellPipeVisible(size_t frameIndex)
{
CVF_ASSERT(m_wellIndex != cvf::UNDEFINED_SIZE_T);
CVF_ASSERT(m_resultWellIndex != cvf::UNDEFINED_SIZE_T);
// Return the possibly cached value
return m_reservoirView->wellCollection()->isWellPipesVisible(frameIndex)[m_wellIndex];
return m_reservoirView->wellCollection()->isWellPipesVisible(frameIndex)[m_resultWellIndex];
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void RimEclipseWell::setWellResults(RigSingleWellResultsData* wellResults, size_t resultWellIndex)
{
m_wellResults = wellResults; m_resultWellIndex = resultWellIndex;
}