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

Commit

Permalink
module pure > pure module
Browse files Browse the repository at this point in the history
  • Loading branch information
cwishard committed Oct 17, 2022
1 parent 15c5602 commit 1948d58
Show file tree
Hide file tree
Showing 17 changed files with 120 additions and 120 deletions.
2 changes: 1 addition & 1 deletion src/encounter/encounter_check.f90
Original file line number Diff line number Diff line change
Expand Up @@ -865,7 +865,7 @@ subroutine encounter_check_remove_duplicates(n, nenc, index1, index2, lvdotr)
end subroutine encounter_check_remove_duplicates


module pure subroutine encounter_check_sort_aabb_1D(self, n, extent_arr)
pure module subroutine encounter_check_sort_aabb_1D(self, n, extent_arr)
!! author: David A. Minton
!!
!! Sorts the bounding box extents along a single dimension prior to the sweep phase.
Expand Down
14 changes: 7 additions & 7 deletions src/gr/gr.f90
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
use swiftest
contains

module pure subroutine gr_kick_getaccb_ns_body(self, system, param)
pure module subroutine gr_kick_getaccb_ns_body(self, system, param)
!! author: David A. Minton
!!
!! Add relativistic correction acceleration for non-symplectic integrators.
Expand Down Expand Up @@ -45,7 +45,7 @@ module pure subroutine gr_kick_getaccb_ns_body(self, system, param)
end subroutine gr_kick_getaccb_ns_body


module pure subroutine gr_kick_getacch(mu, x, lmask, n, inv_c2, agr)
pure module subroutine gr_kick_getacch(mu, x, lmask, n, inv_c2, agr)
!! author: David A. Minton
!!
!! Compute relativisitic accelerations of massive bodies
Expand Down Expand Up @@ -75,7 +75,7 @@ module pure subroutine gr_kick_getacch(mu, x, lmask, n, inv_c2, agr)
end subroutine gr_kick_getacch


module pure subroutine gr_p4_pos_kick(param, x, v, dt)
pure module subroutine gr_p4_pos_kick(param, x, v, dt)
!! author: David A. Minton
!!
!! Position kick due to p**4 term in the post-Newtonian correction
Expand Down Expand Up @@ -104,7 +104,7 @@ module pure subroutine gr_p4_pos_kick(param, x, v, dt)
end subroutine gr_p4_pos_kick


module pure subroutine gr_pseudovel2vel(param, mu, xh, pv, vh)
pure module subroutine gr_pseudovel2vel(param, mu, xh, pv, vh)
!! author: David A. Minton
!!
!! Converts the relativistic pseudovelocity back into a veliocentric velocity
Expand Down Expand Up @@ -136,7 +136,7 @@ module pure subroutine gr_pseudovel2vel(param, mu, xh, pv, vh)
end subroutine gr_pseudovel2vel


module pure subroutine gr_pv2vh_body(self, param)
pure module subroutine gr_pv2vh_body(self, param)
!! author: David A. Minton
!!
!! Wrapper function that converts from pseudovelocity to heliocentric velocity for swiftest bodies
Expand All @@ -161,7 +161,7 @@ module pure subroutine gr_pv2vh_body(self, param)
end subroutine gr_pv2vh_body


module pure subroutine gr_vel2pseudovel(param, mu, xh, vh, pv)
pure module subroutine gr_vel2pseudovel(param, mu, xh, vh, pv)
!! author: David A. Minton
!!
!! Converts the heliocentric velocity into a pseudovelocity with relativistic corrections.
Expand Down Expand Up @@ -238,7 +238,7 @@ module pure subroutine gr_vel2pseudovel(param, mu, xh, vh, pv)
end subroutine gr_vel2pseudovel


module pure subroutine gr_vh2pv_body(self, param)
pure module subroutine gr_vh2pv_body(self, param)
!! author: David A. Minton
!!
!! Wrapper function that converts from heliocentric velocity to pseudovelocity for Swiftest bodies
Expand Down
8 changes: 4 additions & 4 deletions src/helio/helio_gr.f90
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
use swiftest
contains

module pure subroutine helio_gr_kick_getacch_pl(self, param)
pure module subroutine helio_gr_kick_getacch_pl(self, param)
!! author: David A. Minton
!!
!! Compute relativisitic accelerations of massive bodies
Expand Down Expand Up @@ -30,7 +30,7 @@ module pure subroutine helio_gr_kick_getacch_pl(self, param)
end subroutine helio_gr_kick_getacch_pl


module pure subroutine helio_gr_kick_getacch_tp(self, param)
pure module subroutine helio_gr_kick_getacch_tp(self, param)
!! author: David A. Minton
!!
!! Compute relativisitic accelerations of test particles
Expand All @@ -56,7 +56,7 @@ module pure subroutine helio_gr_kick_getacch_tp(self, param)
end subroutine helio_gr_kick_getacch_tp


