15 character(len=*),
intent(in) :: string
17 integer,
intent(in) :: rc
21 print*,
"- FATAL ERROR: ", string
22 print*,
"- IOSTAT IS: ", rc
23 call mpi_abort(mpi_comm_world, 999, ierr)
37 integer,
intent(in) :: err
38 character(len=*),
intent(in) :: string
39 character(len=256) :: errmsg
42 if( err.EQ.nf90_noerr )
return
43 errmsg = nf90_strerror(err)
45 print*,
'FATAL ERROR: ', trim(string),
': ', trim(errmsg)
47 call mpi_abort(mpi_comm_world, 999, iret)
63 character(len=*),
intent(in) :: strin
64 character(len=len(strIn)) :: strout
68 j = iachar(strin(i:i))
69 if (j>= iachar(
"a") .and. j<=iachar(
"z") )
then
70 strout(i:i) = achar(iachar(strin(i:i))-32)
72 strout(i:i) = strin(i:i)
88 character(len=*),
intent(inout) :: strin
89 character(len=len(strIn)) :: strout
93 j = iachar(strin(i:i))
94 if (j>= iachar(
"A") .and. j<=iachar(
"Z") )
then
95 strout(i:i) = achar(iachar(strin(i:i))+32)
97 strout(i:i) = strin(i:i)
subroutine to_lower(strIn)
Convert from upper to lowercase.
subroutine netcdf_err(err, string)
Error handler for netcdf.
character(len=len(strin)) function to_upper(strIn)
Convert string from lower to uppercase.
subroutine error_handler(string, rc)
General error handler.