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

Commit

Permalink
Fixed bug resulting from accidentally removing the status flag settin…
Browse files Browse the repository at this point in the history
…g for encounters
  • Loading branch information
daminton committed Sep 17, 2021
1 parent 8ae5215 commit 9bec149
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion src/symba/symba_collision.f90
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,6 @@ module function symba_collision_check_encounter(self, system, param, t, dt, irec
class is (symba_pl)
select type(tp => system%tp)
class is (symba_tp)
nenc = self%nenc
nenc = self%nenc
allocate(lmask(nenc))
lmask(:) = ((self%status(1:nenc) == ACTIVE) .and. (pl%levelg(self%index1(1:nenc)) >= irec))
Expand Down
1 change: 1 addition & 0 deletions src/symba/symba_encounter_check.f90
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ module function symba_encounter_check_pl(self, param, system, dt, irec) result(l
j = plplenc_list%index2(k)
plplenc_list%id1(k) = pl%id(i)
plplenc_list%id2(k) = pl%id(j)
plplenc_list%status(k) = ACTIVE
plplenc_list%level(k) = irec
pl%lencounter(i) = .true.
pl%lencounter(j) = .true.
Expand Down

0 comments on commit 9bec149

Please sign in to comment.