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

Commit

Permalink
Put in the oblateness accelerations for central body for test particl…
Browse files Browse the repository at this point in the history
…es in outer encounter of RMVS
  • Loading branch information
daminton committed May 16, 2023
1 parent 9bb229b commit 6f0c12f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/rmvs/rmvs_step.f90
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,10 @@ subroutine rmvs_step_out(cb, pl, tp, nbody_system, param, t, dt)
call tp%step(nbody_system, param, outer_time, dto)
tp%lfirst = lfirsttp
else
if (param%loblatecb) then
call swiftest_obl_acc(npl, cb%Gmass, cb%j2rp2, cb%j4rp4, pl%rbeg, pl%lmask, pl%outer(outer_index-1)%aobl, pl%Gmass, cb%aoblbeg)
call swiftest_obl_acc(npl, cb%Gmass, cb%j2rp2, cb%j4rp4, pl%rend, pl%lmask, pl%outer(outer_index)%aobl, pl%Gmass, cb%aoblend)
end if
call tp%step(nbody_system, param, outer_time, dto)
end if
do j = 1, npl
Expand Down
4 changes: 3 additions & 1 deletion src/rmvs/rmvs_util.f90
Original file line number Diff line number Diff line change
Expand Up @@ -298,13 +298,15 @@ module subroutine rmvs_util_setup_pl(self, n, param)
allocate(pl%outer(i)%v(NDIM, n))
pl%outer(i)%x(:,:) = 0.0_DP
pl%outer(i)%v(:,:) = 0.0_DP
allocate(pl%outer(i)%aobl(NDIM, n))
pl%outer(i)%aobl(:,:) = 0.0_DP
end do
do i = 0, NTPHENC
allocate(pl%inner(i)%x(NDIM, n))
allocate(pl%inner(i)%v(NDIM, n))
allocate(pl%inner(i)%aobl(NDIM, n))
pl%inner(i)%x(:,:) = 0.0_DP
pl%inner(i)%v(:,:) = 0.0_DP
allocate(pl%inner(i)%aobl(NDIM, n))
pl%inner(i)%aobl(:,:) = 0.0_DP
end do
! if (param%ltides) then
Expand Down

0 comments on commit 6f0c12f

Please sign in to comment.