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

Commit

Permalink
fixed typos
Browse files Browse the repository at this point in the history
  • Loading branch information
anand43 committed Oct 30, 2023
1 parent 80d2cfd commit 7b19426
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/swiftest/swiftest_sph.f90
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ module subroutine swiftest_sph_g_acc_one(GMcb, r_0, phi, theta, rh, c_lm, g_sph,
- ccss * (dplm * sin(theta) / (rh(3) * sin(phi)) &
+ plm * (l + 1) * rh(2) / r_mag**2)) ! g_y
g_sph(3) = g_sph(3) + GMcb * r_0**l / r_mag**(l + 1) * ccss * (dplm * sin(theta) / sqrt(r_mag**2 - rh(3)**2) &
+ plm * (l + 1) * rh(3) / r_mag**2) ! g_z
+ plm * (l + 1) * rh(3) / r_mag**2) ! g_z
end do
end do

Expand Down
2 changes: 2 additions & 0 deletions src/whm/whm_kick.f90
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,7 @@ module subroutine whm_kick_vh_pl(self, nbody_system, param, t, dt, lbeg)
logical, intent(in) :: lbeg !! Logical flag indicating whether this is the beginning of the half step or not.
! Internals
integer(I4B) :: i, npl
real(DP) :: tmp ! to check the acceleration kick due to the CB

associate(pl => self, cb => nbody_system%cb)
npl = self%nbody
Expand All @@ -260,6 +261,7 @@ module subroutine whm_kick_vh_pl(self, nbody_system, param, t, dt, lbeg)
do concurrent(i = 1:npl, pl%lmask(i))
#endif
pl%vh(:, i) = pl%vh(:, i) + pl%ah(:, i) * dt
! tmp = .mag.(pl%ah(:, i) - pl%aobl(:, i))
end do
end associate

Expand Down

0 comments on commit 7b19426

Please sign in to comment.