#2390 Fracture: Set minimum 10 m perf length

This commit is contained in:
Rebecca Cox 2018-01-31 12:43:42 +01:00
parent b2bdd996d2
commit 61d8a76587

View File

@ -370,10 +370,15 @@ void RimStimPlanFractureTemplate::setPerforationLength()
{
perforationLength = std::round(cvf::Math::abs(firstTvd - lastTvd));
}
else
{
perforationLength = 1;
}
}
if (fractureTemplateUnit == RiaEclipseUnitTools::UNITS_METRIC && perforationLength < 10)
{
perforationLength = 10;
}
else if (fractureTemplateUnit == RiaEclipseUnitTools::UNITS_FIELD && perforationLength < RiaEclipseUnitTools::meterToFeet(10))
{
perforationLength = std::round(RiaEclipseUnitTools::meterToFeet(10));
}
}