This repository was archived by the owner on Aug 28, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplified call to recursive step and fleshed out recursive step algo…
…rithm
- Loading branch information
Showing
3 changed files
with
120 additions
and
40 deletions.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| submodule(symba_classes) s_symba_kick | ||
| use swiftest | ||
| contains | ||
|
|
||
| module subroutine symba_kick_plplenc(self, system, dt, irec, sgn) | ||
| !! author: David A. Minton | ||
| !! | ||
| !! !! Kick barycentric velocities of massive bodies within SyMBA recursion. | ||
| !! | ||
| !! Adapted from David E. Kaufmann's Swifter routine: symba_kick.f90 | ||
| !! Adapted from Hal Levison's Swift routine symba5_kick.f | ||
| implicit none | ||
| class(symba_plplenc), intent(in) :: self !! SyMBA pl-pl encounter list object | ||
| class(symba_nbody_system), intent(inout) :: system !! SyMBA nbody system object | ||
| real(DP), intent(in) :: dt !! step size | ||
| integer(I4B), intent(in) :: irec !! Current recursion level | ||
| integer(I4B), intent(in) :: sgn !! sign to be applied to acceleration | ||
| end subroutine symba_kick_plplenc | ||
|
|
||
| module subroutine symba_kick_pltpenc(self, system, dt, irec, sgn) | ||
| !! author: David A. Minton | ||
| !! | ||
| !! !! Kick barycentric velocities of active test particles within SyMBA recursion. | ||
| !! | ||
| !! Adapted from David E. Kaufmann's Swifter routine: symba_kick.f90 | ||
| !! Adapted from Hal Levison's Swift routine symba5_kick.f | ||
| implicit none | ||
| class(symba_pltpenc), intent(in) :: self !! SyMBA pl-tp encounter list object | ||
| class(symba_nbody_system), intent(inout) :: system !! SyMBA nbody system object | ||
| real(DP), intent(in) :: dt !! step size | ||
| integer(I4B), intent(in) :: irec !! Current recursion level | ||
| integer(I4B), intent(in) :: sgn !! sign to be applied to acceleration | ||
| end subroutine symba_kick_pltpenc | ||
|
|
||
| end submodule s_symba_kick |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters