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

Commit

Permalink
Changed lfirst flag to be part of the body class not the system class
Browse files Browse the repository at this point in the history
  • Loading branch information
daminton committed Jul 7, 2021
1 parent 0a32742 commit 6826eb3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion src/modules/swiftest_classes.f90
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ module swiftest_classes
!> An abstract class for a generic collection of Swiftest bodies
type, abstract, public, extends(swiftest_base) :: swiftest_body
!! Superclass that defines the generic elements of a Swiftest particle
logical :: lfirst = .true. !! Run the current step as a first
integer(I4B) :: nbody = 0 !! Number of bodies
integer(I4B), dimension(:), allocatable :: name !! External identifier
integer(I4B), dimension(:), allocatable :: status !! An integrator-specific status indicator
Expand Down Expand Up @@ -258,7 +259,6 @@ module swiftest_classes
real(DP) :: pe = 0.0_DP !! System potential energy
real(DP) :: te = 0.0_DP !! System total energy
real(DP), dimension(NDIM) :: htot = 0.0_DP !! System angular momentum vector
logical :: lfirst = .true. !! Run the current step as a first
contains
private
!> Each integrator will have its own version of the step
Expand Down
2 changes: 0 additions & 2 deletions src/modules/whm_classes.f90
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ module whm_classes
real(DP), dimension(:), allocatable :: ir3j !! Third term of heliocentric acceleration
!! Note to developers: If you add componenets to this class, be sure to update methods and subroutines that traverse the
!! component list, such as whm_setup_pl and whm_spill_pl
logical :: lfirst = .true.
contains
procedure, public :: h2j => whm_coord_h2j_pl !! Convert position and velcoity vectors from heliocentric to Jacobi coordinates
procedure, public :: j2h => whm_coord_j2h_pl !! Convert position and velcoity vectors from Jacobi to helliocentric coordinates
Expand All @@ -56,7 +55,6 @@ module whm_classes
type, public, extends(swiftest_tp) :: whm_tp
!! Note to developers: If you add componenets to this class, be sure to update methods and subroutines that traverse the
!! component list, such as whm_setup_tp and whm_spill_tp
logical :: lfirst = .true.
contains
private
procedure, public :: drift => whm_drift_tp !! Loop through test particles and call Danby drift routine
Expand Down

0 comments on commit 6826eb3

Please sign in to comment.