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

Commit

Permalink
symba_frag_pos updated energy error success criteria and reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
cwishard committed Jun 1, 2021
1 parent f39d5cd commit 518790e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/symba/symba_frag_pos.f90
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@ subroutine symba_frag_pos(param, symba_plA, family, x, v, L_spin, Ip, mass, radi
if (lmerge) write(*,*) 'Failed to find radial velocities'
if (.not.lmerge) then
call calculate_system_energy(linclude_fragments=.true.)
if ((abs(dEtot) - Qloss) / Qloss > Etol) then
write(*,*) 'Failed due to high energy error: ',(abs(dEtot) - Qloss) / Qloss
if ((abs(dEtot / Etot_before) < Qloss) .or. (dEtot > 0.0_DP)) then
write(*,*) 'Failed due to high energy error: ', abs(dEtot / Etot_before)
lmerge = .true.
else if (abs(dLmag) > Ltol) then
write(*,*) 'Failed due to high angular momentum error: ', dLmag
Expand Down

0 comments on commit 518790e

Please sign in to comment.