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

Commit

Permalink
Fixed issue that was causing hit and run bodies to be removed
Browse files Browse the repository at this point in the history
  • Loading branch information
daminton committed Aug 11, 2021
1 parent c231bec commit f033af9
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/symba/symba_fragmentation.f90
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,14 @@ module function symba_fragmentation_casehitandrun(system, param, family, x, v, m
write(*,'("Generating ",I2.0," fragments")') nfrag
end if
end if
if (lpure) then
if (lpure) then ! Reset these bodies back to being active so that nothing further is done to them
status = ACTIVE
select type(pl => system%pl)
class is (symba_pl)
pl%status(family(:)) = status
pl%ldiscard(family(:)) = .false.
pl%lcollision(family(:)) = .false.
end select
else
status = HIT_AND_RUN
call symba_fragmentation_mergeaddsub(system, param, family, id_frag, Ip_frag, m_frag, rad_frag, xb_frag, vb_frag, rot_frag, status)
Expand Down

0 comments on commit f033af9

Please sign in to comment.