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

Commit

Permalink
Re-enabled sorting of particles after testing
Browse files Browse the repository at this point in the history
  • Loading branch information
daminton committed Aug 12, 2021
1 parent 3861157 commit 1f793cb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/symba/symba_step.f90
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,9 @@ module recursive subroutine symba_step_recur_system(self, param, t, ireci)
if (param%lclose) then
lplpl_collision = plplenc_list%collision_check(system, param, t+dtl, dtl, ireci)
lpltp_collision = pltpenc_list%collision_check(system, param, t+dtl, dtl, ireci)

if (lplpl_collision) call pl%discard(system, param)
if (lpltp_collision) call tp%discard(system, param)
end if

call self%set_recur_levels(ireci)
Expand Down
2 changes: 1 addition & 1 deletion src/whm/whm_setup.f90
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ module subroutine whm_setup_initialize_system(self, param)
call setup_initialize_system(self, param)
! First we need to make sure that the massive bodies are sorted by heliocentric distance before computing jacobies
call util_set_ir3h(self%pl)
!call self%pl%sort("ir3h", ascending=.false.)
call self%pl%sort("ir3h", ascending=.false.)

! Make sure that the discard list gets allocated initially
call self%tp_discards%setup(0, param)
Expand Down

0 comments on commit 1f793cb

Please sign in to comment.