3 use netcdf
, only : nf90_ebaddim, nf90_enotatt, nf90_enotvar, nf90_noerr, nf90_strerror
19 integer,
intent(in) :: status
20 logical,
intent(out),
optional :: found_flag
22 if (
present(found_flag))
then 23 found_flag = status /= nf90_ebaddim .and. status /= nf90_enotatt .and. status /= nf90_enotvar
24 if (.not. found_flag)
return 27 if (status /= nf90_noerr)
then 28 call log_log(
log_error,
"NetCDF returned error code of "//trim(nf90_strerror(status)))
integer, parameter, public log_error
Only log ERROR messages.
subroutine, public log_log(level, message, str)
Logs a message at the specified level. If the level is above the current level then the message is ig...
subroutine, public check_netcdf_status(status, found_flag)
Will check a NetCDF status and write to log_log error any decoded statuses. Can be used to decode whe...
NetCDF misc functionality which can be shared between modules that work with NetCDF files...