From 829c3cd9aa57894a871dbbe7186824f38cbe2b0c Mon Sep 17 00:00:00 2001 From: Magne Sjaastad Date: Thu, 25 Oct 2018 20:57:38 +0200 Subject: [PATCH] #3554 Temprorary LGR : Do not add LGR if no active fracture cells --- ApplicationCode/Commands/RicCreateTemporaryLgrFeature.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ApplicationCode/Commands/RicCreateTemporaryLgrFeature.cpp b/ApplicationCode/Commands/RicCreateTemporaryLgrFeature.cpp index 85105bdef4..f3f56f94c3 100644 --- a/ApplicationCode/Commands/RicCreateTemporaryLgrFeature.cpp +++ b/ApplicationCode/Commands/RicCreateTemporaryLgrFeature.cpp @@ -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);