#1629 Set default values on completions dependent on selected unit system

This commit is contained in:
Bjørnar Grip Fjær
2017-06-20 12:36:12 +02:00
parent d3f512f783
commit 088617ea5c
15 changed files with 132 additions and 2 deletions

View File

@@ -77,6 +77,26 @@ double RimFishbonesPipeProperties::holeDiameter(RiaEclipseUnitTools::UnitSystem
return 0.0;
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void RimFishbonesPipeProperties::setUnitSystemSpecificDefaults()
{
RimWellPath* wellPath;
firstAncestorOrThisOfType(wellPath);
if (wellPath)
{
if (wellPath->unitSystem() == RiaEclipseUnitTools::UNITS_METRIC)
{
m_lateralHoleDiameter = 12.5;
}
else if (wellPath->unitSystem() == RiaEclipseUnitTools::UNITS_FIELD)
{
m_lateralHoleDiameter = 0.5;
}
}
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------