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

Commit

Permalink
Cleaned up submodule names
Browse files Browse the repository at this point in the history
  • Loading branch information
daminton committed Dec 23, 2022
1 parent 530fdb7 commit 7774911
Show file tree
Hide file tree
Showing 12 changed files with 27 additions and 30 deletions.
7 changes: 2 additions & 5 deletions src/collision/collision_io.f90
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
!! You should have received a copy of the GNU General Public License along with Swiftest.
!! If not, see: https://www.gnu.org/licenses.

submodule(collision) s_collision_io_netcdf
submodule(collision) s_collision_io
use swiftest

contains
Expand Down Expand Up @@ -342,7 +342,4 @@ module subroutine collision_io_netcdf_write_frame_snapshot(self, history, param)
return
end subroutine collision_io_netcdf_write_frame_snapshot




end submodule s_collision_io_netcdf
end submodule s_collision_io
4 changes: 2 additions & 2 deletions src/encounter/encounter_io.f90
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
!! You should have received a copy of the GNU General Public License along with Swiftest.
!! If not, see: https://www.gnu.org/licenses.

submodule (encounter) s_encounter_io_netcdf
submodule (encounter) s_encounter_io
use swiftest
contains

Expand Down Expand Up @@ -226,4 +226,4 @@ module subroutine encounter_io_netcdf_write_frame_snapshot(self, history, param)
return
end subroutine encounter_io_netcdf_write_frame_snapshot

end submodule s_encounter_io_netcdf
end submodule s_encounter_io
4 changes: 2 additions & 2 deletions src/rmvs/rmvs_encounter_check.f90
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
!! You should have received a copy of the GNU General Public License along with Swiftest.
!! If not, see: https://www.gnu.org/licenses.

submodule (rmvs) s_rmvs_chk
submodule (rmvs) s_rmvs_encounter_check
use swiftest
contains

