1 | MODULE in_out_manager |
---|
2 | |
---|
3 | USE lib_print ! formated print library |
---|
4 | USE par_kind |
---|
5 | |
---|
6 | !!---------------------------------------------------------------------- |
---|
7 | !! namelist parameters |
---|
8 | !! ------------------------------------- |
---|
9 | ! namrun: parameters of the run |
---|
10 | CHARACTER (len=16) :: & |
---|
11 | cexper = "exp0" ! experiment name used for output filename |
---|
12 | |
---|
13 | LOGICAL :: & !!! * namelist namrun * |
---|
14 | ln_rstart = .FALSE. , & ! start from (F) rest or (T) a restart file |
---|
15 | ln_ctl = .FALSE. ! run control for debugging |
---|
16 | |
---|
17 | INTEGER :: & !!! * namelist namrun * |
---|
18 | no = 0 , & ! job number |
---|
19 | nrstdt = 0 , & ! control of the time step (0, 1 or 2) |
---|
20 | nit000 = 1 , & ! index of the first time step |
---|
21 | nitend = 10 , & ! index of the last time step |
---|
22 | ndate0 = 961115 , & ! initial calendar date aammjj |
---|
23 | nleapy = 0 , & ! Leap year calendar flag (0/1 or 30) |
---|
24 | ninist = 0 ! initial state output flag (0/1) |
---|
25 | !!---------------------------------------------------------------------- |
---|
26 | !! Run control |
---|
27 | !!---------------------------------------------------------------------- |
---|
28 | |
---|
29 | INTEGER :: & ! |
---|
30 | nstop = 0 , & ! e r r o r flag (=number of reason for a |
---|
31 | ! ! prematurely stop the run) |
---|
32 | nwarn = 0 ! w a r n i n g flag (=number of warning |
---|
33 | ! ! found during the run) |
---|
34 | |
---|
35 | |
---|
36 | CHARACTER (len=64) :: & |
---|
37 | cform_err="(/,' ===>>> : E R R O R', /,' ===========',/)" , & |
---|
38 | cform_war="(/,' ===>>> : W A R N I N G', /,' ===============',/)" |
---|
39 | !!---------------------------------------------------------------------- |
---|
40 | !! output monitoring |
---|
41 | !! ----------------------------------- |
---|
42 | |
---|
43 | LOGICAL :: & |
---|
44 | lwp , & ! boolean : true on the 1st processor only |
---|
45 | l_ctl ! = ln_ctl.AND.lwp (print control on the 1st proc) |
---|
46 | |
---|
47 | INTEGER :: & |
---|
48 | nstock = 10 , & ! restart file frequency |
---|
49 | nprint = 0 , & ! level of print (0 no print) |
---|
50 | nwrite = 10 ! restart file frequency |
---|
51 | !!---------------------------------------------------------------------- |
---|
52 | !! logical units |
---|
53 | !! ------------------------------ |
---|
54 | INTEGER :: & |
---|
55 | numstp = 1 , & ! logical unit for time step |
---|
56 | numout = 2 , & ! logical unit for output print |
---|
57 | numnam = 3 , & ! logical unit for namelist |
---|
58 | numnam_ice = 4 , & ! logical unit for ice namelist |
---|
59 | nummpp = 8 , & ! logical unit for mpp test print |
---|
60 | numevo_ice = 17 , & ! logical unit for ice variables (temp. evolution) |
---|
61 | numsol = 25 , & ! logical unit for solver statistics |
---|
62 | numwri = 40 , & ! logical unit for output write |
---|
63 | numisp = 41 , & ! logical unit for island statistics |
---|
64 | numwrs = 46 , & ! logical unit for output restart |
---|
65 | numtdt = 62 , & ! logical unit for data temperature |
---|
66 | numsdt = 63 , & ! logical unit for data salinity |
---|
67 | numwso = 71 , & ! logical unit for 2d output write |
---|
68 | numwvo = 72 , & ! logical unit for 3d output write |
---|
69 | numsst = 65 , & ! logical unit for surface temperature data |
---|
70 | numgap = 45 , & ! logical unit for differences diagnostic |
---|
71 | numbol = 67 , & ! logical unit for "bol" diagnostics |
---|
72 | numptr = 68 , & ! logical unit for Poleward TRansports |
---|
73 | numflo = 69 ! logical unit for drifting floats |
---|
74 | |
---|
75 | !! Contral/debugging |
---|
76 | !! ----------------- |
---|
77 | REAL(wp) :: & |
---|
78 | u_ctl, v_ctl, & ! sum of ua and va trend |
---|
79 | t_ctl, s_ctl ! sum of ta and sa trend |
---|
80 | |
---|
81 | END MODULE in_out_manager |
---|