2 !WRF Error
and Warning
messages (1-999)
3 !All i
/o package
-specific status codes you may want to add must be handled by your
package (see below
)
4 ! WRF handles these
and netCDF messages only
5 integer
, parameter :: WRF_NO_ERR
= 0 !no error
6 integer
, parameter :: WRF_WARN_FILE_NF
= -1 !file
not found
, or incomplete
7 integer
, parameter :: WRF_WARN_MD_NF
= -2 !metadata
not found
8 integer
, parameter :: WRF_WARN_TIME_NF
= -3 !timestamp
not found
9 integer
, parameter :: WRF_WARN_TIME_EOF
= -4 !no more timestamps
10 integer
, parameter :: WRF_WARN_VAR_NF
= -5 !variable
not found
11 integer
, parameter :: WRF_WARN_VAR_EOF
= -6 !no more variables
for the current time
12 integer
, parameter :: WRF_WARN_TOO_MANY_FILES
= -7 !too many open files
13 integer
, parameter :: WRF_WARN_TYPE_MISMATCH
= -8 !data type mismatch
14 integer
, parameter :: WRF_WARN_WRITE_RONLY_FILE
= -9 !attempt to write readonly file
15 integer
, parameter :: WRF_WARN_READ_WONLY_FILE
= -10 !attempt to read writeonly file
16 integer
, parameter :: WRF_WARN_FILE_NOT_OPENED
= -11 !attempt to access unopened file
17 integer
, parameter :: WRF_WARN_2DRYRUNS_1VARIABLE
= -12 !attempt to
do 2 trainings
for 1 variable
18 integer
, parameter :: WRF_WARN_READ_PAST_EOF
= -13 !attempt to read past EOF
19 integer
, parameter :: WRF_WARN_BAD_DATA_HANDLE
= -14 !bad data handle
20 integer
, parameter :: WRF_WARN_WRTLEN_NE_DRRUNLEN
= -15 !write length
not equal to training length
21 integer
, parameter :: WRF_WARN_TOO_MANY_DIMS
= -16 !more dimensions requested than training
22 integer
, parameter :: WRF_WARN_COUNT_TOO_LONG
= -17 !attempt to read more data than exists
23 integer
, parameter :: WRF_WARN_DIMENSION_ERROR
= -18 !input dimension inconsistent
24 integer
, parameter :: WRF_WARN_BAD_MEMORYORDER
= -19 !input MemoryOrder
not recognized
25 integer
, parameter :: WRF_WARN_DIMNAME_REDEFINED
= -20 !a dimension name with
2 different lengths
26 integer
, parameter :: WRF_WARN_CHARSTR_GT_LENDATA
= -21 !string longer than provided storage
27 integer
, parameter :: WRF_WARN_NOTSUPPORTED
= -22 !function
not supportable
28 integer
, parameter :: WRF_WARN_NOOP
= -23 !package implements
this routine as NOOP
31 integer
, parameter :: WRF_ERR_FATAL_ALLOCATION_ERROR
= -100 !allocation error
32 integer
, parameter :: WRF_ERR_FATAL_DEALLOCATION_ERR
= -101 !dealloc error
33 integer
, parameter :: WRF_ERR_FATAL_BAD_FILE_STATUS
= -102 !bad file status
36 !Package specific
errors (1000+)
38 !WRF will accept status codes of
1000+, but it is up to the package to handle
39 ! and return the status to the user
.
41 integer
, parameter :: WRF_ERR_FATAL_BAD_VARIABLE_DIM
= -1004
42 integer
, parameter :: WRF_ERR_FATAL_MDVAR_DIM_NOT_1D
= -1005
43 integer
, parameter :: WRF_ERR_FATAL_TOO_MANY_TIMES
= -1006
44 integer
, parameter :: WRF_WARN_BAD_DATA_TYPE
= -1007 !this code
not in either spec
?
45 integer
, parameter :: WRF_WARN_FILE_NOT_COMMITTED
= -1008 !this code
not in either spec
?
46 integer
, parameter :: WRF_WARN_FILE_OPEN_FOR_READ
= -1009
47 integer
, parameter :: WRF_IO_NOT_INITIALIZED
= -1010
48 integer
, parameter :: WRF_WARN_MD_AFTER_OPEN
= -1011
49 integer
, parameter :: WRF_WARN_TOO_MANY_VARIABLES
= -1012
50 integer
, parameter :: WRF_WARN_DRYRUN_CLOSE
= -1013
51 integer
, parameter :: WRF_WARN_DATESTR_BAD_LENGTH
= -1014
52 integer
, parameter :: WRF_WARN_ZERO_LENGTH_READ
= -1015
53 integer
, parameter :: WRF_WARN_DATA_TYPE_NOT_FOUND
= -1016
54 integer
, parameter :: WRF_WARN_DATESTR_ERROR
= -1017
55 integer
, parameter :: WRF_WARN_DRYRUN_READ
= -1018
56 integer
, parameter :: WRF_WARN_ZERO_LENGTH_GET
= -1019
57 integer
, parameter :: WRF_WARN_ZERO_LENGTH_PUT
= -1020
58 integer
, parameter :: WRF_WARN_NETCDF
= -1021
59 integer
, parameter :: WRF_WARN_LENGTH_LESS_THAN_1
= -1022
60 integer
, parameter :: WRF_WARN_MORE_DATA_IN_FILE
= -1023
61 integer
, parameter :: WRF_WARN_DATE_LT_LAST_DATE
= -1024
64 integer
, parameter :: WRF_HDF5_ERR_FILE
= -200
65 integer
, parameter :: WRF_HDF5_ERR_MD
= -201
66 integer
, parameter :: WRF_HDF5_ERR_TIME
= -202
67 integer
, parameter :: WRF_HDF5_ERR_TIME_EOF
= -203
68 integer
, parameter :: WRF_HDF5_ERR_MORE_DATA_IN_FILE
= -204
69 integer
, parameter :: WRF_HDF5_ERR_DATE_LT_LAST_DATE
= -205
70 integer
, parameter :: WRF_HDF5_ERR_TOO_MANY_FILES
= -206
71 integer
, parameter :: WRF_HDF5_ERR_TYPE_MISMATCH
= -207
72 integer
, parameter :: WRF_HDF5_ERR_LENGTH_LESS_THAN_1
= -208
73 integer
, parameter :: WRF_HDF5_ERR_WRITE_RONLY_FILE
= -209
74 integer
, parameter :: WRF_HDF5_ERR_READ_WONLY_FILE
= -210
75 integer
, parameter :: WRF_HDF5_ERR_FILE_NOT_OPENED
= -211
76 integer
, parameter :: WRF_HDF5_ERR_DATESTR_ERROR
= -212
77 integer
, parameter :: WRF_HDF5_ERR_DRYRUN_READ
= -213
78 integer
, parameter :: WRF_HDF5_ERR_ZERO_LENGTH_GET
= -214
79 integer
, parameter :: WRF_HDF5_ERR_ZERO_LENGTH_PUT
= -215
80 integer
, parameter :: WRF_HDF5_ERR_2DRYRUNS_1VARIABLE
= -216
81 integer
, parameter :: WRF_HDF5_ERR_DATA_TYPE_NOTFOUND
= -217
82 integer
, parameter :: WRF_HDF5_ERR_READ_PAST_EOF
= -218
83 integer
, parameter :: WRF_HDF5_ERR_BAD_DATA_HANDLE
= -219
84 integer
, parameter :: WRF_HDF5_ERR_WRTLEN_NE_DRRUNLEN
= -220
85 integer
, parameter :: WRF_HDF5_ERR_DRYRUN_CLOSE
= -221
86 integer
, parameter :: WRF_HDF5_ERR_DATESTR_BAD_LENGTH
= -222
87 integer
, parameter :: WRF_HDF5_ERR_ZERO_LENGTH_READ
= -223
88 integer
, parameter :: WRF_HDF5_ERR_TOO_MANY_DIMS
= -224
89 integer
, parameter :: WRF_HDF5_ERR_TOO_MANY_VARIABLES
= -225
90 integer
, parameter :: WRF_HDF5_ERR_COUNT_TOO_LONG
= -226
91 integer
, parameter :: WRF_HDF5_ERR_DIMENSION_ERROR
= -227
92 integer
, parameter :: WRF_HDF5_ERR_BAD_MEMORYORDER
= -228
93 integer
, parameter :: WRF_HDF5_ERR_DIMNAME_REDEFINED
= -229
94 integer
, parameter :: WRF_HDF5_ERR_MD_AFTER_OPEN
= -230
95 integer
, parameter :: WRF_HDF5_ERR_CHARSTR_GT_LENDATA
= -231
96 integer
, parameter :: WRF_HDF5_ERR_BAD_DATA_TYPE
= -232
97 integer
, parameter :: WRF_HDF5_ERR_FILE_NOT_COMMITTED
= -233
99 integer
, parameter :: WRF_HDF5_ERR_ALLOCATION
= -2001
100 integer
, parameter :: WRF_HDF5_ERR_DEALLOCATION
= -2002
101 integer
, parameter :: WRF_HDF5_ERR_BAD_FILE_STATUS
= -2003
102 integer
, parameter :: WRF_HDF5_ERR_BAD_VARIABLE_DIM
= -2004
103 integer
, parameter :: WRF_HDF5_ERR_MDVAR_DIM_NOT_1D
= -2005
104 integer
, parameter :: WRF_HDF5_ERR_TOO_MANY_TIMES
= -2006
105 integer
, parameter :: WRF_HDF5_ERR_DATA_ID_NOTFOUND
= -2007
107 integer
, parameter :: WRF_HDF5_ERR_DATASPACE
= -300
108 integer
, parameter :: WRF_HDF5_ERR_DATATYPE
= -301
109 integer
, parameter :: WRF_HDF5_ERR_PROPERTY_LIST
= -302
111 integer
, parameter :: WRF_HDF5_ERR_DATASET_CREATE
= -303
112 integer
, parameter :: WRF_HDF5_ERR_DATASET_READ
= -304
113 integer
, parameter :: WRF_HDF5_ERR_DATASET_WRITE
= -305
114 integer
, parameter :: WRF_HDF5_ERR_DATASET_OPEN
= -306
115 integer
, parameter :: WRF_HDF5_ERR_DATASET_GENERAL
= -307
116 integer
, parameter :: WRF_HDF5_ERR_GROUP
= -308
118 integer
, parameter :: WRF_HDF5_ERR_FILE_OPEN
= -309
119 integer
, parameter :: WRF_HDF5_ERR_FILE_CREATE
= -310
120 integer
, parameter :: WRF_HDF5_ERR_DATASET_CLOSE
= -311
121 integer
, parameter :: WRF_HDF5_ERR_FILE_CLOSE
= -312
122 integer
, parameter :: WRF_HDF5_ERR_CLOSE_GENERAL
= -313
124 integer
, parameter :: WRF_HDF5_ERR_ATTRIBUTE_CREATE
= -314
125 integer
, parameter :: WRF_HDF5_ERR_ATTRIBUTE_READ
= -315
126 integer
, parameter :: WRF_HDF5_ERR_ATTRIBUTE_WRITE
= -316
127 integer
, parameter :: WRF_HDF5_ERR_ATTRIBUTE_OPEN
= -317
128 integer
, parameter :: WRF_HDF5_ERR_ATTRIBUTE_GENERAL
= -318
129 integer
, parameter :: WRF_HDF5_ERR_ATTRIBUTE_CLOSE
= -319
131 integer
, parameter :: WRF_HDF5_ERR_OTHERS
= -320
132 integer
, parameter :: WRF_HDF5_ERR_ATTRIBUTE_OTHERS
= -321