#3554 Temprorary LGR : Do not add LGR if no active fracture cells

This commit is contained in:
Magne Sjaastad committed 2018-10-25 21:08:29 +02:00
1 parent 81ff5f70af
commit 829c3cd9aa
1 file changed
+4 -1
@@ -135,7 +135,10 @@ void RicCreateTemporaryLgrFeature::onActionTriggered(bool isChecked)
size_t lgrCellCount = lgr.cellCount();
activeCellInfo->addLgr(lgrCellCount);
fractureActiveCellInfo->addLgr(lgrCellCount);
if (fractureActiveCellInfo->reservoirActiveCellCount() > 0)
{
fractureActiveCellInfo->addLgr(lgrCellCount);
}
}
mainGrid->calculateFaults(activeCellInfo, true);