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

Commit

Permalink
Minor restructuring
Browse files Browse the repository at this point in the history
  • Loading branch information
daminton committed Dec 13, 2022
1 parent b862fb4 commit ecdce0b
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions src/symba/symba_collision.f90
Original file line number Diff line number Diff line change
Expand Up @@ -381,22 +381,20 @@ module function symba_collision_check_encounter(self, system, param, t, dt, irec
end if
end if
end do

! Extract the pl-pl or pl-tp encounter list and return the pl-pl or pl-tp collision_list
select type(self)
class is (symba_plplenc)
call self%extract_collisions(system, param)
class is (symba_pltpenc)
allocate(tmp, mold=self)
call self%spill(tmp, lcollision, ldestructive=.true.) ! Remove this encounter pair from the encounter list
end select
end if

end select
end select

! Extract the pl-pl or pl-tp encounter list and return the pl-pl or pl-tp collision_list
if (lany_collision) then
select type(self)
class is (symba_plplenc)
call self%extract_collisions(system, param)
class default
allocate(tmp, mold=self)
call self%spill(tmp, lcollision, ldestructive=.true.) ! Remove this encounter pair from the encounter list
end select
end if

return
end function symba_collision_check_encounter

Expand Down

0 comments on commit ecdce0b

Please sign in to comment.