mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#5899 Fracture: Make sure the angle is in 0..90 interval
This commit is contained in:
parent
c548c4a12b
commit
08f3789c01
@ -401,9 +401,10 @@ double RimFracture::wellFractureAzimuthDiff() const
|
|||||||
double angle1 = wellAzimuthAtFracturePosition();
|
double angle1 = wellAzimuthAtFracturePosition();
|
||||||
double angle2 = m_azimuth;
|
double angle2 = m_azimuth;
|
||||||
|
|
||||||
double smallestDiffDegrees = getAbsoluteDiff2Angles( angle1, angle2, 180.0 );
|
double diffDegrees = getAbsoluteDiff2Angles( angle1, angle2, 180.0 );
|
||||||
|
double smallesDiffDegrees = std::min( 180.0 - diffDegrees, diffDegrees );
|
||||||
|
|
||||||
return smallestDiffDegrees;
|
return smallesDiffDegrees;
|
||||||
}
|
}
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user