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

Commit

Permalink
added in high angular momentum failure reporting and exit
Browse files Browse the repository at this point in the history
  • Loading branch information
cwishard committed Jun 25, 2021
1 parent a958a36 commit 02c4e20
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/io/io_conservation_report.f90
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,11 @@ module subroutine io_conservation_report(t, symba_plA, npl, j2rp2, j4rp4, param,
write(*,*) 'dpe : ',(pe_now - pe_last) / abs(Eorbit_orig)
write(*,*)
end if
if (Lerror > 1e-10) then
write(*,*) 'Something has gone wrong! Angular momentum is too high!'
write(*,*) 'Lerror: ', Lerror
call util_exit(FAILURE)
end if
end if
ke_orbit_last = ke_orbit_now
ke_spin_last = ke_spin_now
Expand Down

0 comments on commit 02c4e20

Please sign in to comment.