Added cycle and particle number to fatal error output.

This commit is contained in:
Paul Romano 2012-02-15 15:55:05 -05:00
parent c8cb7f1fc0
commit 76b5647f58

View file

@ -2,7 +2,7 @@ module error
use, intrinsic :: ISO_FORTRAN_ENV
use global, only: master, free_memory, message, mpi_err
use global
#ifdef MPI
use mpi
@ -75,6 +75,11 @@ contains
end do
write(ERROR_UNIT,*)
! Write information on current cycle and particle
write(ERROR_UNIT,'(1X,A,I11) ') 'Cycle: ', current_cycle
write(ERROR_UNIT,'(1X,A,I11)') 'Particle: ', p % id
write(ERROR_UNIT,*)
! Release memory from all allocatable arrays
call free_memory()