/[MITgcm]/MITgcm/model/src/config_summary.F
ViewVC logotype

Annotation of /MITgcm/model/src/config_summary.F

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


Revision 1.68 - (hide annotations) (download)
Thu Mar 10 02:39:55 2005 UTC (19 years, 3 months ago) by baylor
Branch: MAIN
Changes since 1.67: +10 -3 lines
Expanded Leith viscosity to follow Ahgridmin and Ahgridmax, and select between 'full' and approximate form.  Also added leith-like viscosity that is proportional to grad(div.v_h).

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

  ViewVC Help
Powered by ViewVC 1.1.22