mo_cdi.f90 243 KB
Newer Older
1
2
! >>> Warning: This is a generated file. If you modify it, you get what you deserve. <<<
!
3
! Generated by "../../../interfaces/f2003/bindGen.rb" from input file "../../../src/cdi.h".
Uwe Schulzweida's avatar
Uwe Schulzweida committed
4
5

module mo_cdi
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
  use iso_c_binding
  implicit none
  private

  public ctrim
  public c_len

  interface
    integer(c_size_t) function lib_strlen(charPtr) bind(c, name = "strlen")
      import c_size_t, c_ptr
      type(c_ptr), value :: charPtr
    end function lib_strlen

    subroutine lib_free(pointer) bind(c, name = "free")
      import c_ptr
      type(c_ptr), value :: pointer
    end subroutine lib_free
  end interface

  integer(c_int), public, parameter :: CDI_MAX_NAME = 256
  integer(c_int), public, parameter :: CDI_UNDEFID = -1
  integer(c_int), public, parameter :: CDI_GLOBAL = -1
  integer(c_int), public, parameter :: CDI_BIGENDIAN = 0
  integer(c_int), public, parameter :: CDI_LITTLEENDIAN = 1
30
  integer(c_int), public, parameter :: CDI_PDPENDIAN = 2
31
32
33
34
35
  integer(c_int), public, parameter :: CDI_REAL = 1
  integer(c_int), public, parameter :: CDI_COMP = 2
  integer(c_int), public, parameter :: CDI_BOTH = 3
  integer(c_int), public, parameter :: CDI_NOERR = 0
  integer(c_int), public, parameter :: CDI_EEOF = -1
36
  integer(c_int), public, parameter :: CDI_ETMOF = -9
37
38
  integer(c_int), public, parameter :: CDI_ESYSTEM = -10
  integer(c_int), public, parameter :: CDI_EINVAL = -20
39
40
41
42
43
44
45
  integer(c_int), public, parameter :: CDI_EISDIR = -21
  integer(c_int), public, parameter :: CDI_EISEMPTY = -22
  integer(c_int), public, parameter :: CDI_EUFTYPE = -23
  integer(c_int), public, parameter :: CDI_ELIBNAVAIL = -24
  integer(c_int), public, parameter :: CDI_EUFSTRUCT = -25
  integer(c_int), public, parameter :: CDI_EUNC4 = -26
  integer(c_int), public, parameter :: CDI_EDIMSIZE = -27
46
  integer(c_int), public, parameter :: CDI_ELIMIT = -99
47
48
49
50
51
52
  integer(c_int), public, parameter :: CDI_FILETYPE_GRB = 1
  integer(c_int), public, parameter :: CDI_FILETYPE_GRB2 = 2
  integer(c_int), public, parameter :: CDI_FILETYPE_NC = 3
  integer(c_int), public, parameter :: CDI_FILETYPE_NC2 = 4
  integer(c_int), public, parameter :: CDI_FILETYPE_NC4 = 5
  integer(c_int), public, parameter :: CDI_FILETYPE_NC4C = 6
53
54
55
56
  integer(c_int), public, parameter :: CDI_FILETYPE_NC5 = 7
  integer(c_int), public, parameter :: CDI_FILETYPE_SRV = 8
  integer(c_int), public, parameter :: CDI_FILETYPE_EXT = 9
  integer(c_int), public, parameter :: CDI_FILETYPE_IEG = 10
57
58
  integer(c_int), public, parameter :: CDI_COMPRESS_NONE = 0
  integer(c_int), public, parameter :: CDI_COMPRESS_SZIP = 1
59
60
61
  integer(c_int), public, parameter :: CDI_COMPRESS_AEC = 2
  integer(c_int), public, parameter :: CDI_COMPRESS_ZIP = 3
  integer(c_int), public, parameter :: CDI_COMPRESS_JPEG = 4
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
  integer(c_int), public, parameter :: CDI_DATATYPE_PACK = 0
  integer(c_int), public, parameter :: CDI_DATATYPE_PACK1 = 1
  integer(c_int), public, parameter :: CDI_DATATYPE_PACK2 = 2
  integer(c_int), public, parameter :: CDI_DATATYPE_PACK3 = 3
  integer(c_int), public, parameter :: CDI_DATATYPE_PACK4 = 4
  integer(c_int), public, parameter :: CDI_DATATYPE_PACK5 = 5
  integer(c_int), public, parameter :: CDI_DATATYPE_PACK6 = 6
  integer(c_int), public, parameter :: CDI_DATATYPE_PACK7 = 7
  integer(c_int), public, parameter :: CDI_DATATYPE_PACK8 = 8
  integer(c_int), public, parameter :: CDI_DATATYPE_PACK9 = 9
  integer(c_int), public, parameter :: CDI_DATATYPE_PACK10 = 10
  integer(c_int), public, parameter :: CDI_DATATYPE_PACK11 = 11
  integer(c_int), public, parameter :: CDI_DATATYPE_PACK12 = 12
  integer(c_int), public, parameter :: CDI_DATATYPE_PACK13 = 13
  integer(c_int), public, parameter :: CDI_DATATYPE_PACK14 = 14
  integer(c_int), public, parameter :: CDI_DATATYPE_PACK15 = 15
  integer(c_int), public, parameter :: CDI_DATATYPE_PACK16 = 16
  integer(c_int), public, parameter :: CDI_DATATYPE_PACK17 = 17
  integer(c_int), public, parameter :: CDI_DATATYPE_PACK18 = 18
  integer(c_int), public, parameter :: CDI_DATATYPE_PACK19 = 19
  integer(c_int), public, parameter :: CDI_DATATYPE_PACK20 = 20
  integer(c_int), public, parameter :: CDI_DATATYPE_PACK21 = 21
  integer(c_int), public, parameter :: CDI_DATATYPE_PACK22 = 22
  integer(c_int), public, parameter :: CDI_DATATYPE_PACK23 = 23
  integer(c_int), public, parameter :: CDI_DATATYPE_PACK24 = 24
  integer(c_int), public, parameter :: CDI_DATATYPE_PACK25 = 25
  integer(c_int), public, parameter :: CDI_DATATYPE_PACK26 = 26
  integer(c_int), public, parameter :: CDI_DATATYPE_PACK27 = 27
  integer(c_int), public, parameter :: CDI_DATATYPE_PACK28 = 28
  integer(c_int), public, parameter :: CDI_DATATYPE_PACK29 = 29
  integer(c_int), public, parameter :: CDI_DATATYPE_PACK30 = 30
  integer(c_int), public, parameter :: CDI_DATATYPE_PACK31 = 31
  integer(c_int), public, parameter :: CDI_DATATYPE_PACK32 = 32
  integer(c_int), public, parameter :: CDI_DATATYPE_CPX32 = 64
  integer(c_int), public, parameter :: CDI_DATATYPE_CPX64 = 128
  integer(c_int), public, parameter :: CDI_DATATYPE_FLT32 = 132
  integer(c_int), public, parameter :: CDI_DATATYPE_FLT64 = 164
  integer(c_int), public, parameter :: CDI_DATATYPE_INT8 = 208
  integer(c_int), public, parameter :: CDI_DATATYPE_INT16 = 216
  integer(c_int), public, parameter :: CDI_DATATYPE_INT32 = 232
  integer(c_int), public, parameter :: CDI_DATATYPE_UINT8 = 308
  integer(c_int), public, parameter :: CDI_DATATYPE_UINT16 = 316
  integer(c_int), public, parameter :: CDI_DATATYPE_UINT32 = 332
  integer(c_int), public, parameter :: CDI_DATATYPE_INT = 251
  integer(c_int), public, parameter :: CDI_DATATYPE_FLT = 252
  integer(c_int), public, parameter :: CDI_DATATYPE_TXT = 253
  integer(c_int), public, parameter :: CDI_DATATYPE_CPX = 254
  integer(c_int), public, parameter :: CDI_DATATYPE_UCHAR = 255
  integer(c_int), public, parameter :: CDI_DATATYPE_LONG = 256
111
  integer(c_int), public, parameter :: CDI_DATATYPE_UINT = 257
