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

This commit is contained in:
Magne Sjaastad 2018-10-25 20:57:38 +02:00
parent 81ff5f70af
commit 829c3cd9aa

View File

@ -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);