Show matrix/fracture selection only for models with fracture results

p4#: 20376
This commit is contained in:
Magne Sjaastad 2013-02-05 14:45:35 +01:00
parent cf5aa3e882
commit 3e4b0520d4

View File

@ -696,6 +696,11 @@ void RimReservoirView::loadDataAndUpdate()
CVF_ASSERT(this->cellResult() != NULL);
this->cellResult()->loadResult();
if (m_reservoir->reservoirData()->mainGrid()->globalFractureModelActiveCellCount() == 0)
{
this->cellResult->porosityModel.setUiHidden(true);
}
CVF_ASSERT(this->cellEdgeResult() != NULL);
this->cellEdgeResult()->loadResult();