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

Commit

Permalink
Fixed bad index in planetocentric to heliocentric conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
daminton committed Jul 8, 2021
1 parent 7d42193 commit 2dc254c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rmvs/rmvs_step.f90
Original file line number Diff line number Diff line change
Expand Up @@ -592,8 +592,8 @@ subroutine rmvs_end_planetocentric(system)
tp%xh(j, tpind(1:pl%nenc(i))) = tpenci%xh(j,1:pl%nenc(i)) + pl%inner(NTPHENC)%x(j, i)
tp%vh(j, tpind(1:pl%nenc(i))) = tpenci%vh(j,1:pl%nenc(i)) + pl%inner(NTPHENC)%v(j, i)
end do
tp%lperi(tpind(1:pl%nenc(i))) = tpenci%lperi(tpind(1:pl%nenc(i)))
tp%plperP(tpind(1:pl%nenc(i))) = tpenci%plperP(tpind(1:pl%nenc(i)))
tp%lperi(tpind(1:pl%nenc(i))) = tpenci%lperi(1:pl%nenc(i))
tp%plperP(tpind(1:pl%nenc(i))) = tpenci%plperP(1:pl%nenc(i))
deallocate(pl%planetocentric(i)%tp)
deallocate(cbenci%inner)
do inner_index = 0, NTPHENC
Expand Down

0 comments on commit 2dc254c

Please sign in to comment.