mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Janitor : Use std::clamp and remove obsolete includes of cvfMath
This commit is contained in:
@@ -84,7 +84,7 @@ void RimWellPathValve::perforationIntervalUpdated()
|
||||
this->firstAncestorOrThisOfType( perfInterval );
|
||||
double startMD = perfInterval->startMD();
|
||||
double endMD = perfInterval->endMD();
|
||||
m_measuredDepth = cvf::Math::clamp( m_measuredDepth(), std::min( startMD, endMD ), std::max( startMD, endMD ) );
|
||||
m_measuredDepth = std::clamp( m_measuredDepth(), std::min( startMD, endMD ), std::max( startMD, endMD ) );
|
||||
}
|
||||
else if ( componentType() == RiaDefines::WellPathComponentType::ICD ||
|
||||
componentType() == RiaDefines::WellPathComponentType::AICD )
|
||||
|
||||
Reference in New Issue
Block a user