/[MITgcm]/MITgcm/pkg/kpp/kpp_readparms.F
ViewVC logotype

Contents of /MITgcm/pkg/kpp/kpp_readparms.F

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.3 - (show annotations) (download)
Mon Nov 13 16:37:02 2000 UTC (23 years, 7 months ago) by heimbach
Branch: MAIN
CVS Tags: branch-atmos-merge-shapiro, branch-atmos-merge-freeze, branch-atmos-merge-start, checkpoint33, checkpoint32, checkpoint34, branch-atmos-merge-zonalfilt, branch-atmos-merge-phase5, branch-atmos-merge-phase4, branch-atmos-merge-phase7, branch-atmos-merge-phase6, branch-atmos-merge-phase1, branch-atmos-merge-phase3, branch-atmos-merge-phase2
Branch point for: branch-atmos-merge
Changes since 1.2: +0 -12 lines
Modified and fixed version. Tested with verification/natl_box.

1 #include "KPP_OPTIONS.h"
2
3 SUBROUTINE KPP_READPARMS( myThid )
4 C /==========================================================\
5 C | SUBROUTINE KPP_READPARMS |
6 C | o Routine to read in file data.kpp |
7 C \==========================================================/
8 IMPLICIT NONE
9
10 C === Global variables ===
11 #include "SIZE.h"
12 #include "EEPARAMS.h"
13 #include "PARAMS.h"
14 #include "GRID.h"
15 #include "KPP_PARAMS.h"
16
17 C === Routine arguments ===
18 C myThid - Number of this instance of KPP_INIT
19 INTEGER myThid
20
21 #ifdef ALLOW_KPP
22
23 C === Local variables ===
24 C msgBuf - Informational/error meesage buffer
25 C errIO - IO error flag
26 C iUnit - Work variable for IO unit number
27 C k - Loop counter
28
29 CHARACTER*(MAX_LEN_MBUF) msgBuf
30 INTEGER errIO, iUnit, k
31
32 C-- KPP vertical mixing parameters
33 NAMELIST /KPP_PARM01/
34 & kpp_freq, kpp_dumpFreq, kpp_taveFreq,
35 & KPPmixingMaps, KPPwriteState,
36 & minKPPhbl,
37 & epsln, phepsi, epsilon, vonk, dB_dz,
38 & conc1, conam, concm, conc2, zetam,
39 & conas, concs, conc3, zetas,
40 & Ricr, cekman, cmonob, concv, hbf,
41 & zmin, zmax, umin, umax,
42 & num_v_smooth_Ri, num_v_smooth_BV,
43 & num_z_smooth_sh, num_m_smooth_sh,
44 & Riinfty, BVSQcon, difm0, difs0, dift0,
45 & difmcon, difscon, diftcon,
46 & cstar
47
48 _BEGIN_MASTER(myThid)
49
50 WRITE(msgBuf,'(A)') ' KPP_INIT: opening data.kpp'
51 CALL PRINT_MESSAGE( msgBuf, standardMessageUnit,
52 & SQUEEZE_RIGHT , 1)
53
54
55 CALL OPEN_COPY_DATA_FILE(
56 I 'data.kpp', 'KPP_INIT',
57 O iUnit,
58 I myThid )
59
60 C-- set default KPP vertical mixing parameters
61 kpp_freq = deltaTClock
62 kpp_dumpFreq = 0.
63 kpp_taveFreq = 0.
64 KPPmixingMaps = .FALSE.
65 KPPwriteState = .FALSE.
66 minKPPhbl = delZ(1)*0.5
67
68 C-----------------------------------------------------------------------
69 C define some non-dimensional constants and
70 C the vertical mixing coefficients in m-k-s units
71 C-----------------------------------------------------------------------
72
73 epsln = 1.e-20
74 phepsi = 1.e-10
75 epsilon = 0.1
76 vonk = 0.40
77 dB_dz = 5.2e-5
78 conc1 = 5.0
79 conam = 1.257
80 concm = 8.380
81 conc2 = 16.0
82 zetam = -0.2
83 conas = -28.86
84 concs = 98.96
85 conc3 = 16.0
86 zetas = -1.0
87
88 c parameters for subroutine "bldepth"
89
90 Ricr = 0.30
91 cekman = 0.7
92 cmonob = 1.0
93 concv = 1.8
94 hbf = 1.0
95
96 c parameters and common arrays for subroutines
97 c "kmixinit" and "wscale"
98
99 zmin = -4.e-7
100 zmax = 0.0
101 umin = 0.0
102 umax = .04
103
104 c parameters for subroutine "Ri_iwmix"
105
106 num_v_smooth_Ri = 0
107 num_v_smooth_BV = 0
108 num_z_smooth_sh = 0
109 num_m_smooth_sh = 0
110 Riinfty = 0.7
111 BVSQcon = -0.2e-4
112
113 difm0 = 0.005
114 difs0 = 0.005
115 dift0 = 0.005
116
117 difmcon = 0.1
118 difscon = 0.1
119 diftcon = 0.1
120
121 C parameters for subroutine "blmix"
122
123 cstar = 10.
124
125 C-----------------------------------------------------------------------
126
127 C-- Read settings from model parameter file "data.kpp".
128 READ(UNIT=iUnit,NML=KPP_PARM01,IOSTAT=errIO)
129 IF ( errIO .LT. 0 ) THEN
130 WRITE(msgBuf,'(A)')
131 & 'S/R INI_PARMS'
132 CALL PRINT_ERROR( msgBuf , 1)
133 WRITE(msgBuf,'(A)')
134 & 'Error reading numerical model '
135 CALL PRINT_ERROR( msgBuf , 1)
136 WRITE(msgBuf,'(A)')
137 & 'parameter file "data.kpp"'
138 CALL PRINT_ERROR( msgBuf , 1)
139 WRITE(msgBuf,'(A)')
140 & 'Problem in namelist KPP_PARM01'
141 CALL PRINT_ERROR( msgBuf , 1)
142 C CALL MODELDATA_EXAMPLE( myThid )
143 STOP 'ABNORMAL END: S/R KPP_INIT'
144 ENDIF
145
146 CLOSE(iUnit)
147
148 WRITE(msgBuf,'(A)') ' KPP_INIT: finished reading data.kpp'
149 CALL PRINT_MESSAGE( msgBuf, standardMessageUnit,
150 & SQUEEZE_RIGHT , 1)
151
152 _END_MASTER(myThid)
153
154 C-- Everyone else must wait for the parameters to be loaded
155 _BARRIER
156
157 #endif /* ALLOW_KPP */
158
159 return
160 end

  ViewVC Help
Powered by ViewVC 1.1.22