Uwe Schulzweida's avatar
Uwe Schulzweida committed
112
113
114
  integer(c_int), public, parameter :: CDI_CHUNK_AUTO = 1
  integer(c_int), public, parameter :: CDI_CHUNK_GRID = 2
  integer(c_int), public, parameter :: CDI_CHUNK_LINES = 3
115
116
117
118
119
120
121
122
123
124
  integer(c_int), public, parameter :: GRID_GENERIC = 1
  integer(c_int), public, parameter :: GRID_GAUSSIAN = 2
  integer(c_int), public, parameter :: GRID_GAUSSIAN_REDUCED = 3
  integer(c_int), public, parameter :: GRID_LONLAT = 4
  integer(c_int), public, parameter :: GRID_SPECTRAL = 5
  integer(c_int), public, parameter :: GRID_FOURIER = 6
  integer(c_int), public, parameter :: GRID_GME = 7
  integer(c_int), public, parameter :: GRID_TRAJECTORY = 8
  integer(c_int), public, parameter :: GRID_UNSTRUCTURED = 9
  integer(c_int), public, parameter :: GRID_CURVILINEAR = 10
Uwe Schulzweida's avatar
Uwe Schulzweida committed
125
  integer(c_int), public, parameter :: GRID_PROJECTION = 12
126
  integer(c_int), public, parameter :: GRID_CHARXY = 13
Uwe Schulzweida's avatar
Uwe Schulzweida committed
127
128
129
130
  integer(c_int), public, parameter :: CDI_PROJ_RLL = 21
  integer(c_int), public, parameter :: CDI_PROJ_LCC = 22
  integer(c_int), public, parameter :: CDI_PROJ_LAEA = 23
  integer(c_int), public, parameter :: CDI_PROJ_SINU = 24
Uwe Schulzweida's avatar
Uwe Schulzweida committed
131
  integer(c_int), public, parameter :: CDI_PROJ_STERE = 25
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
  integer(c_int), public, parameter :: ZAXIS_SURFACE = 0
  integer(c_int), public, parameter :: ZAXIS_GENERIC = 1
  integer(c_int), public, parameter :: ZAXIS_HYBRID = 2
  integer(c_int), public, parameter :: ZAXIS_HYBRID_HALF = 3
  integer(c_int), public, parameter :: ZAXIS_PRESSURE = 4
  integer(c_int), public, parameter :: ZAXIS_HEIGHT = 5
  integer(c_int), public, parameter :: ZAXIS_DEPTH_BELOW_SEA = 6
  integer(c_int), public, parameter :: ZAXIS_DEPTH_BELOW_LAND = 7
  integer(c_int), public, parameter :: ZAXIS_ISENTROPIC = 8
  integer(c_int), public, parameter :: ZAXIS_TRAJECTORY = 9
  integer(c_int), public, parameter :: ZAXIS_ALTITUDE = 10
  integer(c_int), public, parameter :: ZAXIS_SIGMA = 11
  integer(c_int), public, parameter :: ZAXIS_MEANSEA = 12
  integer(c_int), public, parameter :: ZAXIS_TOA = 13
  integer(c_int), public, parameter :: ZAXIS_SEA_BOTTOM = 14
  integer(c_int), public, parameter :: ZAXIS_ATMOSPHERE = 15
  integer(c_int), public, parameter :: ZAXIS_CLOUD_BASE = 16
  integer(c_int), public, parameter :: ZAXIS_CLOUD_TOP = 17
  integer(c_int), public, parameter :: ZAXIS_ISOTHERM_ZERO = 18
  integer(c_int), public, parameter :: ZAXIS_SNOW = 19
  integer(c_int), public, parameter :: ZAXIS_LAKE_BOTTOM = 20
  integer(c_int), public, parameter :: ZAXIS_SEDIMENT_BOTTOM = 21
  integer(c_int), public, parameter :: ZAXIS_SEDIMENT_BOTTOM_TA = 22
  integer(c_int), public, parameter :: ZAXIS_SEDIMENT_BOTTOM_TW = 23
  integer(c_int), public, parameter :: ZAXIS_MIX_LAYER = 24
  integer(c_int), public, parameter :: ZAXIS_REFERENCE = 25
158
  integer(c_int), public, parameter :: ZAXIS_CHAR = 26
159
160
  integer(c_int), public, parameter :: MAX_KV_PAIRS_MATCH = 10
  integer(c_int), public, parameter :: TIME_CONSTANT = 0
161
  integer(c_int), public, parameter :: TIME_VARYING = 1
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
  integer(c_int), public, parameter :: TIME_VARIABLE = 1
  integer(c_int), public, parameter :: TSTEP_INSTANT = 1
  integer(c_int), public, parameter :: TSTEP_AVG = 2
  integer(c_int), public, parameter :: TSTEP_ACCUM = 3
  integer(c_int), public, parameter :: TSTEP_MAX = 4
  integer(c_int), public, parameter :: TSTEP_MIN = 5
  integer(c_int), public, parameter :: TSTEP_DIFF = 6
  integer(c_int), public, parameter :: TSTEP_RMS = 7
  integer(c_int), public, parameter :: TSTEP_SD = 8
  integer(c_int), public, parameter :: TSTEP_COV = 9
  integer(c_int), public, parameter :: TSTEP_RATIO = 10
  integer(c_int), public, parameter :: TSTEP_RANGE = 11
  integer(c_int), public, parameter :: TSTEP_INSTANT2 = 12
  integer(c_int), public, parameter :: TSTEP_INSTANT3 = 13
  integer(c_int), public, parameter :: TAXIS_ABSOLUTE = 1
  integer(c_int), public, parameter :: TAXIS_RELATIVE = 2
  integer(c_int), public, parameter :: TAXIS_FORECAST = 3
  integer(c_int), public, parameter :: TUNIT_SECOND = 1
  integer(c_int), public, parameter :: TUNIT_MINUTE = 2
  integer(c_int), public, parameter :: TUNIT_QUARTER = 3
  integer(c_int), public, parameter :: TUNIT_30MINUTES = 4
  integer(c_int), public, parameter :: TUNIT_HOUR = 5
  integer(c_int), public, parameter :: TUNIT_3HOURS = 6
  integer(c_int), public, parameter :: TUNIT_6HOURS = 7
  integer(c_int), public, parameter :: TUNIT_12HOURS = 8
  integer(c_int), public, parameter :: TUNIT_DAY = 9
  integer(c_int), public, parameter :: TUNIT_MONTH = 10
  integer(c_int), public, parameter :: TUNIT_YEAR = 11
  integer(c_int), public, parameter :: CALENDAR_STANDARD = 0
Uwe Schulzweida's avatar
Uwe Schulzweida committed
191
192
193
194
195
196
  integer(c_int), public, parameter :: CALENDAR_GREGORIAN = 1
  integer(c_int), public, parameter :: CALENDAR_PROLEPTIC = 2
  integer(c_int), public, parameter :: CALENDAR_360DAYS = 3
  integer(c_int), public, parameter :: CALENDAR_365DAYS = 4
  integer(c_int), public, parameter :: CALENDAR_366DAYS = 5
  integer(c_int), public, parameter :: CALENDAR_NONE = 6
197
198
199
200
201
202
203
204
205
  integer(c_int), public, parameter :: CDI_UUID_SIZE = 16

  public t_CdiParam
  type, bind(c) :: t_CdiParam
    integer(c_int) :: discipline
    integer(c_int) :: category
    integer(c_int) :: number
  end type t_CdiParam

206
207
  public :: t_CdiIterator
  type :: t_CdiIterator
208
209
210
    type(c_ptr) :: ptr
  end type t_CdiIterator

211
212
  public :: t_CdiGribIterator
  type :: t_CdiGribIterator
213
214
    type(c_ptr) :: ptr
  end type t_CdiGribIterator
Thomas Jahns's avatar
Thomas Jahns committed
215
216
217
218
219
220
221
222
  public :: cdiReset
  public :: cdiStringError
  public :: cdiDebug
  public :: cdiLibraryVersion
  public :: cdiPrintVersion
  public :: cdiHaveFiletype
  public :: cdiDefMissval
  public :: cdiInqMissval
Uwe Schulzweida's avatar
Uwe Schulzweida committed
223
  public :: cdiInqGridMissval
