#1704 Include top and base layers in fracture containment

This commit is contained in:
Bjørnar Grip Fjær 2017-08-02 10:50:11 +02:00
parent a06ae58f83
commit 7e44fe185e

View File

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