Expand Down Expand Up @@ -59,4 +59,4 @@ module function rmvs_encounter_check_tp(self, param, nbody_system, dt) result(le
end function rmvs_encounter_check_tp


end submodule s_rmvs_chk
end submodule s_rmvs_encounter_check
4 changes: 2 additions & 2 deletions src/swiftest/swiftest_discard.f90
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
!! You should have received a copy of the GNU General Public License along with Swiftest.
!! If not, see: https://www.gnu.org/licenses.

submodule (swiftest) s_discard
submodule (swiftest) s_swiftest_discard
contains

module subroutine swiftest_discard_system(self, param)
Expand Down Expand Up @@ -321,4 +321,4 @@ subroutine swiftest_discard_pl_close(dx, dv, dt, r2crit, iflag, r2min)
return
end subroutine swiftest_discard_pl_close

end submodule s_discard
end submodule s_swiftest_discard
4 changes: 2 additions & 2 deletions src/swiftest/swiftest_drift.f90
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
!! You should have received a copy of the GNU General Public License along with Swiftest.
!! If not, see: https://www.gnu.org/licenses.

submodule (swiftest) s_drift
submodule (swiftest) s_swiftest_drift
!> Integration control parameters:
real(DP), parameter :: E2MAX = 0.36_DP
real(DP), parameter :: DM2MAX = 0.16_DP
Expand Down Expand Up @@ -556,4 +556,4 @@ pure subroutine swiftest_drift_kepu_stumpff(x, c0, c1, c2, c3)
end subroutine swiftest_drift_kepu_stumpff


end submodule s_drift
end submodule s_swiftest_drift
4 changes: 2 additions & 2 deletions src/swiftest/swiftest_gr.f90
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
!! You should have received a copy of the GNU General Public License along with Swiftest.
!! If not, see: https://www.gnu.org/licenses.

submodule(swiftest) s_gr
submodule(swiftest) s_swiftest_gr
contains

pure module subroutine swiftest_gr_kick_getaccb_ns_body(self, nbody_system, param)
Expand Down Expand Up @@ -270,4 +270,4 @@ pure module subroutine swiftest_gr_vh2pv_body(self, param)
return
end subroutine swiftest_gr_vh2pv_body

end submodule s_gr
end submodule s_swiftest_gr
4 changes: 2 additions & 2 deletions src/swiftest/swiftest_io.f90
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
!! You should have received a copy of the GNU General Public License along with Swiftest.
!! If not, see: https://www.gnu.org/licenses.

submodule (swiftest) s_io
submodule (swiftest) s_swiftest_io
use symba
use netcdf
contains
Expand Down Expand Up @@ -2903,4 +2903,4 @@ module subroutine swiftest_io_write_frame_system(self, param)
call util_exit(FAILURE)
end subroutine swiftest_io_write_frame_system

end submodule s_io
end submodule s_swiftest_io
4 changes: 2 additions & 2 deletions src/swiftest/swiftest_kick.f90
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
!! You should have received a copy of the GNU General Public License along with Swiftest.
!! If not, see: https://www.gnu.org/licenses.

submodule(swiftest) s_kick
submodule(swiftest) s_swiftest_kick
contains
module subroutine swiftest_kick_getacch_int_pl(self, param)
!! author: David A. Minton
Expand Down Expand Up @@ -316,4 +316,4 @@ pure module subroutine swiftest_kick_getacch_int_one_tp(rji2, xr, yr, zr, GMpl,
return
end subroutine swiftest_kick_getacch_int_one_tp

end submodule s_kick
end submodule s_swiftest_kick
10 changes: 5 additions & 5 deletions src/swiftest/swiftest_obl.f90
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
!! You should have received a copy of the GNU General Public License along with Swiftest.
!! If not, see: https://www.gnu.org/licenses.

submodule (swiftest) s_obl
submodule (swiftest) s_swiftest_obl
contains
module subroutine swiftest_obl_acc_body(self, nbody_system)
!! author: David A. Minton
Expand Down Expand Up @@ -136,7 +136,7 @@ module subroutine swiftest_obl_pot_system(self)
associate(nbody_system => self, pl => self%pl, npl => self%pl%nbody, cb => self%cb)
if (.not. any(pl%lmask(1:npl))) return
do concurrent (i = 1:npl, pl%lmask(i))
oblpot_arr(i) = obl_pot_one(cb%Gmass, pl%Gmass(i), cb%j2rp2, cb%j4rp4, pl%rh(3,i), 1.0_DP / norm2(pl%rh(:,i)))
oblpot_arr(i) = swiftest_obl_pot_one(cb%Gmass, pl%Gmass(i), cb%j2rp2, cb%j4rp4, pl%rh(3,i), 1.0_DP / norm2(pl%rh(:,i)))
end do
nbody_system%oblpot = sum(oblpot_arr, pl%lmask(1:npl))
end associate
Expand All @@ -145,7 +145,7 @@ module subroutine swiftest_obl_pot_system(self)
end subroutine swiftest_obl_pot_system


elemental function obl_pot_one(GMcb, GMpl, j2rp2, j4rp4, zh, irh) result(oblpot)
elemental function swiftest_obl_pot_one(GMcb, GMpl, j2rp2, j4rp4, zh, irh) result(oblpot)
!! author: David A. Minton
!!
!! Compute the contribution to the total gravitational potential due solely to the oblateness of the central body from a single massive body
Expand Down Expand Up @@ -179,6 +179,6 @@ elemental function obl_pot_one(GMcb, GMpl, j2rp2, j4rp4, zh, irh) result(oblpot)
oblpot = t0 * (t1 * p2 + t3 * p4)

return
end function obl_pot_one
end function swiftest_obl_pot_one

end submodule s_obl
end submodule s_swiftest_obl
4 changes: 2 additions & 2 deletions src/swiftest/swiftest_orbel.f90
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
!! You should have received a copy of the GNU General Public License along with Swiftest.
!! If not, see: https://www.gnu.org/licenses.

submodule (swiftest) s_orbel
submodule (swiftest) s_swiftest_orbel
contains

module subroutine swiftest_orbel_el2xv_vec(self, cb)
Expand Down Expand Up @@ -1046,4 +1046,4 @@ pure module subroutine swiftest_orbel_xv2el(mu, px, py, pz, vx, vy, vz, a, e, in
end subroutine swiftest_orbel_xv2el


end submodule s_orbel
end submodule s_swiftest_orbel
4 changes: 2 additions & 2 deletions src/swiftest/swiftest_user.f90
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
!! You should have received a copy of the GNU General Public License along with Swiftest.
!! If not, see: https://www.gnu.org/licenses.

submodule(swiftest) s_user_kick_getacch
submodule(swiftest) s_swiftest_user
use swiftest
contains
module subroutine swiftest_user_kick_getacch_body(self, nbody_system, param, t, lbeg)
Expand All @@ -27,4 +27,4 @@ module subroutine swiftest_user_kick_getacch_body(self, nbody_system, param, t,
return
end subroutine swiftest_user_kick_getacch_body

end submodule s_user_kick_getacch
end submodule s_swiftest_user
4 changes: 2 additions & 2 deletions src/swiftest/swiftest_util.f90
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
!! You should have received a copy of the GNU General Public License along with Swiftest.
!! If not, see: https://www.gnu.org/licenses.

submodule (swiftest) s_util
submodule (swiftest) s_swiftest_util
use whm
use rmvs
use helio
Expand Down Expand Up @@ -4601,4 +4601,4 @@ module subroutine swiftest_util_version()
return
end subroutine swiftest_util_version

end submodule s_util
end submodule s_swiftest_util

0 comments on commit 7774911

Please sign in to comment.