Thomas Jahns's avatar
Thomas Jahns committed
224
225
226
  public :: cdiDefGlobal
  public :: namespaceNew
  public :: namespaceSetActive
227
  public :: namespaceGetActive
Thomas Jahns's avatar
Thomas Jahns committed
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
  public :: namespaceDelete
  public :: cdiParamToString
  public :: cdiDecodeParam
  public :: cdiEncodeParam
  public :: cdiDecodeDate
  public :: cdiEncodeDate
  public :: cdiDecodeTime
  public :: cdiEncodeTime
  public :: cdiGetFiletype
  public :: streamOpenRead
  public :: streamOpenWrite
  public :: streamOpenAppend
  public :: streamClose
  public :: streamSync
  public :: streamDefVlist
  public :: streamInqVlist
  public :: streamInqFiletype
  public :: streamDefByteorder
  public :: streamInqByteorder
  public :: streamDefCompType
  public :: streamInqCompType
  public :: streamDefCompLevel
  public :: streamInqCompLevel
  public :: streamDefTimestep
  public :: streamInqTimestep
  public :: streamInqCurTimestepID
  public :: streamFilename
  public :: streamFilesuffix
Uwe Schulzweida's avatar
Uwe Schulzweida committed
256
  public :: streamNvals
Thomas Jahns's avatar
Thomas Jahns committed
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
  public :: streamInqNvars
  public :: streamWriteVar
  public :: streamWriteVarF
  public :: streamReadVar
  public :: streamReadVarF
  public :: streamWriteVarSlice
  public :: streamWriteVarSliceF
  public :: streamReadVarSlice
  public :: streamReadVarSliceF
  public :: streamWriteVarChunk
  public :: streamDefRecord
  public :: streamInqRecord
  public :: streamWriteRecord
  public :: streamWriteRecordF
  public :: streamReadRecord
272
  public :: streamReadRecordF
Thomas Jahns's avatar
Thomas Jahns committed
273
274
275
276
277
278
279
280
281
  public :: streamCopyRecord
  public :: cdiIterator_new
  public :: cdiIterator_clone
  public :: cdiIterator_serialize
  public :: cdiIterator_deserialize
  public :: cdiIterator_delete
  public :: cdiIterator_nextField
  public :: cdiIterator_inqStartTime
  public :: cdiIterator_inqEndTime
282
  public :: cdiIterator_inqRTime
Thomas Jahns's avatar
Thomas Jahns committed
283
284
285
286
  public :: cdiIterator_inqVTime
  public :: cdiIterator_inqLevelType
  public :: cdiIterator_inqLevel
  public :: cdiIterator_inqLevelUuid
287
288
  public :: cdiIterator_inqTile
  public :: cdiIterator_inqTileCount
Thomas Jahns's avatar
Thomas Jahns committed
289
  public :: cdiIterator_inqParam
290
  public :: cdiIterator_inqParamParts
Thomas Jahns's avatar
Thomas Jahns committed
291
  public :: cdiIterator_inqDatatype
292
  public :: cdiIterator_inqFiletype
Thomas Jahns's avatar
Thomas Jahns committed
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
  public :: cdiIterator_inqTsteptype
  public :: cdiIterator_inqVariableName
  public :: cdiIterator_inqGridId
  public :: cdiIterator_readField
  public :: cdiIterator_readFieldF
  public :: cdiGribIterator_clone
  public :: cdiGribIterator_delete
  public :: cdiGribIterator_getLong
  public :: cdiGribIterator_getDouble
  public :: cdiGribIterator_getLength
  public :: cdiGribIterator_getString
  public :: cdiGribIterator_getSize
  public :: cdiGribIterator_getLongArray
  public :: cdiGribIterator_getDoubleArray
  public :: cdiGribIterator_inqEdition
  public :: cdiGribIterator_inqLongValue
  public :: cdiGribIterator_inqLongDefaultValue
  public :: cdiGribIterator_inqDoubleValue
  public :: cdiGribIterator_inqDoubleDefaultValue
  public :: cdiGribIterator_inqStringValue
  public :: vlistCreate
  public :: vlistDestroy
  public :: vlistDuplicate
  public :: vlistCopy
  public :: vlistCopyFlag
  public :: vlistClearFlag
  public :: vlistCat
  public :: vlistMerge
  public :: vlistPrint
  public :: vlistNumber
  public :: vlistNvars
  public :: vlistNgrids
  public :: vlistNzaxis
  public :: vlistNsubtypes
  public :: vlistDefNtsteps
  public :: vlistNtsteps
  public :: vlistGridsizeMax
  public :: vlistGrid
  public :: vlistGridIndex
  public :: vlistChangeGridIndex
  public :: vlistChangeGrid
  public :: vlistZaxis
  public :: vlistZaxisIndex
  public :: vlistChangeZaxisIndex
  public :: vlistChangeZaxis
  public :: vlistNrecs
  public :: vlistSubtype
  public :: vlistSubtypeIndex
  public :: vlistDefTaxis
  public :: vlistInqTaxis
  public :: vlistDefTable
  public :: vlistInqTable
  public :: vlistDefInstitut
  public :: vlistInqInstitut
  public :: vlistDefModel
  public :: vlistInqModel
  public :: vlistDefVarTiles
  public :: vlistDefVar
  public :: vlistChangeVarGrid
  public :: vlistChangeVarZaxis
  public :: vlistInqVar
  public :: vlistInqVarGrid
  public :: vlistInqVarZaxis
  public :: vlistInqVarID
357
358
  public :: vlistDefVarTimetype
  public :: vlistInqVarTimetype
Thomas Jahns's avatar
Thomas Jahns committed
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
  public :: vlistDefVarTsteptype
  public :: vlistInqVarTsteptype
  public :: vlistDefVarCompType
  public :: vlistInqVarCompType
  public :: vlistDefVarCompLevel
  public :: vlistInqVarCompLevel
  public :: vlistDefVarParam
  public :: vlistInqVarParam
  public :: vlistDefVarCode
  public :: vlistInqVarCode
  public :: vlistDefVarDatatype
  public :: vlistInqVarDatatype
  public :: vlistDefVarChunkType
  public :: vlistInqVarChunkType
  public :: vlistDefVarXYZ
  public :: vlistInqVarXYZ
  public :: vlistInqVarNumber
  public :: vlistDefVarInstitut
  public :: vlistInqVarInstitut
  public :: vlistDefVarModel
  public :: vlistInqVarModel
  public :: vlistDefVarTable
  public :: vlistInqVarTable
  public :: vlistDefVarName
  public :: vlistInqVarName
  public :: vlistCopyVarName
  public :: vlistDefVarStdname
  public :: vlistInqVarStdname
  public :: vlistDefVarLongname
  public :: vlistInqVarLongname
  public :: vlistDefVarUnits
  public :: vlistInqVarUnits
  public :: vlistDefVarMissval
  public :: vlistInqVarMissval
  public :: vlistDefVarExtra
  public :: vlistInqVarExtra
  public :: vlistDefVarScalefactor
  public :: vlistInqVarScalefactor
  public :: vlistDefVarAddoffset
  public :: vlistInqVarAddoffset
  public :: vlistDefVarTimave
  public :: vlistInqVarTimave
  public :: vlistInqVarSize
  public :: vlistDefIndex
  public :: vlistInqIndex
  public :: vlistDefFlag
  public :: vlistInqFlag
  public :: vlistFindVar
  public :: vlistFindLevel
  public :: vlistMergedVar
  public :: vlistMergedLevel
  public :: cdiClearAdditionalKeys
  public :: cdiDefAdditionalKey
  public :: vlistDefVarIntKey
  public :: vlistDefVarDblKey
  public :: vlistHasVarKey
  public :: vlistInqVarDblKey
  public :: vlistInqVarIntKey
Uwe Schulzweida's avatar
Uwe Schulzweida committed
417
418
419
  public :: cdiInqNatts
  public :: cdiInqAtt
  public :: cdiDelAtt
Thomas Jahns's avatar
Thomas Jahns committed
420
  public :: cdiCopyAtts
