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

Commit

Permalink
Merge branch 'debug' into IntelAdvisor
Browse files Browse the repository at this point in the history
  • Loading branch information
daminton committed Dec 11, 2021
2 parents bb65e38 + 9175800 commit 3ceb452
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 10 deletions.
4 changes: 2 additions & 2 deletions src/helio/helio_step.f90
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ module subroutine helio_step_pl(self, system, param, t, dt)
call pl%kick(system, param, t, dth, lbeg=.true.)
if (param%lgr) call pl%gr_pos_kick(system, param, dth)
call pl%drift(system, param, dt)
call pl%kick(system, param, t + dt, dth, lbeg=.false.)
if (param%lgr) call pl%gr_pos_kick(system, param, dth)
call pl%kick(system, param, t + dt, dth, lbeg=.false.)
call pl%lindrift(cb, dth, lbeg=.false.)
call pl%vb2vh(cb)
end select
Expand Down Expand Up @@ -99,8 +99,8 @@ module subroutine helio_step_tp(self, system, param, t, dt)
call tp%kick(system, param, t, dth, lbeg=.true.)
if (param%lgr) call tp%gr_pos_kick(system, param, dth)
call tp%drift(system, param, dt)
call tp%kick(system, param, t + dt, dth, lbeg=.false.)
if (param%lgr) call tp%gr_pos_kick(system, param, dth)
call tp%kick(system, param, t + dt, dth, lbeg=.false.)
call tp%lindrift(cb, dth, lbeg=.false.)
call tp%vb2vh(vbcb = -cb%ptend)
end select
Expand Down
4 changes: 2 additions & 2 deletions src/symba/symba_gr.f90
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ module pure subroutine symba_gr_p4_pl(self, system, param, dt)
associate(pl => self, npl => self%nbody)
select type(system)
class is (symba_nbody_system)
do concurrent(i = 1:npl, pl%lmask(i) .and. pl%levelg(i) == system%irec )
do concurrent(i = 1:npl, pl%lmask(i) .and. (pl%levelg(i) == system%irec) )
call gr_p4_pos_kick(param, pl%xh(:, i), pl%vb(:, i), dt)
end do
end select
Expand Down Expand Up @@ -54,7 +54,7 @@ module pure subroutine symba_gr_p4_tp(self, system, param, dt)
associate(tp => self, ntp => self%nbody)
select type(system)
class is (symba_nbody_system)
do concurrent(i = 1:ntp, tp%lmask(i) .and. tp%levelg(i) == system%irec)
do concurrent(i = 1:ntp, tp%lmask(i) .and. (tp%levelg(i) == system%irec))
call gr_p4_pos_kick(param, tp%xh(:, i), tp%vb(:, i), dt)
end do
end select
Expand Down
15 changes: 9 additions & 6 deletions src/symba/symba_step.f90
Original file line number Diff line number Diff line change
Expand Up @@ -83,13 +83,13 @@ module subroutine symba_step_interp_system(self, param, t, dt)

call system%recursive_step(param, t, 0)

call pl%kick(system, param, t, dth, lbeg=.false.)
if (param%lgr) call pl%gr_pos_kick(system, param, dth)
call pl%kick(system, param, t, dth, lbeg=.false.)
call pl%lindrift(cb, dth, lbeg=.false.)
call pl%vb2vh(cb)

call tp%kick(system, param, t, dth, lbeg=.false.)
if (param%lgr) call tp%gr_pos_kick(system, param, dth)
call tp%kick(system, param, t, dth, lbeg=.false.)
call tp%lindrift(cb, dth, lbeg=.false.)
call tp%vb2vh(vbcb = -cb%ptend)
end select
Expand Down Expand Up @@ -196,26 +196,29 @@ module recursive subroutine symba_step_recur_system(self, param, t, ireci)
call plplenc_list%kick(system, dth, irecp, -1)
call pltpenc_list%kick(system, dth, irecp, -1)
end if

if (param%lgr) then
call pl%gr_pos_kick(system, param, dth)
call tp%gr_pos_kick(system, param, dth)
end if

call pl%drift(system, param, dtl)
call tp%drift(system, param, dtl)

if (lencounter) call system%recursive_step(param, t+dth,irecp)
system%irec = ireci

if (param%lgr) then
call pl%gr_pos_kick(system, param, dth)
call tp%gr_pos_kick(system, param, dth)
end if

call plplenc_list%kick(system, dth, irecp, 1)
call pltpenc_list%kick(system, dth, irecp, 1)
if (ireci /= 0) then
call plplenc_list%kick(system, dth, irecp, -1)
call pltpenc_list%kick(system, dth, irecp, -1)
end if
if (param%lgr) then
call pl%gr_pos_kick(system, param, dth)
call tp%gr_pos_kick(system, param, dth)
end if

if (param%lclose) then
lplpl_collision = plplenc_list%collision_check(system, param, t+dtl, dtl, ireci)
Expand Down

0 comments on commit 3ceb452

Please sign in to comment.