mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-14 17:44:20 -06:00
#5899 Fracture: Make sure the angle is in 0..90 interval
This commit is contained in:
parent
6bef85ba4c
commit
1aea1adf34
@ -401,9 +401,10 @@ double RimFracture::wellFractureAzimuthDiff() const
|
||||
double angle1 = wellAzimuthAtFracturePosition();
|
||||
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