Uwe Schulzweida's avatar
Uwe Schulzweida committed
421
422
423
424
425
426
  public :: cdiDefAttInt
  public :: cdiDefAttFlt
  public :: cdiDefAttTxt
  public :: cdiInqAttInt
  public :: cdiInqAttFlt
  public :: cdiInqAttTxt
Thomas Jahns's avatar
Thomas Jahns committed
427
428
429
430
431
432
433
434
435
436
437
  public :: gridName
  public :: gridNamePtr
  public :: gridCompress
  public :: gridDefMaskGME
  public :: gridInqMaskGME
  public :: gridDefMask
  public :: gridInqMask
  public :: gridPrint
  public :: gridCreate
  public :: gridDestroy
  public :: gridDuplicate
Uwe Schulzweida's avatar
Uwe Schulzweida committed
438
439
440
  public :: gridDefProj
  public :: gridInqProj
  public :: gridInqProjType
Thomas Jahns's avatar
Thomas Jahns committed
441
442
443
444
445
446
447
448
449
450
  public :: gridInqType
  public :: gridInqSize
  public :: gridDefXsize
  public :: gridInqXsize
  public :: gridDefYsize
  public :: gridInqYsize
  public :: gridDefNP
  public :: gridInqNP
  public :: gridDefXvals
  public :: gridInqXvals
Uwe Schulzweida's avatar
Uwe Schulzweida committed
451
  public :: gridInqXvalsPart
452
  public :: gridInqXIsc
Thomas Jahns's avatar
Thomas Jahns committed
453
454
  public :: gridDefYvals
  public :: gridInqYvals
Uwe Schulzweida's avatar
Uwe Schulzweida committed
455
  public :: gridInqYvalsPart
456
  public :: gridInqYIsc
Thomas Jahns's avatar
Thomas Jahns committed
457
458
459
460
461
462
463
464
465
466
467
  integer(c_int), public, parameter :: CDI_KEY_TABLESVERSION = 801
  integer(c_int), public, parameter :: CDI_KEY_LOCALTABLESVERSION = 802
  integer(c_int), public, parameter :: CDI_KEY_TYPEOFGENERATINGPROCESS = 803
  integer(c_int), public, parameter :: CDI_KEY_PRODUCTDEFINITIONTEMPLATE = 804
  integer(c_int), public, parameter :: CDI_KEY_TYPEOFPROCESSEDDATA = 805
  integer(c_int), public, parameter :: CDI_KEY_SHAPEOFTHEEARTH = 806
  integer(c_int), public, parameter :: CDI_KEY_BACKGROUNDPROCESS = 807
  integer(c_int), public, parameter :: CDI_KEY_TYPEOFENSEMBLEFORECAST = 808
  integer(c_int), public, parameter :: CDI_KEY_NUMBEROFFORECASTSINENSEMBLE =&
  & 809
  integer(c_int), public, parameter :: CDI_KEY_PERTURBATIONNUMBER = 810
Uwe Schulzweida's avatar
Uwe Schulzweida committed
468
469
470
471
472
473
474
  integer(c_int), public, parameter :: CDI_KEY_CENTRE = 811
  integer(c_int), public, parameter :: CDI_KEY_SUBCENTRE = 812
  integer(c_int), public, parameter :: CDI_KEY_MPIMTYPE = 813
  integer(c_int), public, parameter :: CDI_KEY_MPIMCLASS = 814
  integer(c_int), public, parameter :: CDI_KEY_MPIMUSER = 815
  integer(c_int), public, parameter :: CDI_KEY_REVSTATUS = 816
  integer(c_int), public, parameter :: CDI_KEY_REVNUMBER = 817
475
476
477
  integer(c_int), public, parameter :: CDI_KEY_GRIB2LOCALSECTIONNUMBER = 818
  integer(c_int), public, parameter :: CDI_KEY_SECTION2PADDINGLENGTH = 819
  integer(c_int), public, parameter :: CDI_KEY_SECTION2PADDING = 820
Thomas Jahns's avatar
Thomas Jahns committed
478
479
  public :: cdiDefKeyInt
  public :: cdiInqKeyInt
480
481
  public :: cdiDefKeyBytes
  public :: cdiInqKeyBytes
Uwe Schulzweida's avatar
Uwe Schulzweida committed
482
483
484
485
  public :: cdiDefKeyString
  public :: cdiInqKeyString
  public :: cdiInqKeyLen
  public :: cdiCopyKeys
Uwe Schulzweida's avatar
Uwe Schulzweida committed
486
487
488
489
490
491
492
493
494
  integer(c_int), public, parameter :: CDI_KEY_XNAME = 901
  integer(c_int), public, parameter :: CDI_KEY_XDIMNAME = 902
  integer(c_int), public, parameter :: CDI_KEY_XLONGNAME = 903
  integer(c_int), public, parameter :: CDI_KEY_XUNITS = 904
  integer(c_int), public, parameter :: CDI_KEY_YNAME = 911
  integer(c_int), public, parameter :: CDI_KEY_YDIMNAME = 912
  integer(c_int), public, parameter :: CDI_KEY_YLONGNAME = 913
  integer(c_int), public, parameter :: CDI_KEY_YUNITS = 914
  integer(c_int), public, parameter :: CDI_KEY_VDIMNAME = 920
Thomas Jahns's avatar
Thomas Jahns committed
495
496
  integer(c_int), public, parameter :: CDI_KEY_MAPPING = 921
  integer(c_int), public, parameter :: CDI_KEY_MAPNAME = 922
Uwe Schulzweida's avatar
Uwe Schulzweida committed
497
498
499
500
501
502
503
504
505
  integer(c_int), public, parameter :: CDI_KEY_NAME = 941
  integer(c_int), public, parameter :: CDI_KEY_DIMNAME = 942
  integer(c_int), public, parameter :: CDI_KEY_LONGNAME = 943
  integer(c_int), public, parameter :: CDI_KEY_UNITS = 944
  integer(c_int), public, parameter :: CDI_KEY_PSNAME = 950
  integer(c_int), public, parameter :: CDI_KEY_P0NAME = 951
  integer(c_int), public, parameter :: CDI_KEY_P0VALUE = 952
  public :: cdiGridDefKeyStr
  public :: cdiGridInqKeyStr
Thomas Jahns's avatar
Thomas Jahns committed
506
507
  public :: cdiZaxisDefKeyStr
  public :: cdiZaxisInqKeyStr
Uwe Schulzweida's avatar
Uwe Schulzweida committed
508
509
  public :: cdiZaxisDefKeyFlt
  public :: cdiZaxisInqKeyFlt
Thomas Jahns's avatar
Thomas Jahns committed
510
511
512
513
514
515
516
517
518
519
520
521
522
523
  public :: gridDefXname
  public :: gridInqXname
  public :: gridDefXlongname
  public :: gridInqXlongname
  public :: gridDefXunits
  public :: gridInqXunits
  public :: gridDefYname
  public :: gridInqYname
  public :: gridDefYlongname
  public :: gridInqYlongname
  public :: gridDefYunits
  public :: gridInqYunits
  public :: gridInqXstdname
  public :: gridInqYstdname
524
525
  public :: gridDefDatatype
  public :: gridInqDatatype
Thomas Jahns's avatar
Thomas Jahns committed
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
  public :: gridInqXval
  public :: gridInqYval
  public :: gridInqXinc
  public :: gridInqYinc
  public :: gridIsCircular
  public :: gridInqTrunc
  public :: gridDefTrunc
  public :: gridDefNumber
  public :: gridInqNumber
  public :: gridDefPosition
  public :: gridInqPosition
  public :: gridDefReference
  public :: gridInqReference
  public :: gridDefUUID
  public :: gridInqUUID
Uwe Schulzweida's avatar
Uwe Schulzweida committed
541
542
543
544
545
546
  public :: gridDefParamRLL
  public :: gridInqParamRLL
  public :: gridDefParamGME
  public :: gridInqParamGME
  public :: gridDefParamLCC
  public :: gridInqParamLCC
Uwe Schulzweida's avatar
Uwe Schulzweida committed
547
548
  public :: gridDefParamSTERE
  public :: gridInqParamSTERE
Thomas Jahns's avatar
Thomas Jahns committed
549
550
551
552
553
554
555
  public :: gridDefArea
  public :: gridInqArea
  public :: gridHasArea
  public :: gridDefNvertex
  public :: gridInqNvertex
  public :: gridDefXbounds
  public :: gridInqXbounds
