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

Commit

Permalink
Added more diagnostic info to the mass conservation failure
Browse files Browse the repository at this point in the history
  • Loading branch information
daminton committed Nov 15, 2021
1 parent c2ddf3e commit 125946f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/io/io.f90
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@ module subroutine io_conservation_report(self, param, lterminal)
if (lterminal) write(*, EGYTERMFMT) Lerror, Ecoll_error, Etotal_error, Merror
if (abs(Merror) > 100 * epsilon(Merror)) then
write(*,*) "Severe error! Mass not conserved! Halting!"
write(*,*) "Merror = ", Merror
write(*,*) "GMtot_now : ",GMtot_now
write(*,*) "GMtot_orig: ",system%GMtot_orig
write(*,*) "Difference: ",GMtot_now - system%GMtot_orig
call pl%xv2el(cb)
call self%write_hdr(param%nciu, param)
call cb%write_frame(param%nciu, param)
Expand Down

0 comments on commit 125946f

Please sign in to comment.