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

Commit

Permalink
Made sure to set the recursion level correctly when creating collisio…
Browse files Browse the repository at this point in the history
…nal fragments
  • Loading branch information
daminton committed Dec 14, 2022
1 parent c9aee22 commit 4355bae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/symba/symba_util.f90
Original file line number Diff line number Diff line change
Expand Up @@ -683,15 +683,15 @@ module subroutine symba_util_rearray_pl(self, system, param)
allocate(levelg_orig_pl, source=pl%levelg)
allocate(levelm_orig_pl, source=pl%levelm)
allocate(nplenc_orig_pl, source=pl%nplenc)
lencounter = pl%encounter_check(param, system, param%dt, 0)
lencounter = pl%encounter_check(param, system, param%dt, system%irec)
if (system%tp%nbody > 0) then
select type(tp => system%tp)
class is (symba_tp)
allocate(ntpenc_orig_pl, source=pl%ntpenc)
allocate(levelg_orig_tp, source=tp%levelg)
allocate(levelm_orig_tp, source=tp%levelm)
allocate(nplenc_orig_tp, source=tp%nplenc)
lencounter = tp%encounter_check(param, system, param%dt, 0)
lencounter = tp%encounter_check(param, system, param%dt, system%irec)
call move_alloc(levelg_orig_tp, tp%levelg)
call move_alloc(levelm_orig_tp, tp%levelm)
call move_alloc(nplenc_orig_tp, tp%nplenc)
Expand Down

0 comments on commit 4355bae

Please sign in to comment.