28 integer,
intent(in) :: err
29 character(len=*),
intent(in) :: string
30 character(len=256) :: errmsg
33 if( err.EQ.nf90_noerr )
return 34 errmsg = nf90_strerror(err)
36 print*,
'FATAL ERROR: ', trim(string),
': ', trim(errmsg)
38 call mpi_abort(mpi_comm_world, 999, ierr)
54 character(len=*),
intent(in) :: string
56 integer,
optional,
intent(in) :: rc
60 print*,
"- FATAL ERROR: ", string
61 if (
present(rc)) print*,
"- IOSTAT IS: ", rc
62 call mpi_abort(mpi_comm_world, 999, ierr)
subroutine, public error_handler(string, rc)
Handle errors.
subroutine, public netcdf_err(err, string)
Handle netCDF error codes.