module pure subroutine helio_gr_p4_pl(self, system, param, dt)
pure module subroutine helio_gr_p4_pl(self, system, param, dt)
!! author: David A. Minton
!!
!! Position kick to massive bodies due to p**4 term in the post-Newtonian correction
Expand Down Expand Up @@ -84,7 +84,7 @@ module pure subroutine helio_gr_p4_pl(self, system, param, dt)
end subroutine helio_gr_p4_pl


module pure subroutine helio_gr_p4_tp(self, system, param, dt)
pure module subroutine helio_gr_p4_tp(self, system, param, dt)
!! author: David A. Minton
!!
!! Position kick to test particles due to p**4 term in the post-Newtonian correction
Expand Down
4 changes: 2 additions & 2 deletions src/kick/kick.f90
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ module subroutine kick_getacch_int_all_tp(ntp, npl, xtp, xpl, GMpl, lmask, acc)
end subroutine kick_getacch_int_all_tp


module pure subroutine kick_getacch_int_one_pl(rji2, xr, yr, zr, Gmi, Gmj, axi, ayi, azi, axj, ayj, azj)
pure module subroutine kick_getacch_int_one_pl(rji2, xr, yr, zr, Gmi, Gmj, axi, ayi, azi, axj, ayj, azj)
!! author: David A. Minton
!!
!! Compute direct cross (third) term heliocentric accelerations for a single pair of massive bodies
Expand Down Expand Up @@ -286,7 +286,7 @@ module pure subroutine kick_getacch_int_one_pl(rji2, xr, yr, zr, Gmi, Gmj, axi,
end subroutine kick_getacch_int_one_pl


module pure subroutine kick_getacch_int_one_tp(rji2, xr, yr, zr, GMpl, ax, ay, az)
pure module subroutine kick_getacch_int_one_tp(rji2, xr, yr, zr, GMpl, ax, ay, az)
!! author: David A. Minton
!!
!! Compute direct cross (third) term heliocentric accelerations of a single test particle massive body pair.
Expand Down
2 changes: 1 addition & 1 deletion src/modules/encounter_classes.f90
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ module subroutine encounter_check_collapse_ragged_list(ragged_list, n1, nenc, in
logical, dimension(:), allocatable, intent(out), optional :: lvdotr !! Array indicating which bodies are approaching
end subroutine encounter_check_collapse_ragged_list

module pure subroutine encounter_check_sort_aabb_1D(self, n, extent_arr)
pure module subroutine encounter_check_sort_aabb_1D(self, n, extent_arr)
implicit none
class(encounter_bounding_box_1D), intent(inout) :: self !! Bounding box structure along a single dimension
integer(I4B), intent(in) :: n !! Number of bodies with extents
Expand Down
8 changes: 4 additions & 4 deletions src/modules/helio_classes.f90
Original file line number Diff line number Diff line change
Expand Up @@ -108,21 +108,21 @@ module subroutine helio_drift_linear_tp(self, cb, dt, lbeg)
logical, intent(in) :: lbeg !! Argument that determines whether or not this is the beginning or end of the step
end subroutine helio_drift_linear_tp

module pure subroutine helio_gr_kick_getacch_pl(self, param)
pure module subroutine helio_gr_kick_getacch_pl(self, param)
use swiftest_classes, only : swiftest_parameters
implicit none
class(helio_pl), intent(inout) :: self !! Helio massive body particle data structure
class(swiftest_parameters), intent(in) :: param !! Current run configuration parameters
end subroutine helio_gr_kick_getacch_pl

module pure subroutine helio_gr_kick_getacch_tp(self, param)
pure module subroutine helio_gr_kick_getacch_tp(self, param)
use swiftest_classes, only : swiftest_parameters
implicit none
class(helio_tp), intent(inout) :: self !! Helio massive body particle data structure
class(swiftest_parameters), intent(in) :: param !! Current run configuration parameters
end subroutine helio_gr_kick_getacch_tp

module pure subroutine helio_gr_p4_pl(self, system, param, dt)
pure module subroutine helio_gr_p4_pl(self, system, param, dt)
use swiftest_classes, only : swiftest_parameters, swiftest_nbody_system
implicit none
class(helio_pl), intent(inout) :: self !! Swiftest particle object
Expand All @@ -131,7 +131,7 @@ module pure subroutine helio_gr_p4_pl(self, system, param, dt)
real(DP), intent(in) :: dt !! Step size
end subroutine helio_gr_p4_pl

module pure subroutine helio_gr_p4_tp(self, system, param, dt)
pure module subroutine helio_gr_p4_tp(self, system, param, dt)
use swiftest_classes, only : swiftest_parameters, swiftest_nbody_system
implicit none
class(helio_tp), intent(inout) :: self !! Swiftest particle object
Expand Down
Loading

0 comments on commit 1948d58

Please sign in to comment.