mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#2509 Fracture : Move unit conversion of top/bot perforation depth
This commit is contained in:
@@ -133,59 +133,17 @@ double RigStimPlanFractureDefinition::maxY() const
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RigStimPlanFractureDefinition::setTvdToTopPerf(double topPerfTvd, RiaDefines::DepthUnitType unit)
|
||||
void RigStimPlanFractureDefinition::setTvdToTopPerf(double topPerfTvd)
|
||||
{
|
||||
if (unit == RiaDefines::UNIT_METER)
|
||||
{
|
||||
if (m_unitSet == RiaEclipseUnitTools::UNITS_FIELD)
|
||||
{
|
||||
m_topPerfTvd = RiaEclipseUnitTools::meterToFeet(topPerfTvd);
|
||||
}
|
||||
else if (m_unitSet == RiaEclipseUnitTools::UNITS_METRIC)
|
||||
{
|
||||
m_topPerfTvd = topPerfTvd;
|
||||
}
|
||||
}
|
||||
else if (unit == RiaDefines::UNIT_FEET)
|
||||
{
|
||||
if (m_unitSet == RiaEclipseUnitTools::UNITS_FIELD)
|
||||
{
|
||||
m_topPerfTvd = topPerfTvd;
|
||||
}
|
||||
else if (m_unitSet == RiaEclipseUnitTools::UNITS_METRIC)
|
||||
{
|
||||
m_topPerfTvd = RiaEclipseUnitTools::feetToMeter(topPerfTvd);
|
||||
}
|
||||
}
|
||||
m_topPerfTvd = topPerfTvd;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RigStimPlanFractureDefinition::setTvdToBottomPerf(double bottomPerfTvd, RiaDefines::DepthUnitType unit)
|
||||
void RigStimPlanFractureDefinition::setTvdToBottomPerf(double bottomPerfTvd)
|
||||
{
|
||||
if (unit == RiaDefines::UNIT_METER)
|
||||
{
|
||||
if (m_unitSet == RiaEclipseUnitTools::UNITS_FIELD)
|
||||
{
|
||||
m_bottomPerfTvd = RiaEclipseUnitTools::meterToFeet(bottomPerfTvd);
|
||||
}
|
||||
else if (m_unitSet == RiaEclipseUnitTools::UNITS_METRIC)
|
||||
{
|
||||
m_bottomPerfTvd = bottomPerfTvd;
|
||||
}
|
||||
}
|
||||
else if (unit == RiaDefines::UNIT_FEET)
|
||||
{
|
||||
if (m_unitSet == RiaEclipseUnitTools::UNITS_FIELD)
|
||||
{
|
||||
m_bottomPerfTvd = bottomPerfTvd;
|
||||
}
|
||||
else if (m_unitSet == RiaEclipseUnitTools::UNITS_METRIC)
|
||||
{
|
||||
m_bottomPerfTvd = RiaEclipseUnitTools::feetToMeter(bottomPerfTvd);
|
||||
}
|
||||
}
|
||||
m_bottomPerfTvd = bottomPerfTvd;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user