-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathiom_def.f90
58 lines (58 loc) · 2.25 KB
/
iom_def.f90
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
MODULE iom_def
USE par_kind
IMPLICIT NONE
PRIVATE
INTEGER, PARAMETER, PUBLIC :: jpdom_data = 1
INTEGER, PARAMETER, PUBLIC :: jpdom_global = 2
INTEGER, PARAMETER, PUBLIC :: jpdom_local = 3
INTEGER, PARAMETER, PUBLIC :: jpdom_local_full = 4
INTEGER, PARAMETER, PUBLIC :: jpdom_local_noextra = 5
INTEGER, PARAMETER, PUBLIC :: jpdom_local_noovlap = 6
INTEGER, PARAMETER, PUBLIC :: jpdom_unknown = 7
INTEGER, PARAMETER, PUBLIC :: jpdom_autoglo = 8
INTEGER, PARAMETER, PUBLIC :: jpdom_autoglo_xy = 9
INTEGER, PARAMETER, PUBLIC :: jpdom_autodta = 10
INTEGER, PARAMETER, PUBLIC :: jpnf90 = 101
INTEGER, PARAMETER, PUBLIC :: jprstlib = jpnf90
INTEGER, PARAMETER, PUBLIC :: jp_r8 = 200
INTEGER, PARAMETER, PUBLIC :: jp_r4 = 201
INTEGER, PARAMETER, PUBLIC :: jp_i4 = 202
INTEGER, PARAMETER, PUBLIC :: jp_i2 = 203
INTEGER, PARAMETER, PUBLIC :: jp_i1 = 204
INTEGER, PARAMETER, PUBLIC :: jpmax_files = 100
INTEGER, PARAMETER, PUBLIC :: jpmax_vars = 1200
INTEGER, PARAMETER, PUBLIC :: jpmax_dims = 4
INTEGER, PARAMETER, PUBLIC :: jpmax_digits = 5
INTEGER, PUBLIC :: iom_open_init = 0
LOGICAL, PUBLIC :: lwxios
INTEGER, PUBLIC :: nxioso
LOGICAL, PUBLIC :: lrxios
LOGICAL, PUBLIC :: lxios_sini = .FALSE.
LOGICAL, PUBLIC :: lxios_set = .FALSE.
TYPE, PUBLIC :: file_descriptor
CHARACTER(LEN = 240) :: name
INTEGER :: nfid
INTEGER :: iolib
INTEGER :: nvars
INTEGER :: iduld
INTEGER :: lenuld
INTEGER :: irec
CHARACTER(LEN = 32) :: uldname
CHARACTER(LEN = 32), DIMENSION(jpmax_vars) :: cn_var
INTEGER, DIMENSION(jpmax_vars) :: nvid
INTEGER, DIMENSION(jpmax_vars) :: ndims
LOGICAL, DIMENSION(jpmax_vars) :: luld
INTEGER, DIMENSION(jpmax_dims, jpmax_vars) :: dimsz
REAL(KIND = wp), DIMENSION(jpmax_vars) :: scf
REAL(KIND = wp), DIMENSION(jpmax_vars) :: ofs
INTEGER :: nlev
END TYPE file_descriptor
TYPE(file_descriptor), DIMENSION(jpmax_files), PUBLIC :: iom_file
INTEGER, PARAMETER, PUBLIC :: max_rst_fields = 95
TYPE, PUBLIC :: RST_FIELD
CHARACTER(LEN = 30) :: vname = "NO_NAME"
CHARACTER(LEN = 30) :: grid = "NO_GRID"
LOGICAL :: active = .FALSE.
END TYPE RST_FIELD
TYPE(RST_FIELD), PUBLIC, SAVE :: rst_wfields(max_rst_fields), rst_rfields(max_rst_fields)
END MODULE iom_def