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

Commit

Permalink
Added back the firstkick logical to manage restarted kicks
Browse files Browse the repository at this point in the history
  • Loading branch information
daminton committed Aug 19, 2021
1 parent c39f6f6 commit 52fd48e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 2 additions & 0 deletions src/setup/setup.f90
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,8 @@ module subroutine setup_initialize_system(self, param)
call self%tp%set_mu(self%cb)
call self%pl%eucl_index()
if (.not.param%lrhill_present) call self%pl%set_rhill(self%cb)
self%pl%lfirst = param%lfirstkick
self%tp%lfirst = param%lfirstkick
return
end subroutine setup_initialize_system

Expand Down
7 changes: 4 additions & 3 deletions src/symba/symba_step.f90
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,8 @@ module subroutine symba_step_system(self, param, t, dt)
call self%reset(param)
lencounter = pl%encounter_check(self, dt, 0) .or. tp%encounter_check(self, dt, 0)
if (lencounter) then
tp%lfirst = pl%lfirst
call self%interp(param, t, dt)
pl%lfirst = .true.
tp%lfirst = .true.
param%lfirstkick = .true.
else
self%irec = -1
call helio_step_system(self, param, t, dt)
Expand Down Expand Up @@ -266,6 +264,9 @@ module subroutine symba_step_reset_system(self, param)

call system%pl_adds%setup(0, param)
call system%pl_discards%setup(0, param)

tp%lfirst = param%lfirstkick
pl%lfirst = param%lfirstkick
end associate
end select
end select
Expand Down

0 comments on commit 52fd48e

Please sign in to comment.