Skip to content
This repository was archived by the owner on Aug 28, 2024. It is now read-only.

Commit

Permalink
Fixed it so true anomaly is put on the range 0..2pi
Browse files Browse the repository at this point in the history
  • Loading branch information
daminton committed Dec 4, 2022
1 parent cfcb505 commit eb34415
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/orbel/orbel.f90
Original file line number Diff line number Diff line change
Expand Up @@ -1037,6 +1037,7 @@ pure module subroutine orbel_xv2el(mu, px, py, pz, vx, vy, vz, a, e, inc, capom,
rdot = sign(sqrt(v2 - (h / r)**2),rdotv)
sf = a * (1.0_DP - e**2) / (h * e) * rdot
f = atan2(sf,cf)
if (f < 0.0_DP) f = f + TWOPI
else
f = u
end if
Expand Down

0 comments on commit eb34415

Please sign in to comment.