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

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixed problem where bad angular momentum conservation was not flagged as a failed try
  • Loading branch information
daminton committed May 23, 2021
1 parent 243ffcd commit 7abe593
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/symba/symba_frag_pos.f90
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ subroutine symba_frag_pos(param, symba_plA, family, x, v, L_spin, Ip, mass, radi
call define_pre_collisional_family()

try = 1
lmerge = .false.
do while (nfrag >= NFRAG_MIN)
!write(*, "(' -------------------------------------------------------------------------------------')")
!write(*,*) "Try number: ",try, ' of ',ntry
Expand Down Expand Up @@ -214,6 +215,7 @@ subroutine symba_frag_pos(param, symba_plA, family, x, v, L_spin, Ip, mass, radi
lmerge = .true.
else if (abs(dLmag) > Ltol) then
write(*,*) 'Failed try ',try,': Angular momentum error too big: ',dLmag
lmerge = .true.
end if

!write(*, "(' -------------------------------------------------------------------------------------')")
Expand All @@ -238,6 +240,7 @@ subroutine symba_frag_pos(param, symba_plA, family, x, v, L_spin, Ip, mass, radi
if (.not.lmerge) exit
call restructure_failed_fragments()
try = try + 1
lmerge = .false.
end do
!write(*, "(' -------------------------------------------------------------------------------------')")
!write(*, "(' Final diagnostic')")
Expand Down

0 comments on commit 7abe593

Please sign in to comment.