/[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.7 - (show annotations) (download)
Sat Dec 28 10:11:11 2002 UTC (21 years, 6 months ago) by dimitri
Branch: MAIN
CVS Tags: checkpoint48e_post, checkpoint48b_post, checkpoint48c_pre, checkpoint48d_pre, checkpoint47i_post, checkpoint48d_post, checkpoint47g_post, checkpoint48a_post, checkpoint47j_post, checkpoint48c_post, checkpoint47f_post, checkpoint48, checkpoint47h_post
Changes since 1.6: +2 -3 lines
checkpoint47f_post
Merging from release1_p10:
o modifications for using pkg/exf with pkg/seaice
  - pkg/seaice CPP options SEAICE_EXTERNAL_FORCING
    and SEAICE_EXTERNAL_FLUXES
  - pkg/exf CPP options EXF_READ_EVAP and
    EXF_NO_BULK_COMPUTATIONS
  - usage examples are Experiments 8 and 9 in
    verification/lab_sea/README
  - verification/lab_sea default experiment now uses
    pkg/gmredi, pkg/kpp, pkg/seaice, and pkg/exf

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

  ViewVC Help
Powered by ViewVC 1.1.22