mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#3274 Create multiple fractures. Fix bug and rename argument
This commit is contained in:
@@ -88,12 +88,12 @@ double RicCreateMultipleFracturesOptionItemUi::minimumSpacing() const
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
bool RicCreateMultipleFracturesOptionItemUi::isKLayerContained(int k) const
|
||||
bool RicCreateMultipleFracturesOptionItemUi::isKLayerContained(int oneBasedK) const
|
||||
{
|
||||
auto minMax = std::minmax(m_topKOneBased, m_baseKOneBased);
|
||||
|
||||
if (k < minMax.first) return false;
|
||||
if (k < minMax.second) return true;
|
||||
if (oneBasedK < minMax.first) return false;
|
||||
if (oneBasedK <= minMax.second) return true;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user