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

Commit

Permalink
Fixed bug where the original heliocentric position was not properly s…
Browse files Browse the repository at this point in the history
…aved when oblateness is turned on
  • Loading branch information
daminton committed Jun 15, 2021
1 parent 63ad803 commit b7d25dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rmvs/rmvs_step.f90
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ subroutine rmvs_interp_in(pl, cb, dt, outer_index, config)
xtmp(:, :) = pl%inner(0)%x(:, :)
vtmp(:, :) = pl%inner(0)%v(:, :)
if (config%loblatecb) then
allocate(xh_original,mold=pl%xh)
allocate(xh_original,source=pl%xh)
pl%xh(:, :) = xtmp(:, :) ! Temporarily replace heliocentric position with inner substep values to calculate the oblateness terms
call pl%obl_acc(cb)
pl%inner(0)%aobl(:, :) = pl%aobl(:, :) ! Save the oblateness acceleration on the planet for this substep
Expand Down

0 comments on commit b7d25dc

Please sign in to comment.