1 |
adcroft |
1.49 |
C $Header: /u/gcmpack/MITgcm/model/src/config_summary.F,v 1.48 2004/05/26 14:50:09 adcroft Exp $ |
2 |
cnh |
1.26 |
C $Name: $ |
3 |
cnh |
1.1 |
|
4 |
cnh |
1.18 |
#include "CPP_OPTIONS.h" |
5 |
cnh |
1.1 |
|
6 |
cnh |
1.30 |
CBOP |
7 |
|
|
C !ROUTINE: CONFIG_SUMMARY |
8 |
|
|
C !INTERFACE: |
9 |
cnh |
1.1 |
SUBROUTINE CONFIG_SUMMARY( myThid ) |
10 |
cnh |
1.30 |
C !DESCRIPTION: \bv |
11 |
|
|
C *=========================================================* |
12 |
|
|
C | SUBROUTINE CONFIG_SUMMARY |
13 |
|
|
C | o Summarize model parameter settings. |
14 |
|
|
C *=========================================================* |
15 |
|
|
C | This routine writes a tabulated summary of the kernel |
16 |
|
|
C | model configuration. Information describes all the |
17 |
|
|
C | parameter setting in force and the meaning and units of |
18 |
|
|
C | those parameters. Individal packages report a similar |
19 |
|
|
C | table for each package using the same format as employed |
20 |
|
|
C | here. If parameters are missing or incorrectly described |
21 |
|
|
C | or dimensioned please contact support@mitgcm.org |
22 |
|
|
C *=========================================================* |
23 |
|
|
C \ev |
24 |
|
|
|
25 |
|
|
C !USES: |
26 |
adcroft |
1.19 |
IMPLICIT NONE |
27 |
cnh |
1.1 |
C === Global variables === |
28 |
|
|
#include "SIZE.h" |
29 |
|
|
#include "EEPARAMS.h" |
30 |
|
|
#include "PARAMS.h" |
31 |
mlosch |
1.34 |
#include "EOS.h" |
32 |
cnh |
1.1 |
#include "GRID.h" |
33 |
|
|
#include "DYNVARS.h" |
34 |
|
|
|
35 |
cnh |
1.30 |
C !INPUT/OUTPUT PARAMETERS: |
36 |
cnh |
1.1 |
C == Routine arguments == |
37 |
|
|
C myThid - Number of this instance of CONFIG_SUMMARY |
38 |
|
|
INTEGER myThid |
39 |
|
|
CEndOfInterface |
40 |
|
|
|
41 |
cnh |
1.30 |
C !LOCAL VARIABLES: |
42 |
cnh |
1.1 |
C == Local variables == |
43 |
cnh |
1.30 |
C msgBuf :: Temp. for building output string. |
44 |
|
|
C I,J,K :: Loop counters. |
45 |
|
|
C bi,bj :: Tile loop counters. |
46 |
|
|
C xcoord :: Temps. for building lists of values for uni-dimensionally |
47 |
|
|
C ycoord :: varying parameters. |
48 |
|
|
C zcoord :: |
49 |
cnh |
1.1 |
CHARACTER*(MAX_LEN_MBUF) msgBuf |
50 |
cnh |
1.5 |
INTEGER I,J,K |
51 |
cnh |
1.6 |
INTEGER bi, bj |
52 |
heimbach |
1.22 |
_RL xcoord(Nx) |
53 |
|
|
_RL ycoord(Ny) |
54 |
jmc |
1.32 |
_RL rcoord(Nr+1) |
55 |
cnh |
1.26 |
INTEGER coordLine |
56 |
|
|
INTEGER tileLine |
57 |
cnh |
1.30 |
CEOP |
58 |
cnh |
1.5 |
|
59 |
cnh |
1.1 |
|
60 |
|
|
_BARRIER |
61 |
cnh |
1.5 |
_BEGIN_MASTER(myThid) |
62 |
cnh |
1.1 |
|
63 |
|
|
WRITE(msgBuf,'(A)') |
64 |
|
|
&'// =======================================================' |
65 |
cnh |
1.17 |
CALL PRINT_MESSAGE( msgBuf, standardMessageUnit, |
66 |
|
|
& SQUEEZE_RIGHT , 1) |
67 |
cnh |
1.1 |
WRITE(msgBuf,'(A)') '// Model configuration' |
68 |
cnh |
1.17 |
CALL PRINT_MESSAGE( msgBuf, standardMessageUnit, |
69 |
|
|
& SQUEEZE_RIGHT , 1) |
70 |
cnh |
1.1 |
WRITE(msgBuf,'(A)') |
71 |
|
|
&'// =======================================================' |
72 |
|
|
CALL PRINT_MESSAGE( msgBuf, standardMessageUnit, |
73 |
|
|
& SQUEEZE_RIGHT , 1) |
74 |
cnh |
1.5 |
|
75 |
cnh |
1.6 |
WRITE(msgBuf,'(A)') '// ' |
76 |
cnh |
1.17 |
CALL PRINT_MESSAGE( msgBuf, standardMessageUnit, |
77 |
|
|
& SQUEEZE_RIGHT , 1) |
78 |
|
|
WRITE(msgBuf,'(A)') |
79 |
|
|
& '// "Physical" paramters ( PARM01 in namelist ) ' |
80 |
|
|
CALL PRINT_MESSAGE( msgBuf, standardMessageUnit, |
81 |
|
|
& SQUEEZE_RIGHT , 1) |
82 |
cnh |
1.6 |
WRITE(msgBuf,'(A)') '// ' |
83 |
cnh |
1.17 |
CALL PRINT_MESSAGE( msgBuf, standardMessageUnit, |
84 |
|
|
& SQUEEZE_RIGHT , 1) |
85 |
jmc |
1.37 |
WRITE(msgBuf,'(A,A40)') 'buoyancyRelation = ', buoyancyRelation |
86 |
|
|
CALL PRINT_MESSAGE( msgBuf, standardMessageUnit, |
87 |
|
|
& SQUEEZE_RIGHT , 1) |
88 |
cnh |
1.13 |
CALL WRITE_1D_R8( tRef, Nr, INDEX_K,'tRef =', |
89 |
cnh |
1.5 |
&' /* Reference temperature profile ( oC or oK ) */') |
90 |
cnh |
1.13 |
CALL WRITE_1D_R8( sRef, Nr, INDEX_K,'sRef =', |
91 |
cnh |
1.6 |
&' /* Reference salinity profile ( ppt ) */') |
92 |
heimbach |
1.22 |
CALL WRITE_0D_R8( viscAh, INDEX_NONE,'viscAh =', |
93 |
cnh |
1.5 |
&' /* Lateral eddy viscosity ( m^2/s ) */') |
94 |
adcroft |
1.47 |
CALL WRITE_0D_R8( viscAhMax, INDEX_NONE,'viscAhMax =', |
95 |
|
|
&' /* Maximum lateral eddy viscosity ( m^2/s ) */') |
96 |
|
|
CALL WRITE_0D_R8( viscAhGrid, INDEX_NONE,'viscAhGrid =', |
97 |
|
|
&' /* Grid dependent lateral eddy viscosity ( non-dim. ) */') |
98 |
adcroft |
1.48 |
CALL WRITE_0D_R8( viscC2leith, INDEX_NONE,'viscC2leith =', |
99 |
|
|
&' /* Leith harmonic viscosity factor ( non-dom. ) */') |
100 |
jmc |
1.45 |
CALL WRITE_0D_R8( viscA4, INDEX_NONE,'viscA4 =', |
101 |
cnh |
1.14 |
&' /* Lateral biharmonic viscosity ( m^4/s ) */') |
102 |
adcroft |
1.47 |
CALL WRITE_0D_R8( viscA4Max, INDEX_NONE,'viscA4Max =', |
103 |
|
|
&' /* Maximum biharmonic viscosity ( m^2/s ) */') |
104 |
|
|
CALL WRITE_0D_R8( viscA4Grid, INDEX_NONE,'viscA4Grid =', |
105 |
|
|
&' /* Grid dependent biharmonic viscosity ( non-dim. ) */') |
106 |
adcroft |
1.48 |
CALL WRITE_0D_R8( viscC4leith, INDEX_NONE,'viscC4leith =', |
107 |
|
|
&' /* Leith biharmonic viscosity factor ( non-dom. ) */') |
108 |
heimbach |
1.22 |
CALL WRITE_0D_L( no_slip_sides, INDEX_NONE, |
109 |
adcroft |
1.20 |
& 'no_slip_sides =', ' /* Viscous BCs: No-slip sides */') |
110 |
jmc |
1.44 |
c IF ( viscAz .NE. UNSET_RL ) THEN |
111 |
|
|
c CALL WRITE_0D_R8( viscAz, INDEX_NONE,'viscAz =', |
112 |
|
|
c & ' /* Vertical eddy viscosity ( m^2/s ) */') |
113 |
|
|
c ENDIF |
114 |
|
|
c IF ( viscAp .NE. UNSET_RL ) THEN |
115 |
|
|
c CALL WRITE_0D_R8( viscAp, INDEX_NONE,'viscAp =', |
116 |
|
|
c & ' /* Vertical eddy viscosity ( Pa^2/s ) */') |
117 |
|
|
c ENDIF |
118 |
heimbach |
1.22 |
CALL WRITE_0D_R8( viscAr, INDEX_NONE,'viscAr =', |
119 |
cnh |
1.16 |
&' /* Vertical eddy viscosity ( units of r^2/s ) */') |
120 |
heimbach |
1.22 |
CALL WRITE_0D_R8( diffKhT, INDEX_NONE,'diffKhT =', |
121 |
cnh |
1.5 |
&' /* Laplacian diffusion of heat laterally ( m^2/s ) */') |
122 |
heimbach |
1.22 |
CALL WRITE_0D_R8( diffK4T, INDEX_NONE,'diffK4T =', |
123 |
adcroft |
1.20 |
&' /* Bihaarmonic diffusion of heat laterally ( m^4/s ) */') |
124 |
jmc |
1.44 |
c CALL WRITE_0D_R8( diffKzT, INDEX_NONE,'diffKzT =', |
125 |
|
|
c &' /* Laplacian diffusion of heat vertically ( m^2/s ) */') |
126 |
heimbach |
1.22 |
CALL WRITE_0D_R8( diffKrT, INDEX_NONE,'diffKrT =', |
127 |
adcroft |
1.20 |
&' /* Laplacian diffusion of heat vertically ( m^2/s ) */') |
128 |
heimbach |
1.22 |
CALL WRITE_0D_R8( diffKhS, INDEX_NONE,'diffKhS =', |
129 |
cnh |
1.5 |
&' /* Laplacian diffusion of salt laterally ( m^2/s ) */') |
130 |
heimbach |
1.22 |
CALL WRITE_0D_R8( diffK4S, INDEX_NONE,'diffK4S =', |
131 |
adcroft |
1.20 |
&' /* Bihaarmonic diffusion of salt laterally ( m^4/s ) */') |
132 |
jmc |
1.44 |
c CALL WRITE_0D_R8( diffKzS, INDEX_NONE,'diffKzS =', |
133 |
|
|
c &' /* Laplacian diffusion of salt vertically ( m^2/s ) */') |
134 |
heimbach |
1.22 |
CALL WRITE_0D_R8( diffKrS, INDEX_NONE,'diffKrS =', |
135 |
adcroft |
1.20 |
&' /* Laplacian diffusion of salt vertically ( m^2/s ) */') |
136 |
jmc |
1.37 |
WRITE(msgBuf,'(2A)') ' Equation of State : eosType = ', eosType |
137 |
|
|
CALL PRINT_MESSAGE( msgBuf, standardMessageUnit, |
138 |
|
|
& SQUEEZE_RIGHT , 1) |
139 |
heimbach |
1.22 |
CALL WRITE_0D_R8( tAlpha, INDEX_NONE,'tAlpha =', |
140 |
cnh |
1.6 |
&' /* Linear EOS thermal expansion coefficient ( 1/degree ) */') |
141 |
heimbach |
1.22 |
CALL WRITE_0D_R8( sBeta, INDEX_NONE,'sBeta =', |
142 |
cnh |
1.6 |
&' /* Linear EOS haline contraction coefficient ( 1/ppt ) */') |
143 |
cnh |
1.16 |
IF ( eosType .EQ. 'POLY3' ) THEN |
144 |
cnh |
1.17 |
WRITE(msgBuf,'(A)') |
145 |
|
|
& '// Polynomial EQS parameters ( from POLY3.COEFFS ) ' |
146 |
cnh |
1.16 |
DO K = 1, Nr |
147 |
|
|
WRITE(msgBuf,'(I3,13F8.3)') |
148 |
|
|
& K,eosRefT(K),eosRefS(K),eosSig0(K), (eosC(I,K),I=1,9) |
149 |
cnh |
1.17 |
CALL PRINT_MESSAGE( msgBuf, standardMessageUnit, |
150 |
|
|
& SQUEEZE_RIGHT , 1) |
151 |
cnh |
1.16 |
ENDDO |
152 |
|
|
ENDIF |
153 |
jmc |
1.37 |
IF ( buoyancyRelation .eq. 'ATMOSPHERIC' ) THEN |
154 |
|
|
CALL WRITE_0D_R8( atm_Rd, INDEX_NONE, 'atm_Rd =', |
155 |
|
|
& ' /* gas constant for dry air ( J/kg/K ) */') |
156 |
|
|
CALL WRITE_0D_R8( atm_Cp, INDEX_NONE, 'atm_Cp =', |
157 |
|
|
& ' /* specific heat (Cp) of dry air ( J/kg/K ) */') |
158 |
|
|
CALL WRITE_0D_R8( atm_kappa, INDEX_NONE, 'atm_kappa =', |
159 |
|
|
& ' /* kappa (=Rd/Cp ) of dry air */') |
160 |
jmc |
1.42 |
CALL WRITE_0D_R8( atm_Rq, INDEX_NONE, 'atm_Rq =', |
161 |
|
|
& ' /* water vap. specific vol. anomaly relative to dry air */') |
162 |
jmc |
1.37 |
CALL WRITE_0D_R8( atm_Po, INDEX_NONE, 'atm_Po =', |
163 |
|
|
& ' /* standard reference pressure ( Pa ) */') |
164 |
|
|
CALL WRITE_0D_I( integr_GeoPot, INDEX_NONE, 'integr_GeoPot =', |
165 |
|
|
& ' /* select how the geopotential is integrated */') |
166 |
|
|
CALL WRITE_0D_I( selectFindRoSurf, INDEX_NONE, |
167 |
|
|
& 'selectFindRoSurf=', |
168 |
|
|
& ' /* select how Surf.Ref. pressure is defined */') |
169 |
|
|
ENDIF |
170 |
heimbach |
1.22 |
CALL WRITE_0D_R8( rhonil, INDEX_NONE,'rhonil =', |
171 |
cnh |
1.6 |
&' /* Reference density ( kg/m^3 ) */') |
172 |
heimbach |
1.22 |
CALL WRITE_0D_R8( rhoConst, INDEX_NONE,'rhoConst =', |
173 |
mlosch |
1.35 |
&' /* Reference density ( kg/m^3 ) */') |
174 |
|
|
CALL WRITE_0D_R8( rhoConstFresh, INDEX_NONE,'rhoConstFresh =', |
175 |
adcroft |
1.20 |
&' /* Reference density ( kg/m^3 ) */') |
176 |
heimbach |
1.22 |
CALL WRITE_0D_R8( gravity, INDEX_NONE,'gravity =', |
177 |
cnh |
1.6 |
&' /* Gravitational acceleration ( m/s^2 ) */') |
178 |
jmc |
1.29 |
CALL WRITE_0D_R8( gBaro, INDEX_NONE,'gBaro =', |
179 |
|
|
&' /* Barotropic gravity ( m/s^2 ) */') |
180 |
jmc |
1.40 |
CALL WRITE_0D_R8(rotationPeriod,INDEX_NONE,'rotationPeriod =', |
181 |
|
|
&' /* Rotation Period ( s ) */') |
182 |
|
|
CALL WRITE_0D_R8( omega, INDEX_NONE,'omega =', |
183 |
|
|
&' /* Angular velocity ( rad/s ) */') |
184 |
heimbach |
1.22 |
CALL WRITE_0D_R8( f0, INDEX_NONE,'f0 =', |
185 |
cnh |
1.6 |
&' /* Reference coriolis parameter ( 1/s ) */') |
186 |
heimbach |
1.22 |
CALL WRITE_0D_R8( beta, INDEX_NONE,'beta =', |
187 |
cnh |
1.6 |
&' /* Beta ( 1/(m.s) ) */') |
188 |
jmc |
1.31 |
|
189 |
heimbach |
1.22 |
CALL WRITE_0D_R8( freeSurfFac, INDEX_NONE,'freeSurfFac =', |
190 |
jmc |
1.27 |
&' /* Implicit free surface factor */') |
191 |
heimbach |
1.22 |
CALL WRITE_0D_L( implicitFreeSurface, INDEX_NONE, |
192 |
cnh |
1.8 |
& 'implicitFreeSurface =', |
193 |
|
|
&' /* Implicit free surface on/off flag */') |
194 |
heimbach |
1.22 |
CALL WRITE_0D_L( rigidLid, INDEX_NONE, |
195 |
cnh |
1.8 |
& 'rigidLid =', |
196 |
|
|
&' /* Rigid lid on/off flag */') |
197 |
jmc |
1.27 |
CALL WRITE_0D_R8( implicSurfPress, INDEX_NONE, |
198 |
|
|
&'implicSurfPress =', |
199 |
|
|
&' /* Surface Pressure implicit factor (0-1)*/') |
200 |
|
|
CALL WRITE_0D_R8( implicDiv2Dflow, INDEX_NONE, |
201 |
|
|
&'implicDiv2Dflow =', |
202 |
|
|
&' /* Barot. Flow Div. implicit factor (0-1)*/') |
203 |
jmc |
1.31 |
CALL WRITE_0D_L( exactConserv, INDEX_NONE, |
204 |
|
|
&'exactConserv =', |
205 |
|
|
&' /* Exact Volume Conservation on/off flag*/') |
206 |
|
|
CALL WRITE_0D_L( uniformLin_PhiSurf, INDEX_NONE, |
207 |
|
|
&'uniformLin_PhiSurf =', |
208 |
|
|
&' /* use uniform Bo_surf on/off flag*/') |
209 |
|
|
CALL WRITE_0D_I( nonlinFreeSurf, INDEX_NONE, |
210 |
|
|
&'nonlinFreeSurf =', |
211 |
|
|
&' /* Non-linear Free Surf. options (-1,0,1,2,3)*/') |
212 |
|
|
WRITE(msgBuf,'(2A)') ' -1,0= Off ; 1,2,3= On,', |
213 |
|
|
& ' 2=+rescale gU,gV, 3=+update cg2d solv.' |
214 |
|
|
CALL PRINT_MESSAGE( msgBuf, standardMessageUnit, |
215 |
|
|
& SQUEEZE_RIGHT , 1) |
216 |
|
|
CALL WRITE_0D_R8( hFacInf, INDEX_NONE, |
217 |
|
|
&'hFacInf =', |
218 |
|
|
&' /* lower threshold for hFac (nonlinFreeSurf only)*/') |
219 |
|
|
CALL WRITE_0D_R8( hFacSup, INDEX_NONE, |
220 |
|
|
&'hFacSup =', |
221 |
|
|
&' /* upper threshold for hFac (nonlinFreeSurf only)*/') |
222 |
jmc |
1.38 |
CALL WRITE_0D_I( select_rStar, INDEX_NONE, |
223 |
|
|
&'select_rStar =', |
224 |
|
|
&' /* r* Coordinate options (not yet implemented)*/') |
225 |
jmc |
1.31 |
CALL WRITE_0D_L( useRealFreshWaterFlux, INDEX_NONE, |
226 |
|
|
&'useRealFreshWaterFlux =', |
227 |
|
|
&' /* Real Fresh Water Flux on/off flag*/') |
228 |
|
|
IF (useRealFreshWaterFlux .AND. nonlinFreeSurf.GT.0) THEN |
229 |
|
|
CALL WRITE_0D_R8( temp_EvPrRn, INDEX_NONE, |
230 |
|
|
&'temp_EvPrRn =', |
231 |
|
|
&' /* Temp. of Evap/Prec/R (UNSET=use local T)(oC)*/') |
232 |
|
|
CALL WRITE_0D_R8( salt_EvPrRn, INDEX_NONE, |
233 |
|
|
&'salt_EvPrRn =', |
234 |
|
|
&' /* Salin. of Evap/Prec/R (UNSET=use local S)(ppt)*/') |
235 |
|
|
CALL WRITE_0D_R8( trac_EvPrRn, INDEX_NONE, |
236 |
|
|
&'trac_EvPrRn =', |
237 |
|
|
&' /* Tracer in Evap/Prec/R (UNSET=use local Tr)*/') |
238 |
|
|
ELSE |
239 |
|
|
CALL WRITE_0D_R8( convertFW2Salt, INDEX_NONE, |
240 |
|
|
&'convertFW2Salt =', |
241 |
|
|
&' /* convert F.W. Flux to Salt Flux (-1=use local S)(ppt)*/') |
242 |
|
|
ENDIF |
243 |
|
|
|
244 |
jmc |
1.46 |
CALL WRITE_0D_L( nonHydrostatic, INDEX_NONE, |
245 |
|
|
& 'nonHydrostatic =', ' /* Non-Hydrostatic on/off flag */') |
246 |
heimbach |
1.22 |
CALL WRITE_0D_L( momStepping, INDEX_NONE, |
247 |
cnh |
1.10 |
& 'momStepping =', ' /* Momentum equation on/off flag */') |
248 |
heimbach |
1.22 |
CALL WRITE_0D_L( momAdvection, INDEX_NONE, |
249 |
cnh |
1.10 |
& 'momAdvection =', ' /* Momentum advection on/off flag */') |
250 |
heimbach |
1.22 |
CALL WRITE_0D_L( momViscosity, INDEX_NONE, |
251 |
cnh |
1.9 |
& 'momViscosity =', ' /* Momentum viscosity on/off flag */') |
252 |
jmc |
1.46 |
CALL WRITE_0D_L( momImplVertAdv, INDEX_NONE, 'momImplVertAdv =', |
253 |
|
|
& '/* Momentum implicit vert. advection on/off*/') |
254 |
|
|
CALL WRITE_0D_L( implicitViscosity, INDEX_NONE, |
255 |
|
|
& 'implicitViscosity =', ' /* Implicit viscosity on/off flag */') |
256 |
heimbach |
1.22 |
CALL WRITE_0D_L( useCoriolis, INDEX_NONE, |
257 |
cnh |
1.9 |
& 'useCoriolis =', ' /* Coriolis on/off flag */') |
258 |
jmc |
1.46 |
CALL WRITE_0D_L( useCDscheme, INDEX_NONE, |
259 |
|
|
& 'useCDscheme =', ' /* CD scheme on/off flag */') |
260 |
|
|
CALL WRITE_0D_L( useJamartWetPoints, INDEX_NONE, |
261 |
|
|
& 'useJamartWetPoints=',' /* Coriolis WetPoints method flag */') |
262 |
adcroft |
1.49 |
CALL WRITE_0D_L( SadournyCoriolis, INDEX_NONE, |
263 |
|
|
& 'SadournyCoriolis=',' /* Sadourny Coriolis discr. flag */') |
264 |
|
|
CALL WRITE_0D_L( upwindVorticity, INDEX_NONE, |
265 |
|
|
& 'upwindVorticity=',' /* Upwind bias vorticity flag */') |
266 |
|
|
CALL WRITE_0D_L( useAbsVorticity, INDEX_NONE, |
267 |
|
|
& 'useAbsVorticity=',' /* Work with f+zeta in Coriolis */') |
268 |
|
|
CALL WRITE_0D_L( highOrderVorticity, INDEX_NONE, |
269 |
|
|
& 'highOrderVorticity=',' /* High order interp. of vort. flag */') |
270 |
heimbach |
1.22 |
CALL WRITE_0D_L( momForcing, INDEX_NONE, |
271 |
cnh |
1.9 |
& 'momForcing =', ' /* Momentum forcing on/off flag */') |
272 |
heimbach |
1.22 |
CALL WRITE_0D_L( momPressureForcing, INDEX_NONE, |
273 |
cnh |
1.17 |
& 'momPressureForcing =', |
274 |
|
|
& ' /* Momentum pressure term on/off flag */') |
275 |
jmc |
1.46 |
CALL WRITE_0D_L( staggerTimeStep, INDEX_NONE, |
276 |
|
|
& 'staggerTimeStep =', |
277 |
|
|
&' /* Stagger time stepping on/off flag */') |
278 |
|
|
CALL WRITE_0D_L( multiDimAdvection, INDEX_NONE, |
279 |
|
|
& 'multiDimAdvection =', |
280 |
|
|
&' /* enable/disable Multi-Dim Advection */') |
281 |
|
|
CALL WRITE_0D_L( implicitDiffusion, INDEX_NONE, |
282 |
|
|
& 'implicitDiffusion =','/* Implicit Diffusion on/off flag */') |
283 |
heimbach |
1.22 |
CALL WRITE_0D_L( tempStepping, INDEX_NONE, |
284 |
cnh |
1.10 |
& 'tempStepping =', ' /* Temperature equation on/off flag */') |
285 |
jmc |
1.33 |
CALL WRITE_0D_L( tempAdvection, INDEX_NONE, |
286 |
|
|
& 'tempAdvection=', ' /* Temperature advection on/off flag */') |
287 |
jmc |
1.46 |
CALL WRITE_0D_L( tempImplVertAdv,INDEX_NONE,'tempImplVertAdv =', |
288 |
|
|
& '/* Temp. implicit vert. advection on/off */') |
289 |
jmc |
1.33 |
CALL WRITE_0D_L( tempForcing, INDEX_NONE, |
290 |
|
|
& 'tempForcing =', ' /* Temperature forcing on/off flag */') |
291 |
|
|
CALL WRITE_0D_L( saltStepping, INDEX_NONE, |
292 |
|
|
& 'saltStepping =', ' /* Salinity equation on/off flag */') |
293 |
|
|
CALL WRITE_0D_L( saltAdvection, INDEX_NONE, |
294 |
|
|
& 'saltAdvection=', ' /* Salinity advection on/off flag */') |
295 |
jmc |
1.46 |
CALL WRITE_0D_L( saltImplVertAdv,INDEX_NONE,'saltImplVertAdv =', |
296 |
|
|
& '/* Sali. implicit vert. advection on/off */') |
297 |
jmc |
1.33 |
CALL WRITE_0D_L( saltForcing, INDEX_NONE, |
298 |
|
|
& 'saltForcing =', ' /* Salinity forcing on/off flag */') |
299 |
cnh |
1.6 |
WRITE(msgBuf,'(A)') '// ' |
300 |
cnh |
1.17 |
CALL PRINT_MESSAGE( msgBuf, standardMessageUnit, |
301 |
|
|
& SQUEEZE_RIGHT , 1) |
302 |
cnh |
1.9 |
|
303 |
cnh |
1.17 |
WRITE(msgBuf,'(A)') |
304 |
|
|
& '// Elliptic solver(s) paramters ( PARM02 in namelist ) ' |
305 |
|
|
CALL PRINT_MESSAGE( msgBuf, standardMessageUnit, |
306 |
|
|
& SQUEEZE_RIGHT , 1) |
307 |
cnh |
1.6 |
WRITE(msgBuf,'(A)') '// ' |
308 |
cnh |
1.17 |
CALL PRINT_MESSAGE( msgBuf, standardMessageUnit, |
309 |
|
|
& SQUEEZE_RIGHT , 1) |
310 |
heimbach |
1.22 |
CALL WRITE_0D_I( cg2dMaxIters, INDEX_NONE,'cg2dMaxIters =', |
311 |
cnh |
1.6 |
&' /* Upper limit on 2d con. grad iterations */') |
312 |
heimbach |
1.22 |
CALL WRITE_0D_I( cg2dChkResFreq, INDEX_NONE,'cg2dChkResFreq =', |
313 |
cnh |
1.6 |
&' /* 2d con. grad convergence test frequency */') |
314 |
heimbach |
1.22 |
CALL WRITE_0D_R8( cg2dTargetResidual, INDEX_NONE, |
315 |
cnh |
1.17 |
& 'cg2dTargetResidual =', |
316 |
cnh |
1.6 |
&' /* 2d con. grad target residual */') |
317 |
|
|
|
318 |
|
|
WRITE(msgBuf,'(A)') '// ' |
319 |
cnh |
1.17 |
CALL PRINT_MESSAGE( msgBuf, standardMessageUnit, |
320 |
|
|
& SQUEEZE_RIGHT , 1) |
321 |
|
|
WRITE(msgBuf,'(A)') |
322 |
|
|
& '// Time stepping paramters ( PARM03 in namelist ) ' |
323 |
|
|
CALL PRINT_MESSAGE( msgBuf, standardMessageUnit, |
324 |
|
|
& SQUEEZE_RIGHT , 1) |
325 |
cnh |
1.6 |
WRITE(msgBuf,'(A)') '// ' |
326 |
cnh |
1.17 |
CALL PRINT_MESSAGE( msgBuf, standardMessageUnit, |
327 |
|
|
& SQUEEZE_RIGHT , 1) |
328 |
heimbach |
1.22 |
CALL WRITE_0D_I( nIter0, INDEX_NONE,'nIter0 =', |
329 |
cnh |
1.6 |
&' /* Base timestep number */') |
330 |
heimbach |
1.22 |
CALL WRITE_0D_I( nTimeSteps, INDEX_NONE,'nTimeSteps =', |
331 |
cnh |
1.6 |
&' /* Number of timesteps */') |
332 |
heimbach |
1.22 |
CALL WRITE_0D_R8( deltaTmom, INDEX_NONE,'deltatTmom =', |
333 |
cnh |
1.6 |
&' /* Momentum equation timestep ( s ) */') |
334 |
jmc |
1.37 |
CALL WRITE_0D_R8( deltaTfreesurf,INDEX_NONE,'deltaTfreesurf =', |
335 |
|
|
&' /* FreeSurface equation timestep ( s ) */') |
336 |
heimbach |
1.22 |
CALL WRITE_0D_R8( deltaTtracer, INDEX_NONE,'deltatTtracer =', |
337 |
cnh |
1.6 |
&' /* Tracer equation timestep ( s ) */') |
338 |
heimbach |
1.22 |
CALL WRITE_0D_R8( deltaTClock, INDEX_NONE,'deltatTClock =', |
339 |
cnh |
1.12 |
&' /* Model clock timestep ( s ) */') |
340 |
heimbach |
1.22 |
CALL WRITE_0D_R8( cAdjFreq, INDEX_NONE,'cAdjFreq =', |
341 |
cnh |
1.9 |
&' /* Convective adjustment interval ( s ) */') |
342 |
jmc |
1.33 |
CALL WRITE_0D_L( forcing_In_AB,INDEX_NONE,'forcing_In_AB =', |
343 |
|
|
&' /* put T,S Forcing in Adams-Bash. stepping */') |
344 |
heimbach |
1.22 |
CALL WRITE_0D_R8( abeps, INDEX_NONE,'abeps =', |
345 |
cnh |
1.6 |
&' /* Adams-Bashforth stabilizing weight */') |
346 |
jmc |
1.41 |
IF (useCDscheme) THEN |
347 |
heimbach |
1.22 |
CALL WRITE_0D_R8( tauCD, INDEX_NONE,'tauCD =', |
348 |
cnh |
1.6 |
&' /* CD coupling time-scale ( s ) */') |
349 |
heimbach |
1.22 |
CALL WRITE_0D_R8( rCD, INDEX_NONE,'rCD =', |
350 |
cnh |
1.6 |
&' /* Normalised CD coupling parameter */') |
351 |
jmc |
1.41 |
ENDIF |
352 |
heimbach |
1.22 |
CALL WRITE_0D_R8( startTime, INDEX_NONE,'startTime =', |
353 |
cnh |
1.6 |
&' /* Run start time ( s ). */') |
354 |
heimbach |
1.22 |
CALL WRITE_0D_R8( endTime, INDEX_NONE,'endTime =', |
355 |
cnh |
1.6 |
&' /* Integration ending time ( s ). */') |
356 |
heimbach |
1.22 |
CALL WRITE_0D_R8( pChkPtFreq, INDEX_NONE,'pChkPtFreq =', |
357 |
cnh |
1.7 |
&' /* Permanent restart/checkpoint file interval ( s ). */') |
358 |
heimbach |
1.22 |
CALL WRITE_0D_R8( chkPtFreq, INDEX_NONE,'chkPtFreq =', |
359 |
cnh |
1.7 |
&' /* Rolling restart/checkpoint file interval ( s ). */') |
360 |
heimbach |
1.22 |
CALL WRITE_0D_R8( dumpFreq, INDEX_NONE,'dumpFreq =', |
361 |
cnh |
1.6 |
&' /* Model state write out interval ( s ). */') |
362 |
jmc |
1.43 |
CALL WRITE_0D_R8( externForcingPeriod, INDEX_NONE, |
363 |
|
|
& 'externForcingPeriod =', ' /* forcing period (s) */') |
364 |
|
|
CALL WRITE_0D_R8( externForcingCycle, INDEX_NONE, |
365 |
|
|
& 'externForcingCycle =', ' /* period of the cyle (s). */') |
366 |
|
|
CALL WRITE_0D_R8( tauThetaClimRelax, INDEX_NONE, |
367 |
|
|
& 'tauThetaClimRelax =', ' /* relaxation time scale (s) */') |
368 |
|
|
CALL WRITE_0D_R8( tauSaltClimRelax, INDEX_NONE, |
369 |
|
|
& 'tauSaltClimRelax =', ' /* relaxation time scale (s) */') |
370 |
|
|
CALL WRITE_0D_R8( latBandClimRelax, INDEX_NONE, |
371 |
|
|
& 'latBandClimRelax =', ' /* max. Lat. where relaxation */') |
372 |
cnh |
1.6 |
WRITE(msgBuf,'(A)') '// ' |
373 |
cnh |
1.17 |
CALL PRINT_MESSAGE( msgBuf, standardMessageUnit, |
374 |
|
|
& SQUEEZE_RIGHT , 1) |
375 |
|
|
WRITE(msgBuf,'(A)') |
376 |
|
|
& '// Gridding paramters ( PARM04 in namelist ) ' |
377 |
|
|
CALL PRINT_MESSAGE( msgBuf, standardMessageUnit, |
378 |
|
|
& SQUEEZE_RIGHT , 1) |
379 |
cnh |
1.6 |
WRITE(msgBuf,'(A)') '// ' |
380 |
cnh |
1.17 |
CALL PRINT_MESSAGE( msgBuf, standardMessageUnit, |
381 |
|
|
& SQUEEZE_RIGHT , 1) |
382 |
heimbach |
1.22 |
CALL WRITE_0D_L( usingCartesianGrid, INDEX_NONE, |
383 |
cnh |
1.17 |
& 'usingCartesianGrid =', |
384 |
cnh |
1.6 |
&' /* Cartesian coordinates flag ( True / False ) */') |
385 |
heimbach |
1.22 |
CALL WRITE_0D_L( usingSphericalPolarGrid, INDEX_NONE, |
386 |
cnh |
1.17 |
& 'usingSphericalPolarGrid =', |
387 |
cnh |
1.6 |
&' /* Spherical coordinates flag ( True / False ) */') |
388 |
adcroft |
1.24 |
CALL WRITE_0D_L( groundAtK1, INDEX_NONE, 'groundAtK1 =', |
389 |
|
|
&' /* Lower Boundary (ground) at the surface(k=1) ( T / F ) */') |
390 |
adcroft |
1.36 |
CALL WRITE_0D_R8( Ro_SeaLevel, INDEX_NONE,'Ro_SeaLevel =', |
391 |
adcroft |
1.24 |
&' /* r(1) ( units of r ) */') |
392 |
adcroft |
1.36 |
CALL WRITE_0D_R8( rkFac, INDEX_NONE,'rkFac =', |
393 |
adcroft |
1.24 |
&' /* minus Vertical index orientation */') |
394 |
adcroft |
1.36 |
CALL WRITE_0D_R8( horiVertRatio, INDEX_NONE,'horiVertRatio =', |
395 |
adcroft |
1.24 |
&' /* Ratio on units : Horiz - Vertical */') |
396 |
jmc |
1.32 |
c CALL WRITE_1D_R8( delZ,Nr, INDEX_K,'delZ = ', |
397 |
|
|
c &' /* W spacing ( m ) */') |
398 |
|
|
c CALL WRITE_1D_R8( delP,Nr, INDEX_K,'delP = ', |
399 |
|
|
c &' /* W spacing ( Pa ) */') |
400 |
|
|
c CALL WRITE_1D_R8( delR,Nr, INDEX_K,'delR = ', |
401 |
|
|
c &' /* W spacing ( units of r ) */') |
402 |
|
|
CALL WRITE_1D_R8( drC,Nr, INDEX_K,'drC = ', |
403 |
|
|
&' /* C spacing ( units of r ) */') |
404 |
|
|
CALL WRITE_1D_R8( drF,Nr, INDEX_K,'drF = ', |
405 |
cnh |
1.15 |
&' /* W spacing ( units of r ) */') |
406 |
cnh |
1.6 |
CALL WRITE_1D_R8( delX, Nx, INDEX_I,'delX = ', |
407 |
|
|
&' /* U spacing ( m - cartesian, degrees - spherical ) */') |
408 |
|
|
CALL WRITE_1D_R8( delY, Ny, INDEX_J,'delY = ', |
409 |
|
|
&' /* V spacing ( m - cartesian, degrees - spherical ) */') |
410 |
heimbach |
1.22 |
CALL WRITE_0D_R8( phiMin, INDEX_NONE,'phiMin = ', |
411 |
cnh |
1.17 |
&' /* South edge (ignored - cartesian, degrees - spherical ) */') |
412 |
heimbach |
1.22 |
CALL WRITE_0D_R8( thetaMin, INDEX_NONE,'thetaMin = ', |
413 |
cnh |
1.17 |
&' /* West edge ( ignored - cartesian, degrees - spherical ) */') |
414 |
heimbach |
1.22 |
CALL WRITE_0D_R8( rSphere, INDEX_NONE,'rSphere = ', |
415 |
cnh |
1.6 |
&' /* Radius ( ignored - cartesian, m - spherical ) */') |
416 |
|
|
DO bi=1,nSx |
417 |
|
|
DO I=1,sNx |
418 |
heimbach |
1.22 |
xcoord((bi-1)*sNx+I) = xC(I,1,bi,1) |
419 |
cnh |
1.6 |
ENDDO |
420 |
|
|
ENDDO |
421 |
cnh |
1.11 |
CALL WRITE_1D_R8( xcoord, sNx*nSx, INDEX_I,'xcoord = ', |
422 |
cnh |
1.17 |
&' /* P-point X coord ( m - cartesian, degrees - spherical ) */') |
423 |
cnh |
1.6 |
DO bj=1,nSy |
424 |
|
|
DO J=1,sNy |
425 |
heimbach |
1.22 |
ycoord((bj-1)*sNy+J) = yC(1,J,1,bj) |
426 |
cnh |
1.6 |
ENDDO |
427 |
|
|
ENDDO |
428 |
cnh |
1.11 |
CALL WRITE_1D_R8( ycoord, sNy*nSy, INDEX_J,'ycoord = ', |
429 |
cnh |
1.17 |
&' /* P-point Y coord ( m - cartesian, degrees - spherical ) */') |
430 |
cnh |
1.13 |
DO K=1,Nr |
431 |
heimbach |
1.22 |
rcoord(K) = rC(K) |
432 |
cnh |
1.6 |
ENDDO |
433 |
cnh |
1.13 |
CALL WRITE_1D_R8( rcoord, Nr, INDEX_K,'rcoord = ', |
434 |
|
|
&' /* P-point R coordinate ( units of r ) */') |
435 |
jmc |
1.32 |
DO K=1,Nr+1 |
436 |
|
|
rcoord(K) = rF(K) |
437 |
|
|
ENDDO |
438 |
|
|
CALL WRITE_1D_R8( rcoord, Nr+1, INDEX_K,'rF = ', |
439 |
|
|
&' /* W-Interf. R coordinate ( units of r ) */') |
440 |
cnh |
1.6 |
|
441 |
cnh |
1.26 |
C Grid along selected grid lines |
442 |
|
|
coordLine = 1 |
443 |
|
|
tileLine = 1 |
444 |
|
|
CALL WRITE_XY_XLINE_RS( dxF, coordLine, tileLine, |
445 |
|
|
I 'dxF','( m - cartesian, degrees - spherical )') |
446 |
|
|
CALL WRITE_XY_YLINE_RS( dxF, coordLine, tileLine, |
447 |
|
|
I 'dxF','( m - cartesian, degrees - spherical )') |
448 |
|
|
CALL WRITE_XY_XLINE_RS( dyF, coordLine, tileLine, |
449 |
|
|
I 'dyF','( m - cartesian, degrees - spherical )') |
450 |
|
|
CALL WRITE_XY_YLINE_RS( dyF, coordLine, tileLine, |
451 |
|
|
I 'dyF','( m - cartesian, degrees - spherical )') |
452 |
|
|
CALL WRITE_XY_XLINE_RS( dxG, coordLine, tileLine, |
453 |
|
|
I 'dxG','( m - cartesian, degrees - spherical )') |
454 |
|
|
CALL WRITE_XY_YLINE_RS( dxG, coordLine, tileLine, |
455 |
|
|
I 'dxG','( m - cartesian, degrees - spherical )') |
456 |
|
|
CALL WRITE_XY_XLINE_RS( dyG, coordLine, tileLine, |
457 |
|
|
I 'dyG','( m - cartesian, degrees - spherical )') |
458 |
|
|
CALL WRITE_XY_YLINE_RS( dyG, coordLine, tileLine, |
459 |
|
|
I 'dyG','( m - cartesian, degrees - spherical )') |
460 |
|
|
CALL WRITE_XY_XLINE_RS( dxC, coordLine, tileLine, |
461 |
|
|
I 'dxC','( m - cartesian, degrees - spherical )') |
462 |
|
|
CALL WRITE_XY_YLINE_RS( dxC, coordLine, tileLine, |
463 |
|
|
I 'dxC','( m - cartesian, degrees - spherical )') |
464 |
|
|
CALL WRITE_XY_XLINE_RS( dyC, coordLine, tileLine, |
465 |
|
|
I 'dyC','( m - cartesian, degrees - spherical )') |
466 |
|
|
CALL WRITE_XY_YLINE_RS( dyC, coordLine, tileLine, |
467 |
|
|
I 'dyC','( m - cartesian, degrees - spherical )') |
468 |
|
|
CALL WRITE_XY_XLINE_RS( dxV, coordLine, tileLine, |
469 |
|
|
I 'dxV','( m - cartesian, degrees - spherical )') |
470 |
|
|
CALL WRITE_XY_YLINE_RS( dxV, coordLine, tileLine, |
471 |
|
|
I 'dxV','( m - cartesian, degrees - spherical )') |
472 |
|
|
CALL WRITE_XY_XLINE_RS( dyU, coordLine, tileLine, |
473 |
|
|
I 'dyU','( m - cartesian, degrees - spherical )') |
474 |
|
|
CALL WRITE_XY_YLINE_RS( dyU, coordLine, tileLine, |
475 |
|
|
I 'dyU','( m - cartesian, degrees - spherical )') |
476 |
|
|
CALL WRITE_XY_XLINE_RS( rA, coordLine, tileLine, |
477 |
|
|
I 'rA','( m - cartesian, degrees - spherical )') |
478 |
|
|
CALL WRITE_XY_YLINE_RS( rA, coordLine, tileLine, |
479 |
|
|
I 'rA','( m - cartesian, degrees - spherical )') |
480 |
|
|
CALL WRITE_XY_XLINE_RS( rAw, coordLine, tileLine, |
481 |
|
|
I 'rAw','( m - cartesian, degrees - spherical )') |
482 |
|
|
CALL WRITE_XY_YLINE_RS( rAw, coordLine, tileLine, |
483 |
|
|
I 'rAw','( m - cartesian, degrees - spherical )') |
484 |
|
|
CALL WRITE_XY_XLINE_RS( rAs, coordLine, tileLine, |
485 |
|
|
I 'rAs','( m - cartesian, degrees - spherical )') |
486 |
|
|
CALL WRITE_XY_YLINE_RS( rAs, coordLine, tileLine, |
487 |
|
|
I 'rAs','( m - cartesian, degrees - spherical )') |
488 |
cnh |
1.5 |
|
489 |
cnh |
1.1 |
WRITE(msgBuf,'(A)') ' ' |
490 |
|
|
CALL PRINT_MESSAGE( msgBuf, standardMessageUnit, |
491 |
|
|
& SQUEEZE_RIGHT , 1) |
492 |
cnh |
1.5 |
|
493 |
cnh |
1.1 |
_END_MASTER(myThid) |
494 |
|
|
_BARRIER |
495 |
|
|
|
496 |
|
|
|
497 |
|
|
RETURN |
498 |
|
|
100 FORMAT(A, |
499 |
cnh |
1.4 |
&' ' |
500 |
cnh |
1.1 |
&) |
501 |
|
|
END |
502 |
|
|
|