Skip to content

Commit

Permalink
HD: fix type of 2Pi variable used
Browse files Browse the repository at this point in the history
  • Loading branch information
bjonkman committed Sep 12, 2024
1 parent 7ae13fd commit 7825609
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/hydrodyn/src/YawOffset.f90
Original file line number Diff line number Diff line change
Expand Up @@ -254,15 +254,15 @@ FUNCTION WrapToPiR(angle)

REAL(SiKi), INTENT(IN) :: angle
REAL(SiKi) :: WrapToPiR
WrapToPiR = modulo(angle + Pi_R4, TwoPi) - Pi_R4
WrapToPiR = modulo(angle + Pi_R4, TwoPi_R4) - Pi_R4

END FUNCTION WrapToPiR

FUNCTION WrapToPiD(angle)

REAL(R8Ki), INTENT(IN) :: angle
REAL(R8Ki) :: WrapToPiD
WrapToPiD = modulo(angle + Pi_R8, TwoPi) - Pi_R8
WrapToPiD = modulo(angle + Pi_R8, TwoPi_R8) - Pi_R8

END FUNCTION WrapToPiD

Expand Down

0 comments on commit 7825609

Please sign in to comment.