mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#1704 Include top and base layers in fracture containment
This commit is contained in:
parent
a06ae58f83
commit
7e44fe185e
@ -97,12 +97,12 @@ bool RimFractureContainment::isEclipseCellWithinContainment(const RigMainGrid* m
|
||||
|
||||
bool ok = mainGrid->ijkFromCellIndex(globalCellIndex, &i, &j, &k);
|
||||
|
||||
if (k+1 <= m_topKLayer())
|
||||
if (k+1 < m_topKLayer())
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
if (k+1 >= m_baseKLayer())
|
||||
if (k+1 > m_baseKLayer())
|
||||
{
|
||||
return false;
|
||||
}
|
||||
@ -133,7 +133,10 @@ void RimFractureContainment::fieldChangedByUi(const caf::PdmFieldHandle* changed
|
||||
{
|
||||
RimProject* proj;
|
||||
this->firstAncestorOrThisOfType(proj);
|
||||
if (proj) proj->createDisplayModelAndRedrawAllViews();
|
||||
if (proj)
|
||||
{
|
||||
proj->reloadCompletionTypeResultsInAllViews();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user