556
  public :: gridInqXboundsPart
Thomas Jahns's avatar
Thomas Jahns committed
557
558
  public :: gridDefYbounds
  public :: gridInqYbounds
559
  public :: gridInqYboundsPart
Thomas Jahns's avatar
Thomas Jahns committed
560
561
562
563
564
  public :: gridDefRowlon
  public :: gridInqRowlon
  public :: gridChangeType
  public :: gridDefComplexPacking
  public :: gridInqComplexPacking
Thomas Jahns's avatar
Thomas Jahns committed
565
566
  public :: gridDefUvRelativeToGrid
  public :: gridInqUvRelativeToGrid
Thomas Jahns's avatar
Thomas Jahns committed
567
568
  public :: gridDefScanningMode
  public :: gridInqScanningMode
Thomas Jahns's avatar
Thomas Jahns committed
569
  public :: zaxisName
Thomas Jahns's avatar
Thomas Jahns committed
570
  public :: zaxisNamePtr
Thomas Jahns's avatar
Thomas Jahns committed
571
572
573
574
575
576
577
578
  public :: zaxisCreate
  public :: zaxisDestroy
  public :: zaxisInqType
  public :: zaxisInqSize
  public :: zaxisDuplicate
  public :: zaxisPrint
  public :: zaxisDefLevels
  public :: zaxisInqLevels
579
  public :: zaxisInqCLen
Thomas Jahns's avatar
Thomas Jahns committed
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
  public :: zaxisDefLevel
  public :: zaxisInqLevel
  public :: zaxisDefNlevRef
  public :: zaxisInqNlevRef
  public :: zaxisDefNumber
  public :: zaxisInqNumber
  public :: zaxisDefUUID
  public :: zaxisInqUUID
  public :: zaxisDefName
  public :: zaxisInqName
  public :: zaxisDefLongname
  public :: zaxisInqLongname
  public :: zaxisDefUnits
  public :: zaxisInqUnits
  public :: zaxisInqStdname
595
596
  public :: zaxisDefDatatype
  public :: zaxisInqDatatype
Thomas Jahns's avatar
Thomas Jahns committed
597
598
  public :: zaxisDefPositive
  public :: zaxisInqPositive
Uwe Schulzweida's avatar
Uwe Schulzweida committed
599
600
  public :: zaxisDefScalar
  public :: zaxisInqScalar
Thomas Jahns's avatar
Thomas Jahns committed
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
  public :: zaxisDefLtype
  public :: zaxisInqLtype
  public :: zaxisDefVct
  public :: zaxisInqVct
  public :: zaxisInqVctSize
  public :: zaxisInqVctPtr
  public :: zaxisDefLbounds
  public :: zaxisInqLbounds
  public :: zaxisInqLbound
  public :: zaxisDefUbounds
  public :: zaxisInqUbounds
  public :: zaxisInqUbound
  public :: zaxisDefWeights
  public :: zaxisInqWeights
  public :: zaxisChangeType
  public :: taxisCreate
  public :: taxisDestroy
  public :: taxisDuplicate
  public :: taxisCopyTimestep
  public :: taxisDefType
Uwe Schulzweida's avatar
Uwe Schulzweida committed
621
  public :: taxisInqType
Thomas Jahns's avatar
Thomas Jahns committed
622
623
624
625
626
627
628
629
630
631
632
633
634
  public :: taxisDefVdate
  public :: taxisDefVtime
  public :: taxisInqVdate
  public :: taxisInqVtime
  public :: taxisDefRdate
  public :: taxisDefRtime
  public :: taxisInqRdate
  public :: taxisInqRtime
  public :: taxisDefFdate
  public :: taxisDefFtime
  public :: taxisInqFdate
  public :: taxisInqFtime
  public :: taxisHasBounds
635
  public :: taxisWithBounds
Thomas Jahns's avatar
Thomas Jahns committed
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
  public :: taxisDeleteBounds
  public :: taxisDefVdateBounds
  public :: taxisDefVtimeBounds
  public :: taxisInqVdateBounds
  public :: taxisInqVtimeBounds
  public :: taxisDefCalendar
  public :: taxisInqCalendar
  public :: taxisDefTunit
  public :: taxisInqTunit
  public :: taxisDefForecastTunit
  public :: taxisInqForecastTunit
  public :: taxisDefForecastPeriod
  public :: taxisInqForecastPeriod
  public :: taxisDefNumavg
  public :: taxisInqNumavg
  public :: tunitNamePtr
  public :: institutDef
  public :: institutInq
  public :: institutInqNumber
  public :: institutInqCenter
  public :: institutInqSubcenter
  public :: institutInqNamePtr
  public :: institutInqLongnamePtr
  public :: modelDef
  public :: modelInq
  public :: modelInqInstitut
  public :: modelInqGribID
  public :: modelInqNamePtr
  public :: tableWrite
  public :: tableRead
  public :: tableDef
  public :: tableInqNamePtr
  public :: tableInq
  public :: tableInqNumber
  public :: tableInqNum
  public :: tableInqModel
Uwe Schulzweida's avatar
Uwe Schulzweida committed
672
  public :: tableInqEntry
Thomas Jahns's avatar
Thomas Jahns committed
673
674
675
676
677
678
679
680
681
682
  public :: streamDefHistory
  public :: streamInqHistorySize
  public :: streamInqHistoryString
  public :: subtypeCreate
  public :: subtypePrint
  public :: subtypeCompare
  public :: subtypeInqSize
  public :: subtypeInqActiveIndex
  public :: subtypeDefActiveIndex
  public :: subtypeInqTile
683
  public :: subtypeInqAttribute
Thomas Jahns's avatar
Thomas Jahns committed
684
685
  public :: vlistInqVarSubtype
  public :: gribapiLibraryVersion
Uwe Schulzweida's avatar
Uwe Schulzweida committed
686

687
688
689
690
691
692
693
694
695
696
697
698
699
  interface
    subroutine cdiReset() bind(c, name = 'cdiReset')
    end subroutine cdiReset

    subroutine cdiDebug(debug_dummy) bind(c, name = 'cdiDebug')
      import c_int
      integer(c_int), value :: debug_dummy
    end subroutine cdiDebug

    subroutine cdiPrintVersion() bind(c, name = 'cdiPrintVersion')
    end subroutine cdiPrintVersion

    function cdiHaveFiletype(filetype_dummy) bind(c, name = 'cdiHaveFiletype')&
Thomas Jahns's avatar
Thomas Jahns committed
700
    & result(f_result)
701
702
      import c_int
      integer(c_int), value :: filetype_dummy
Thomas Jahns's avatar
Thomas Jahns committed
703
      integer(c_int) :: f_result
704
705
706
707
708
709
710
    end function cdiHaveFiletype

    subroutine cdiDefMissval(missval_dummy) bind(c, name = 'cdiDefMissval')
      import c_double
      real(c_double), value :: missval_dummy
    end subroutine cdiDefMissval

Thomas Jahns's avatar
Thomas Jahns committed
711
    function cdiInqMissval() bind(c, name = 'cdiInqMissval') result(f_result)
712
      import c_double
Thomas Jahns's avatar
Thomas Jahns committed
713
      real(c_double) :: f_result
714
715
    end function cdiInqMissval

Uwe Schulzweida's avatar
Uwe Schulzweida committed
716
717
718
719
720
721
    function cdiInqGridMissval() bind(c, name = 'cdiInqGridMissval')&
    & result(f_result)
      import c_double
      real(c_double) :: f_result
    end function cdiInqGridMissval

Thomas Jahns's avatar
Thomas Jahns committed
722
    function namespaceNew() bind(c, name = 'namespaceNew') result(f_result)
723
      import c_int
Thomas Jahns's avatar
Thomas Jahns committed
724
      integer(c_int) :: f_result
725
726
727
728
729
730
731
732
    end function namespaceNew

    subroutine namespaceSetActive(namespaceID_dummy) bind(c, name =&
    & 'namespaceSetActive')
      import c_int
      integer(c_int), value :: namespaceID_dummy
    end subroutine namespaceSetActive

