1 module module_hydro_stop
7 ! stop the job due to the fatal error.
8 subroutine HYDRO_stop(msg)
12 character(len=*) :: msg
16 !#ifdef HYDRO_D !! PLEASE NEVER UNCOMMENT THIS IFDEF, it's just one incredibly useful string.
17 write(6,*) "The job is stopped due to the fatal error. ", trim(msg)
21 write(*,*) "FATAL ERROR: ", trim(msg)
22 write(78,*) "FATAL ERROR: ", trim(msg)
29 print*, "FATAL ERROR! Program stopped. Recompile with environment variable HYDRO_D set to 1 for enhanced debug information."
33 ! call mpp_land_sync()
34 ! write(my_id+90,*) msg
35 ! call flush(my_id+90)
38 call MPI_finalize(ierr)
40 stop "FATAL ERROR: Program stopped. Recompile with environment variable HYDRO_D set to 1 for enhanced debug information."
44 end subroutine HYDRO_stop