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

Commit

Permalink
Removed unnecessary unit conversion in the rotation phase update code
Browse files Browse the repository at this point in the history
  • Loading branch information
daminton committed Feb 15, 2024
1 parent 6791265 commit 35c2339
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/swiftest/swiftest_drift.f90
Original file line number Diff line number Diff line change
Expand Up @@ -593,12 +593,7 @@ module subroutine swiftest_drift_cb_rotphase_update(self, param, dt)
class(swiftest_parameters), intent(in) :: param !! Current run configuration parameters
real(DP), intent(in) :: dt !! Stepsize

! Internals
real(DP) :: rotmag

rotmag = (.mag. self%rot(:)) * dt * param%TU2S

self%rotphase = MOD(self%rotphase + rotmag, 2 * PI) ! phase angle calculated in radians and then scaled by 2pi to be unitless
self%rotphase = MOD(self%rotphase + (.mag. self%rot(:)) * dt , 2 * PI) ! phase angle calculated in radians and then scaled by 2pi to be unitless

end subroutine swiftest_drift_cb_rotphase_update

Expand Down

0 comments on commit 35c2339

Please sign in to comment.