733
734
735
736
737
738
    function namespaceGetActive() bind(c, name = 'namespaceGetActive')&
    & result(f_result)
      import c_int
      integer(c_int) :: f_result
    end function namespaceGetActive

739
740
741
742
743
744
    subroutine namespaceDelete(namespaceID_dummy) bind(c, name =&
    & 'namespaceDelete')
      import c_int
      integer(c_int), value :: namespaceID_dummy
    end subroutine namespaceDelete

745
746
747
748
749
750
751
752
753
    subroutine cdiDecodeParam(param_dummy, pnum_dummy, pcat_dummy, pdis_dummy)&
    & bind(c, name = 'cdiDecodeParam')
      import c_int
      integer(c_int), value :: param_dummy
      integer(c_int), intent(inout) :: pnum_dummy
      integer(c_int), intent(inout) :: pcat_dummy
      integer(c_int), intent(inout) :: pdis_dummy
    end subroutine cdiDecodeParam

754
    function cdiEncodeParam(pnum_dummy, pcat_dummy, pdis_dummy) bind(c, name =&
Thomas Jahns's avatar
Thomas Jahns committed
755
    & 'cdiEncodeParam') result(f_result)
756
757
758
759
      import c_int
      integer(c_int), value :: pnum_dummy
      integer(c_int), value :: pcat_dummy
      integer(c_int), value :: pdis_dummy
Thomas Jahns's avatar
Thomas Jahns committed
760
      integer(c_int) :: f_result
761
762
    end function cdiEncodeParam

763
764
    subroutine cdiDecodeDate(date_dummy, year_dummy, month_dummy, day_dummy)&
    & bind(c, name = 'cdiDecodeDate')
765
766
      import c_int, c_int64_t
      integer(c_int64_t), value :: date_dummy
767
768
769
770
771
      integer(c_int), intent(inout) :: year_dummy
      integer(c_int), intent(inout) :: month_dummy
      integer(c_int), intent(inout) :: day_dummy
    end subroutine cdiDecodeDate

772
    function cdiEncodeDate(year_dummy, month_dummy, day_dummy) bind(c, name =&
Thomas Jahns's avatar
Thomas Jahns committed
773
    & 'cdiEncodeDate') result(f_result)
774
      import c_int, c_int64_t
775
776
777
      integer(c_int), value :: year_dummy
      integer(c_int), value :: month_dummy
      integer(c_int), value :: day_dummy
778
      integer(c_int64_t) :: f_result
779
780
    end function cdiEncodeDate

781
782
783
784
785
786
787
788
789
    subroutine cdiDecodeTime(time_dummy, hour_dummy, minute_dummy,&
    & second_dummy) bind(c, name = 'cdiDecodeTime')
      import c_int
      integer(c_int), value :: time_dummy
      integer(c_int), intent(inout) :: hour_dummy
      integer(c_int), intent(inout) :: minute_dummy
      integer(c_int), intent(inout) :: second_dummy
    end subroutine cdiDecodeTime

790
    function cdiEncodeTime(hour_dummy, minute_dummy, second_dummy) bind(c, name&
Thomas Jahns's avatar
Thomas Jahns committed
791
    & = 'cdiEncodeTime') result(f_result)
792
793
794
795
      import c_int
      integer(c_int), value :: hour_dummy
      integer(c_int), value :: minute_dummy
      integer(c_int), value :: second_dummy
Thomas Jahns's avatar
Thomas Jahns committed
796
      integer(c_int) :: f_result
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
    end function cdiEncodeTime

    subroutine streamClose(streamID_dummy) bind(c, name = 'streamClose')
      import c_int
      integer(c_int), value :: streamID_dummy
    end subroutine streamClose

    subroutine streamSync(streamID_dummy) bind(c, name = 'streamSync')
      import c_int
      integer(c_int), value :: streamID_dummy
    end subroutine streamSync

    subroutine streamDefVlist(streamID_dummy, vlistID_dummy) bind(c, name =&
    & 'streamDefVlist')
      import c_int
      integer(c_int), value :: streamID_dummy
      integer(c_int), value :: vlistID_dummy
    end subroutine streamDefVlist

    function streamInqVlist(streamID_dummy) bind(c, name = 'streamInqVlist')&
Thomas Jahns's avatar
Thomas Jahns committed
817
    & result(f_result)
818
819
      import c_int
      integer(c_int), value :: streamID_dummy
Thomas Jahns's avatar
Thomas Jahns committed
820
      integer(c_int) :: f_result
821
822
823
    end function streamInqVlist

    function streamInqFiletype(streamID_dummy) bind(c, name =&
Thomas Jahns's avatar
Thomas Jahns committed
824
    & 'streamInqFiletype') result(f_result)
825
826
      import c_int
      integer(c_int), value :: streamID_dummy
Thomas Jahns's avatar
Thomas Jahns committed
827
      integer(c_int) :: f_result
828
829
830
831
832
833
834
835
836
837
    end function streamInqFiletype

    subroutine streamDefByteorder(streamID_dummy, byteorder_dummy) bind(c, name&
    & = 'streamDefByteorder')
      import c_int
      integer(c_int), value :: streamID_dummy
      integer(c_int), value :: byteorder_dummy
    end subroutine streamDefByteorder

    function streamInqByteorder(streamID_dummy) bind(c, name =&
Thomas Jahns's avatar
Thomas Jahns committed
838
    & 'streamInqByteorder') result(f_result)
839
840
      import c_int
      integer(c_int), value :: streamID_dummy
Thomas Jahns's avatar
Thomas Jahns committed
841
      integer(c_int) :: f_result
842
843
844
845
846
847
848
849
850
851
    end function streamInqByteorder

    subroutine streamDefCompType(streamID_dummy, comptype_dummy) bind(c, name =&
    & 'streamDefCompType')
      import c_int
      integer(c_int), value :: streamID_dummy
      integer(c_int), value :: comptype_dummy
    end subroutine streamDefCompType

    function streamInqCompType(streamID_dummy) bind(c, name =&
Thomas Jahns's avatar
Thomas Jahns committed
852
    & 'streamInqCompType') result(f_result)
853
854
      import c_int
      integer(c_int), value :: streamID_dummy
Thomas Jahns's avatar
Thomas Jahns committed
855
      integer(c_int) :: f_result
856
857
858
859
860
861
862
863
864
865
    end function streamInqCompType

    subroutine streamDefCompLevel(streamID_dummy, complevel_dummy) bind(c, name&
    & = 'streamDefCompLevel')
      import c_int
      integer(c_int), value :: streamID_dummy
      integer(c_int), value :: complevel_dummy
    end subroutine streamDefCompLevel

    function streamInqCompLevel(streamID_dummy) bind(c, name =&
Thomas Jahns's avatar
Thomas Jahns committed
866
    & 'streamInqCompLevel') result(f_result)
867
868
      import c_int
      integer(c_int), value :: streamID_dummy
Thomas Jahns's avatar
Thomas Jahns committed
869
      integer(c_int) :: f_result
870
871
872
    end function streamInqCompLevel

    function streamDefTimestep(streamID_dummy, tsID_dummy) bind(c, name =&
Thomas Jahns's avatar
Thomas Jahns committed
873
    & 'streamDefTimestep') result(f_result)
874
875
876
      import c_int
      integer(c_int), value :: streamID_dummy
      integer(c_int), value :: tsID_dummy
Thomas Jahns's avatar
Thomas Jahns committed
877
      integer(c_int) :: f_result
878
879
880
    end function streamDefTimestep

    function streamInqTimestep(streamID_dummy, tsID_dummy) bind(c, name =&
Thomas Jahns's avatar
Thomas Jahns committed
881
    & 'streamInqTimestep') result(f_result)
882
883
884
      import c_int
      integer(c_int), value :: streamID_dummy
      integer(c_int), value :: tsID_dummy
Thomas Jahns's avatar
Thomas Jahns committed
885
      integer(c_int) :: f_result
886
887
888
    end function streamInqTimestep

    function streamInqCurTimestepID(streamID_dummy) bind(c, name =&
Thomas Jahns's avatar
Thomas Jahns committed
889
    & 'streamInqCurTimestepID') result(f_result)
