mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 22:26:08 -04:00
Added cycle and particle number to fatal error output.
This commit is contained in:
parent
c8cb7f1fc0
commit
76b5647f58
1 changed files with 6 additions and 1 deletions
|
|
@ -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()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue