Skip to content

Commit

Permalink
change floor to real
Browse files Browse the repository at this point in the history
  • Loading branch information
mcallic2 committed Jul 6, 2023
1 parent 42baed8 commit 676152d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion astronomy/astronomy.F90
Original file line number Diff line number Diff line change
Expand Up @@ -825,7 +825,7 @@ function orbital_time(time) result(t)
real(kind=r8_kind) :: t

t = (time - autumnal_eq_ref)//period_time_type
t = twopi*(t - floor(t))
t = twopi*(t - real(t, r8_kind))
if (time < autumnal_eq_ref) t = twopi - t

end function orbital_time
Expand Down

0 comments on commit 676152d

Please sign in to comment.