890
891
      import c_int
      integer(c_int), value :: streamID_dummy
Thomas Jahns's avatar
Thomas Jahns committed
892
      integer(c_int) :: f_result
893
894
    end function streamInqCurTimestepID

Uwe Schulzweida's avatar
Uwe Schulzweida committed
895
896
897
898
899
900
901
    function streamNvals(streamID_dummy) bind(c, name = 'streamNvals')&
    & result(f_result)
      import c_int, c_size_t
      integer(c_int), value :: streamID_dummy
      integer(c_size_t) :: f_result
    end function streamNvals

902
    function streamInqNvars(streamID_dummy) bind(c, name = 'streamInqNvars')&
Thomas Jahns's avatar
Thomas Jahns committed
903
    & result(f_result)
904
905
      import c_int
      integer(c_int), value :: streamID_dummy
Thomas Jahns's avatar
Thomas Jahns committed
906
      integer(c_int) :: f_result
907
908
    end function streamInqNvars

909
    subroutine streamWriteVar(streamID_dummy, varID_dummy, data_dummy,&
910
    & nmiss_dummy) bind(c, name = 'streamWriteVar')
Uwe Schulzweida's avatar
Uwe Schulzweida committed
911
      import c_double, c_int, c_size_t
912
913
      integer(c_int), value :: streamID_dummy
      integer(c_int), value :: varID_dummy
914
      real(c_double), intent(in) :: data_dummy(*)
Uwe Schulzweida's avatar
Uwe Schulzweida committed
915
      integer(c_size_t), value :: nmiss_dummy
916
917
    end subroutine streamWriteVar

918
    subroutine streamWriteVarF(streamID_dummy, varID_dummy, data_dummy,&
919
    & nmiss_dummy) bind(c, name = 'streamWriteVarF')
Uwe Schulzweida's avatar
Uwe Schulzweida committed
920
      import c_float, c_int, c_size_t
921
922
      integer(c_int), value :: streamID_dummy
      integer(c_int), value :: varID_dummy
923
      real(c_float), intent(in) :: data_dummy(*)
Uwe Schulzweida's avatar
Uwe Schulzweida committed
924
      integer(c_size_t), value :: nmiss_dummy
925
926
    end subroutine streamWriteVarF

927
    subroutine streamReadVar(streamID_dummy, varID_dummy, data_dummy,&
928
    & nmiss_dummy) bind(c, name = 'streamReadVar')
Uwe Schulzweida's avatar
Uwe Schulzweida committed
929
      import c_double, c_int, c_size_t
930
931
      integer(c_int), value :: streamID_dummy
      integer(c_int), value :: varID_dummy
932
      real(c_double), intent(inout) :: data_dummy(*)
Uwe Schulzweida's avatar
Uwe Schulzweida committed
933
      integer(c_size_t), intent(inout) :: nmiss_dummy
934
935
    end subroutine streamReadVar

936
    subroutine streamReadVarF(streamID_dummy, varID_dummy, data_dummy,&
937
    & nmiss_dummy) bind(c, name = 'streamReadVarF')
Uwe Schulzweida's avatar
Uwe Schulzweida committed
938
      import c_float, c_int, c_size_t
939
940
      integer(c_int), value :: streamID_dummy
      integer(c_int), value :: varID_dummy
941
      real(c_float), intent(inout) :: data_dummy(*)
Uwe Schulzweida's avatar
Uwe Schulzweida committed
942
      integer(c_size_t), intent(inout) :: nmiss_dummy
943
944
    end subroutine streamReadVarF

945
    subroutine streamWriteVarSlice(streamID_dummy, varID_dummy, levelID_dummy,&
946
    & data_dummy, nmiss_dummy) bind(c, name = 'streamWriteVarSlice')
Uwe Schulzweida's avatar
Uwe Schulzweida committed
947
      import c_double, c_int, c_size_t
948
949
950
      integer(c_int), value :: streamID_dummy
      integer(c_int), value :: varID_dummy
      integer(c_int), value :: levelID_dummy
951
      real(c_double), intent(in) :: data_dummy(*)
Uwe Schulzweida's avatar
Uwe Schulzweida committed
952
      integer(c_size_t), value :: nmiss_dummy
953
954
955
    end subroutine streamWriteVarSlice

    subroutine streamWriteVarSliceF(streamID_dummy, varID_dummy, levelID_dummy,&
956
    & data_dummy, nmiss_dummy) bind(c, name = 'streamWriteVarSliceF')
Uwe Schulzweida's avatar
Uwe Schulzweida committed
957
      import c_float, c_int, c_size_t
958
959
960
      integer(c_int), value :: streamID_dummy
      integer(c_int), value :: varID_dummy
      integer(c_int), value :: levelID_dummy
961
      real(c_float), intent(in) :: data_dummy(*)
Uwe Schulzweida's avatar
Uwe Schulzweida committed
962
      integer(c_size_t), value :: nmiss_dummy
963
964
    end subroutine streamWriteVarSliceF

965
    subroutine streamReadVarSlice(streamID_dummy, varID_dummy, levelID_dummy,&
966
    & data_dummy, nmiss_dummy) bind(c, name = 'streamReadVarSlice')
Uwe Schulzweida's avatar
Uwe Schulzweida committed
967
      import c_double, c_int, c_size_t
968
969
970
      integer(c_int), value :: streamID_dummy
      integer(c_int), value :: varID_dummy
      integer(c_int), value :: levelID_dummy
971
      real(c_double), intent(inout) :: data_dummy(*)
Uwe Schulzweida's avatar
Uwe Schulzweida committed
972
      integer(c_size_t), intent(inout) :: nmiss_dummy
973
974
975
    end subroutine streamReadVarSlice

    subroutine streamReadVarSliceF(streamID_dummy, varID_dummy, levelID_dummy,&
976
    & data_dummy, nmiss_dummy) bind(c, name = 'streamReadVarSliceF')
Uwe Schulzweida's avatar
Uwe Schulzweida committed
977
      import c_float, c_int, c_size_t
978
979
980
      integer(c_int), value :: streamID_dummy
      integer(c_int), value :: varID_dummy
      integer(c_int), value :: levelID_dummy
981
      real(c_float), intent(inout) :: data_dummy(*)
Uwe Schulzweida's avatar
Uwe Schulzweida committed
982
      integer(c_size_t), intent(inout) :: nmiss_dummy
983
984
    end subroutine streamReadVarSliceF

985
    subroutine streamWriteVarChunk(streamID_dummy, varID_dummy, rect_dummy,&
986
    & data_dummy, nmiss_dummy) bind(c, name = 'streamWriteVarChunk')
Uwe Schulzweida's avatar
Uwe Schulzweida committed
987
      import c_double, c_int, c_size_t
988
989
990
      integer(c_int), value :: streamID_dummy
      integer(c_int), value :: varID_dummy
      integer(c_int), intent(in) :: rect_dummy(2, 3)
991
      real(c_double), intent(in) :: data_dummy(*)
Uwe Schulzweida's avatar
Uwe Schulzweida committed
992
      integer(c_size_t), value :: nmiss_dummy
993
994
995
996
997
998
999
1000
1001
1002
    end subroutine streamWriteVarChunk

    subroutine streamDefRecord(streamID_dummy, varID_dummy, levelID_dummy)&
    & bind(c, name = 'streamDefRecord')
      import c_int
      integer(c_int), value :: streamID_dummy
      integer(c_int), value :: varID_dummy
      integer(c_int), value :: levelID_dummy
    end subroutine streamDefRecord

1003
1004
1005
1006
1007
1008
1009
1010
    subroutine streamInqRecord(streamID_dummy, varID_dummy, levelID_dummy)&
    & bind(c, name = 'streamInqRecord')
      import c_int
      integer(c_int), value :: streamID_dummy
      integer(c_int), intent(inout) :: varID_dummy
      integer(c_int), intent(inout) :: levelID_dummy
    end subroutine streamInqRecord

1011
    subroutine streamWriteRecord(streamID_dummy, data_dummy, nmiss_dummy)&
1012
    & bind(c, name = 'streamWriteRecord')
Uwe Schulzweida's avatar
Uwe Schulzweida committed
1013
      import c_double, c_int, c_size_t
1014
      integer(c_int), value :: streamID_dummy
1015
      real(c_double), intent(in) :: data_dummy(*)
Uwe Schulzweida's avatar
Uwe Schulzweida committed
1016
      integer(c_size_t), value :: nmiss_dummy
1017
1018
    end subroutine streamWriteRecord

1019
    subroutine streamWriteRecordF(streamID_dummy, data_dummy, nmiss_dummy)&
1020
    & bind(c, name = 'streamWriteRecordF')
Uwe Schulzweida's avatar
Uwe Schulzweida committed
1021
      import c_float, c_int, c_size_t
1022
      integer(c_int), value :: streamID_dummy
1023
      real(c_float), intent(in) :: data_dummy(*)
Uwe Schulzweida's avatar
Uwe Schulzweida committed
1024
      integer(c_size_t), value :: nmiss_dummy
1025
1026
    end subroutine streamWriteRecordF

1027
    subroutine streamReadRecord(streamID_dummy, data_dummy, nmiss_dummy)&
1028
    & bind(c, name = 'streamReadRecord')
Uwe Schulzweida's avatar
Uwe Schulzweida committed
1029
      import c_double, c_int, c_size_t
1030
      integer(c_int), value :: streamID_dummy
1031
      real(c_double), intent(inout) :: data_dummy(*)
Uwe Schulzweida's avatar
Uwe Schulzweida committed
1032
      integer(c_size_t), intent(inout) :: nmiss_dummy
1033
1034
    end subroutine streamReadRecord

1035
1036
    subroutine streamReadRecordF(streamID_dummy, data_dummy, nmiss_dummy)&
    & bind(c, name = 'streamReadRecordF')
Uwe Schulzweida's avatar
Uwe Schulzweida committed
1037
      import c_float, c_int, c_size_t
1038
1039
      integer(c_int), value :: streamID_dummy
      real(c_float), intent(inout) :: data_dummy(*)
Uwe Schulzweida's avatar
Uwe Schulzweida committed
1040
      integer(c_size_t), intent(inout) :: nmiss_dummy
1041
1042
    end subroutine streamReadRecordF

1043
1044
1045
1046
1047
1048
1049
    subroutine streamCopyRecord(streamIDdest_dummy, streamIDsrc_dummy) bind(c,&
    & name = 'streamCopyRecord')
      import c_int
      integer(c_int), value :: streamIDdest_dummy
      integer(c_int), value :: streamIDsrc_dummy
    end subroutine streamCopyRecord

Thomas Jahns's avatar
Thomas Jahns committed
1050
    function vlistCreate() bind(c, name = 'vlistCreate') result(f_result)
1051
      import c_int
Thomas Jahns's avatar
Thomas Jahns committed
1052
      integer(c_int) :: f_result
1053
1054
1055
1056
1057
1058
1059
1060
    end function vlistCreate

    subroutine vlistDestroy(vlistID_dummy) bind(c, name = 'vlistDestroy')
      import c_int
      integer(c_int), value :: vlistID_dummy
    end subroutine vlistDestroy

    function vlistDuplicate(vlistID_dummy) bind(c, name = 'vlistDuplicate')&
Thomas Jahns's avatar
Thomas Jahns committed
1061
    & result(f_result)
1062
1063
      import c_int
      integer(c_int), value :: vlistID_dummy
Thomas Jahns's avatar
Thomas Jahns committed
1064
      integer(c_int) :: f_result
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
    end function vlistDuplicate

    subroutine vlistCopy(vlistID2_dummy, vlistID1_dummy) bind(c, name =&
    & 'vlistCopy')
      import c_int
      integer(c_int), value :: vlistID2_dummy
      integer(c_int), value :: vlistID1_dummy
    end subroutine vlistCopy

    subroutine vlistCopyFlag(vlistID2_dummy, vlistID1_dummy) bind(c, name =&
    & 'vlistCopyFlag')
      import c_int
      integer(c_int), value :: vlistID2_dummy
      integer(c_int), value :: vlistID1_dummy
    end subroutine vlistCopyFlag

    subroutine vlistClearFlag(vlistID_dummy) bind(c, name = 'vlistClearFlag')
      import c_int
      integer(c_int), value :: vlistID_dummy
    end subroutine vlistClearFlag

    subroutine vlistCat(vlistID2_dummy, vlistID1_dummy) bind(c, name =&
    & 'vlistCat')
      import c_int
      integer(c_int), value :: vlistID2_dummy
      integer(c_int), value :: vlistID1_dummy
    end subroutine vlistCat

    subroutine vlistMerge(vlistID2_dummy, vlistID1_dummy) bind(c, name =&
    & 'vlistMerge')
      import c_int
      integer(c_int), value :: vlistID2_dummy
      integer(c_int), value :: vlistID1_dummy
    end subroutine vlistMerge

    subroutine vlistPrint(vlistID_dummy) bind(c, name = 'vlistPrint')
      import c_int
      integer(c_int), value :: vlistID_dummy
    end subroutine vlistPrint

    function vlistNumber(vlistID_dummy) bind(c, name = 'vlistNumber')&
Thomas Jahns's avatar
Thomas Jahns committed
1106
    & result(f_result)
1107
1108
      import c_int
      integer(c_int), value :: vlistID_dummy
Thomas Jahns's avatar
Thomas Jahns committed
1109
      integer(c_int) :: f_result
1110
1111
1112
    end function vlistNumber

    function vlistNvars(vlistID_dummy) bind(c, name = 'vlistNvars')&
Thomas Jahns's avatar
Thomas Jahns committed
1113
    & result(f_result)
1114
1115
      import c_int
      integer(c_int), value :: vlistID_dummy
Thomas Jahns's avatar
Thomas Jahns committed
1116
      integer(c_int) :: f_result
1117
1118
1119
    end function vlistNvars

    function vlistNgrids(vlistID_dummy) bind(c, name = 'vlistNgrids')&
Thomas Jahns's avatar
Thomas Jahns committed
1120
    & result(f_result)
1121
1122
      import c_int
      integer(c_int), value :: vlistID_dummy
Thomas Jahns's avatar
Thomas Jahns committed
1123
      integer(c_int) :: f_result
1124
1125
1126
    end function vlistNgrids

    function vlistNzaxis(vlistID_dummy) bind(c, name = 'vlistNzaxis')&
Thomas Jahns's avatar
Thomas Jahns committed
1127
    & result(f_result)
1128
1129
      import c_int
      integer(c_int), value :: vlistID_dummy
Thomas Jahns's avatar
Thomas Jahns committed
1130
      integer(c_int) :: f_result
1131
1132
1133
    end function vlistNzaxis

    function vlistNsubtypes(vlistID_dummy) bind(c, name = 'vlistNsubtypes')&
Thomas Jahns's avatar
Thomas Jahns committed
1134
    & result(f_result)
1135
1136
      import c_int
      integer(c_int), value :: vlistID_dummy
Thomas Jahns's avatar
Thomas Jahns committed
1137
      integer(c_int) :: f_result
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
    end function vlistNsubtypes

    subroutine vlistDefNtsteps(vlistID_dummy, nts_dummy) bind(c, name =&
    & 'vlistDefNtsteps')
      import c_int
      integer(c_int), value :: vlistID_dummy
      integer(c_int), value :: nts_dummy
    end subroutine vlistDefNtsteps

    function vlistNtsteps(vlistID_dummy) bind(c, name = 'vlistNtsteps')&
Thomas Jahns's avatar
Thomas Jahns committed
1148
    & result(f_result)
1149
1150
      import c_int
      integer(c_int), value :: vlistID_dummy
Thomas Jahns's avatar
Thomas Jahns committed
1151
      integer(c_int) :: f_result
1152
1153
1154
    end function vlistNtsteps

    function vlistGridsizeMax(vlistID_dummy) bind(c, name = 'vlistGridsizeMax')&
Thomas Jahns's avatar
Thomas Jahns committed
1155
    & result(f_result)
Uwe Schulzweida's avatar
Uwe Schulzweida committed
1156
      import c_int, c_size_t
1157
      integer(c_int), value :: vlistID_dummy
Uwe Schulzweida's avatar
Uwe Schulzweida committed
1158
      integer(c_size_t) :: f_result