/[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.39 - (hide annotations) (download)
Wed Feb 26 03:21:08 2003 UTC (21 years, 3 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint48i_post, checkpoint50, checkpoint48h_post, checkpoint49
Changes since 1.38: +1 -3 lines
minor cleaning.

1 jmc 1.39 C $Header: /u/gcmpack/MITgcm/model/src/config_summary.F,v 1.38 2003/01/24 18:26:53 jmc 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 heimbach 1.22 CALL WRITE_0D_R8( viscA4, INDEX_NONE,'viscAh =',
95 cnh 1.14 &' /* Lateral biharmonic viscosity ( m^4/s ) */')
96 heimbach 1.22 CALL WRITE_0D_L( no_slip_sides, INDEX_NONE,
97 adcroft 1.20 & 'no_slip_sides =', ' /* Viscous BCs: No-slip sides */')
98 cnh 1.16 IF ( viscAz .NE. UNSET_RL ) THEN
99 heimbach 1.22 CALL WRITE_0D_R8( viscAz, INDEX_NONE,'viscAz =',
100 cnh 1.16 & ' /* Vertical eddy viscosity ( m^2/s ) */')
101     ENDIF
102     IF ( viscAp .NE. UNSET_RL ) THEN
103 heimbach 1.22 CALL WRITE_0D_R8( viscAp, INDEX_NONE,'viscAp =',
104 cnh 1.16 & ' /* Vertical eddy viscosity ( Pa^2/s ) */')
105     ENDIF
106 heimbach 1.22 CALL WRITE_0D_R8( viscAr, INDEX_NONE,'viscAr =',
107 cnh 1.16 &' /* Vertical eddy viscosity ( units of r^2/s ) */')
108 heimbach 1.22 CALL WRITE_0D_R8( diffKhT, INDEX_NONE,'diffKhT =',
109 cnh 1.5 &' /* Laplacian diffusion of heat laterally ( m^2/s ) */')
110 heimbach 1.22 CALL WRITE_0D_R8( diffK4T, INDEX_NONE,'diffK4T =',
111 adcroft 1.20 &' /* Bihaarmonic diffusion of heat laterally ( m^4/s ) */')
112 heimbach 1.22 CALL WRITE_0D_R8( diffKzT, INDEX_NONE,'diffKzT =',
113 cnh 1.5 &' /* Laplacian diffusion of heat vertically ( m^2/s ) */')
114 heimbach 1.22 CALL WRITE_0D_R8( diffKrT, INDEX_NONE,'diffKrT =',
115 adcroft 1.20 &' /* Laplacian diffusion of heat vertically ( m^2/s ) */')
116 heimbach 1.22 CALL WRITE_0D_R8( diffKhS, INDEX_NONE,'diffKhS =',
117 cnh 1.5 &' /* Laplacian diffusion of salt laterally ( m^2/s ) */')
118 heimbach 1.22 CALL WRITE_0D_R8( diffK4S, INDEX_NONE,'diffK4S =',
119 adcroft 1.20 &' /* Bihaarmonic diffusion of salt laterally ( m^4/s ) */')
120 heimbach 1.22 CALL WRITE_0D_R8( diffKzS, INDEX_NONE,'diffKzS =',
121 cnh 1.5 &' /* Laplacian diffusion of salt vertically ( m^2/s ) */')
122 heimbach 1.22 CALL WRITE_0D_R8( diffKrS, INDEX_NONE,'diffKrS =',
123 adcroft 1.20 &' /* Laplacian diffusion of salt vertically ( m^2/s ) */')
124 jmc 1.37 WRITE(msgBuf,'(2A)') ' Equation of State : eosType = ', eosType
125     CALL PRINT_MESSAGE( msgBuf, standardMessageUnit,
126     & SQUEEZE_RIGHT , 1)
127 heimbach 1.22 CALL WRITE_0D_R8( tAlpha, INDEX_NONE,'tAlpha =',
128 cnh 1.6 &' /* Linear EOS thermal expansion coefficient ( 1/degree ) */')
129 heimbach 1.22 CALL WRITE_0D_R8( sBeta, INDEX_NONE,'sBeta =',
130 cnh 1.6 &' /* Linear EOS haline contraction coefficient ( 1/ppt ) */')
131 cnh 1.16 IF ( eosType .EQ. 'POLY3' ) THEN
132 cnh 1.17 WRITE(msgBuf,'(A)')
133     & '// Polynomial EQS parameters ( from POLY3.COEFFS ) '
134 cnh 1.16 DO K = 1, Nr
135     WRITE(msgBuf,'(I3,13F8.3)')
136     & K,eosRefT(K),eosRefS(K),eosSig0(K), (eosC(I,K),I=1,9)
137 cnh 1.17 CALL PRINT_MESSAGE( msgBuf, standardMessageUnit,
138     & SQUEEZE_RIGHT , 1)
139 cnh 1.16 ENDDO
140     ENDIF
141 jmc 1.37 IF ( buoyancyRelation .eq. 'ATMOSPHERIC' ) THEN
142     CALL WRITE_0D_R8( atm_Rd, INDEX_NONE, 'atm_Rd =',
143     & ' /* gas constant for dry air ( J/kg/K ) */')
144     CALL WRITE_0D_R8( atm_Cp, INDEX_NONE, 'atm_Cp =',
145     & ' /* specific heat (Cp) of dry air ( J/kg/K ) */')
146     CALL WRITE_0D_R8( atm_kappa, INDEX_NONE, 'atm_kappa =',
147     & ' /* kappa (=Rd/Cp ) of dry air */')
148     CALL WRITE_0D_R8( atm_Po, INDEX_NONE, 'atm_Po =',
149     & ' /* standard reference pressure ( Pa ) */')
150     CALL WRITE_0D_I( integr_GeoPot, INDEX_NONE, 'integr_GeoPot =',
151     & ' /* select how the geopotential is integrated */')
152     CALL WRITE_0D_I( selectFindRoSurf, INDEX_NONE,
153     & 'selectFindRoSurf=',
154     & ' /* select how Surf.Ref. pressure is defined */')
155     ENDIF
156 heimbach 1.22 CALL WRITE_0D_R8( rhonil, INDEX_NONE,'rhonil =',
157 cnh 1.6 &' /* Reference density ( kg/m^3 ) */')
158 heimbach 1.22 CALL WRITE_0D_R8( rhoConst, INDEX_NONE,'rhoConst =',
159 mlosch 1.35 &' /* Reference density ( kg/m^3 ) */')
160     CALL WRITE_0D_R8( rhoConstFresh, INDEX_NONE,'rhoConstFresh =',
161 adcroft 1.20 &' /* Reference density ( kg/m^3 ) */')
162 heimbach 1.22 CALL WRITE_0D_R8( gravity, INDEX_NONE,'gravity =',
163 cnh 1.6 &' /* Gravitational acceleration ( m/s^2 ) */')
164 jmc 1.29 CALL WRITE_0D_R8( gBaro, INDEX_NONE,'gBaro =',
165     &' /* Barotropic gravity ( m/s^2 ) */')
166 heimbach 1.22 CALL WRITE_0D_R8( f0, INDEX_NONE,'f0 =',
167 cnh 1.6 &' /* Reference coriolis parameter ( 1/s ) */')
168 heimbach 1.22 CALL WRITE_0D_R8( beta, INDEX_NONE,'beta =',
169 cnh 1.6 &' /* Beta ( 1/(m.s) ) */')
170 jmc 1.31
171 heimbach 1.22 CALL WRITE_0D_R8( freeSurfFac, INDEX_NONE,'freeSurfFac =',
172 jmc 1.27 &' /* Implicit free surface factor */')
173 heimbach 1.22 CALL WRITE_0D_L( implicitFreeSurface, INDEX_NONE,
174 cnh 1.8 & 'implicitFreeSurface =',
175     &' /* Implicit free surface on/off flag */')
176 heimbach 1.22 CALL WRITE_0D_L( rigidLid, INDEX_NONE,
177 cnh 1.8 & 'rigidLid =',
178     &' /* Rigid lid on/off flag */')
179 jmc 1.27 CALL WRITE_0D_R8( implicSurfPress, INDEX_NONE,
180     &'implicSurfPress =',
181     &' /* Surface Pressure implicit factor (0-1)*/')
182     CALL WRITE_0D_R8( implicDiv2Dflow, INDEX_NONE,
183     &'implicDiv2Dflow =',
184     &' /* Barot. Flow Div. implicit factor (0-1)*/')
185 jmc 1.31 CALL WRITE_0D_L( exactConserv, INDEX_NONE,
186     &'exactConserv =',
187     &' /* Exact Volume Conservation on/off flag*/')
188     CALL WRITE_0D_L( uniformLin_PhiSurf, INDEX_NONE,
189     &'uniformLin_PhiSurf =',
190     &' /* use uniform Bo_surf on/off flag*/')
191     CALL WRITE_0D_I( nonlinFreeSurf, INDEX_NONE,
192     &'nonlinFreeSurf =',
193     &' /* Non-linear Free Surf. options (-1,0,1,2,3)*/')
194     WRITE(msgBuf,'(2A)') ' -1,0= Off ; 1,2,3= On,',
195     & ' 2=+rescale gU,gV, 3=+update cg2d solv.'
196     CALL PRINT_MESSAGE( msgBuf, standardMessageUnit,
197     & SQUEEZE_RIGHT , 1)
198     CALL WRITE_0D_R8( hFacInf, INDEX_NONE,
199     &'hFacInf =',
200     &' /* lower threshold for hFac (nonlinFreeSurf only)*/')
201     CALL WRITE_0D_R8( hFacSup, INDEX_NONE,
202     &'hFacSup =',
203     &' /* upper threshold for hFac (nonlinFreeSurf only)*/')
204 jmc 1.38 CALL WRITE_0D_I( select_rStar, INDEX_NONE,
205     &'select_rStar =',
206     &' /* r* Coordinate options (not yet implemented)*/')
207 jmc 1.31 CALL WRITE_0D_L( useRealFreshWaterFlux, INDEX_NONE,
208     &'useRealFreshWaterFlux =',
209     &' /* Real Fresh Water Flux on/off flag*/')
210     IF (useRealFreshWaterFlux .AND. nonlinFreeSurf.GT.0) THEN
211     CALL WRITE_0D_R8( temp_EvPrRn, INDEX_NONE,
212     &'temp_EvPrRn =',
213     &' /* Temp. of Evap/Prec/R (UNSET=use local T)(oC)*/')
214     CALL WRITE_0D_R8( salt_EvPrRn, INDEX_NONE,
215     &'salt_EvPrRn =',
216     &' /* Salin. of Evap/Prec/R (UNSET=use local S)(ppt)*/')
217     CALL WRITE_0D_R8( trac_EvPrRn, INDEX_NONE,
218     &'trac_EvPrRn =',
219     &' /* Tracer in Evap/Prec/R (UNSET=use local Tr)*/')
220     ELSE
221     CALL WRITE_0D_R8( convertFW2Salt, INDEX_NONE,
222     &'convertFW2Salt =',
223     &' /* convert F.W. Flux to Salt Flux (-1=use local S)(ppt)*/')
224     ENDIF
225    
226 jmc 1.33 CALL WRITE_0D_L( multiDimAdvection, INDEX_NONE,
227     & 'multiDimAdvection =',
228     &' /* enable/disable Multi-Dim Advection */')
229 jmc 1.27 CALL WRITE_0D_L( staggerTimeStep, INDEX_NONE,
230     & 'staggerTimeStep =',
231     &' /* Stagger time stepping on/off flag */')
232 heimbach 1.22 CALL WRITE_0D_L( momStepping, INDEX_NONE,
233 cnh 1.10 & 'momStepping =', ' /* Momentum equation on/off flag */')
234 heimbach 1.22 CALL WRITE_0D_L( momAdvection, INDEX_NONE,
235 cnh 1.10 & 'momAdvection =', ' /* Momentum advection on/off flag */')
236 heimbach 1.22 CALL WRITE_0D_L( momViscosity, INDEX_NONE,
237 cnh 1.9 & 'momViscosity =', ' /* Momentum viscosity on/off flag */')
238 heimbach 1.22 CALL WRITE_0D_L( useCoriolis, INDEX_NONE,
239 cnh 1.9 & 'useCoriolis =', ' /* Coriolis on/off flag */')
240 heimbach 1.22 CALL WRITE_0D_L( momForcing, INDEX_NONE,
241 cnh 1.9 & 'momForcing =', ' /* Momentum forcing on/off flag */')
242 heimbach 1.22 CALL WRITE_0D_L( momPressureForcing, INDEX_NONE,
243 cnh 1.17 & 'momPressureForcing =',
244     & ' /* Momentum pressure term on/off flag */')
245 heimbach 1.22 CALL WRITE_0D_L( tempStepping, INDEX_NONE,
246 cnh 1.10 & 'tempStepping =', ' /* Temperature equation on/off flag */')
247 jmc 1.33 CALL WRITE_0D_L( tempAdvection, INDEX_NONE,
248     & 'tempAdvection=', ' /* Temperature advection on/off flag */')
249     CALL WRITE_0D_L( tempForcing, INDEX_NONE,
250     & 'tempForcing =', ' /* Temperature forcing on/off flag */')
251     CALL WRITE_0D_L( saltStepping, INDEX_NONE,
252     & 'saltStepping =', ' /* Salinity equation on/off flag */')
253     CALL WRITE_0D_L( saltAdvection, INDEX_NONE,
254     & 'saltAdvection=', ' /* Salinity advection on/off flag */')
255     CALL WRITE_0D_L( saltForcing, INDEX_NONE,
256     & 'saltForcing =', ' /* Salinity forcing on/off flag */')
257 heimbach 1.22 CALL WRITE_0D_L( nonHydrostatic, INDEX_NONE,
258 adcroft 1.20 & 'nonHydrostatic =', ' /* Non-Hydrostatic on/off flag */')
259 cnh 1.6 WRITE(msgBuf,'(A)') '// '
260 cnh 1.17 CALL PRINT_MESSAGE( msgBuf, standardMessageUnit,
261     & SQUEEZE_RIGHT , 1)
262 cnh 1.9
263 cnh 1.17 WRITE(msgBuf,'(A)')
264     & '// Elliptic solver(s) paramters ( PARM02 in namelist ) '
265     CALL PRINT_MESSAGE( msgBuf, standardMessageUnit,
266     & SQUEEZE_RIGHT , 1)
267 cnh 1.6 WRITE(msgBuf,'(A)') '// '
268 cnh 1.17 CALL PRINT_MESSAGE( msgBuf, standardMessageUnit,
269     & SQUEEZE_RIGHT , 1)
270 heimbach 1.22 CALL WRITE_0D_I( cg2dMaxIters, INDEX_NONE,'cg2dMaxIters =',
271 cnh 1.6 &' /* Upper limit on 2d con. grad iterations */')
272 heimbach 1.22 CALL WRITE_0D_I( cg2dChkResFreq, INDEX_NONE,'cg2dChkResFreq =',
273 cnh 1.6 &' /* 2d con. grad convergence test frequency */')
274 heimbach 1.22 CALL WRITE_0D_R8( cg2dTargetResidual, INDEX_NONE,
275 cnh 1.17 & 'cg2dTargetResidual =',
276 cnh 1.6 &' /* 2d con. grad target residual */')
277    
278     WRITE(msgBuf,'(A)') '// '
279 cnh 1.17 CALL PRINT_MESSAGE( msgBuf, standardMessageUnit,
280     & SQUEEZE_RIGHT , 1)
281     WRITE(msgBuf,'(A)')
282     & '// Time stepping paramters ( PARM03 in namelist ) '
283     CALL PRINT_MESSAGE( msgBuf, standardMessageUnit,
284     & SQUEEZE_RIGHT , 1)
285 cnh 1.6 WRITE(msgBuf,'(A)') '// '
286 cnh 1.17 CALL PRINT_MESSAGE( msgBuf, standardMessageUnit,
287     & SQUEEZE_RIGHT , 1)
288 heimbach 1.22 CALL WRITE_0D_I( nIter0, INDEX_NONE,'nIter0 =',
289 cnh 1.6 &' /* Base timestep number */')
290 heimbach 1.22 CALL WRITE_0D_I( nTimeSteps, INDEX_NONE,'nTimeSteps =',
291 cnh 1.6 &' /* Number of timesteps */')
292 heimbach 1.22 CALL WRITE_0D_R8( deltaTmom, INDEX_NONE,'deltatTmom =',
293 cnh 1.6 &' /* Momentum equation timestep ( s ) */')
294 jmc 1.37 CALL WRITE_0D_R8( deltaTfreesurf,INDEX_NONE,'deltaTfreesurf =',
295     &' /* FreeSurface equation timestep ( s ) */')
296 heimbach 1.22 CALL WRITE_0D_R8( deltaTtracer, INDEX_NONE,'deltatTtracer =',
297 cnh 1.6 &' /* Tracer equation timestep ( s ) */')
298 heimbach 1.22 CALL WRITE_0D_R8( deltaTClock, INDEX_NONE,'deltatTClock =',
299 cnh 1.12 &' /* Model clock timestep ( s ) */')
300 heimbach 1.22 CALL WRITE_0D_R8( cAdjFreq, INDEX_NONE,'cAdjFreq =',
301 cnh 1.9 &' /* Convective adjustment interval ( s ) */')
302 jmc 1.33 CALL WRITE_0D_L( forcing_In_AB,INDEX_NONE,'forcing_In_AB =',
303     &' /* put T,S Forcing in Adams-Bash. stepping */')
304 heimbach 1.22 CALL WRITE_0D_R8( abeps, INDEX_NONE,'abeps =',
305 cnh 1.6 &' /* Adams-Bashforth stabilizing weight */')
306 heimbach 1.22 CALL WRITE_0D_R8( tauCD, INDEX_NONE,'tauCD =',
307 cnh 1.6 &' /* CD coupling time-scale ( s ) */')
308 heimbach 1.22 CALL WRITE_0D_R8( rCD, INDEX_NONE,'rCD =',
309 cnh 1.6 &' /* Normalised CD coupling parameter */')
310 heimbach 1.22 CALL WRITE_0D_R8( startTime, INDEX_NONE,'startTime =',
311 cnh 1.6 &' /* Run start time ( s ). */')
312 heimbach 1.22 CALL WRITE_0D_R8( endTime, INDEX_NONE,'endTime =',
313 cnh 1.6 &' /* Integration ending time ( s ). */')
314 heimbach 1.22 CALL WRITE_0D_R8( pChkPtFreq, INDEX_NONE,'pChkPtFreq =',
315 cnh 1.7 &' /* Permanent restart/checkpoint file interval ( s ). */')
316 heimbach 1.22 CALL WRITE_0D_R8( chkPtFreq, INDEX_NONE,'chkPtFreq =',
317 cnh 1.7 &' /* Rolling restart/checkpoint file interval ( s ). */')
318 heimbach 1.22 CALL WRITE_0D_R8( dumpFreq, INDEX_NONE,'dumpFreq =',
319 cnh 1.6 &' /* Model state write out interval ( s ). */')
320    
321     WRITE(msgBuf,'(A)') '// '
322 cnh 1.17 CALL PRINT_MESSAGE( msgBuf, standardMessageUnit,
323     & SQUEEZE_RIGHT , 1)
324     WRITE(msgBuf,'(A)')
325     & '// Gridding paramters ( PARM04 in namelist ) '
326     CALL PRINT_MESSAGE( msgBuf, standardMessageUnit,
327     & SQUEEZE_RIGHT , 1)
328 cnh 1.6 WRITE(msgBuf,'(A)') '// '
329 cnh 1.17 CALL PRINT_MESSAGE( msgBuf, standardMessageUnit,
330     & SQUEEZE_RIGHT , 1)
331 heimbach 1.22 CALL WRITE_0D_L( usingCartesianGrid, INDEX_NONE,
332 cnh 1.17 & 'usingCartesianGrid =',
333 cnh 1.6 &' /* Cartesian coordinates flag ( True / False ) */')
334 heimbach 1.22 CALL WRITE_0D_L( usingSphericalPolarGrid, INDEX_NONE,
335 cnh 1.17 & 'usingSphericalPolarGrid =',
336 cnh 1.6 &' /* Spherical coordinates flag ( True / False ) */')
337 adcroft 1.24 CALL WRITE_0D_L( groundAtK1, INDEX_NONE, 'groundAtK1 =',
338     &' /* Lower Boundary (ground) at the surface(k=1) ( T / F ) */')
339 adcroft 1.36 CALL WRITE_0D_R8( Ro_SeaLevel, INDEX_NONE,'Ro_SeaLevel =',
340 adcroft 1.24 &' /* r(1) ( units of r ) */')
341 adcroft 1.36 CALL WRITE_0D_R8( rkFac, INDEX_NONE,'rkFac =',
342 adcroft 1.24 &' /* minus Vertical index orientation */')
343 adcroft 1.36 CALL WRITE_0D_R8( horiVertRatio, INDEX_NONE,'horiVertRatio =',
344 adcroft 1.24 &' /* Ratio on units : Horiz - Vertical */')
345 jmc 1.32 c CALL WRITE_1D_R8( delZ,Nr, INDEX_K,'delZ = ',
346     c &' /* W spacing ( m ) */')
347     c CALL WRITE_1D_R8( delP,Nr, INDEX_K,'delP = ',
348     c &' /* W spacing ( Pa ) */')
349     c CALL WRITE_1D_R8( delR,Nr, INDEX_K,'delR = ',
350     c &' /* W spacing ( units of r ) */')
351     CALL WRITE_1D_R8( drC,Nr, INDEX_K,'drC = ',
352     &' /* C spacing ( units of r ) */')
353     CALL WRITE_1D_R8( drF,Nr, INDEX_K,'drF = ',
354 cnh 1.15 &' /* W spacing ( units of r ) */')
355 cnh 1.6 CALL WRITE_1D_R8( delX, Nx, INDEX_I,'delX = ',
356     &' /* U spacing ( m - cartesian, degrees - spherical ) */')
357     CALL WRITE_1D_R8( delY, Ny, INDEX_J,'delY = ',
358     &' /* V spacing ( m - cartesian, degrees - spherical ) */')
359 heimbach 1.22 CALL WRITE_0D_R8( phiMin, INDEX_NONE,'phiMin = ',
360 cnh 1.17 &' /* South edge (ignored - cartesian, degrees - spherical ) */')
361 heimbach 1.22 CALL WRITE_0D_R8( thetaMin, INDEX_NONE,'thetaMin = ',
362 cnh 1.17 &' /* West edge ( ignored - cartesian, degrees - spherical ) */')
363 heimbach 1.22 CALL WRITE_0D_R8( rSphere, INDEX_NONE,'rSphere = ',
364 cnh 1.6 &' /* Radius ( ignored - cartesian, m - spherical ) */')
365     DO bi=1,nSx
366     DO I=1,sNx
367 heimbach 1.22 xcoord((bi-1)*sNx+I) = xC(I,1,bi,1)
368 cnh 1.6 ENDDO
369     ENDDO
370 cnh 1.11 CALL WRITE_1D_R8( xcoord, sNx*nSx, INDEX_I,'xcoord = ',
371 cnh 1.17 &' /* P-point X coord ( m - cartesian, degrees - spherical ) */')
372 cnh 1.6 DO bj=1,nSy
373     DO J=1,sNy
374 heimbach 1.22 ycoord((bj-1)*sNy+J) = yC(1,J,1,bj)
375 cnh 1.6 ENDDO
376     ENDDO
377 cnh 1.11 CALL WRITE_1D_R8( ycoord, sNy*nSy, INDEX_J,'ycoord = ',
378 cnh 1.17 &' /* P-point Y coord ( m - cartesian, degrees - spherical ) */')
379 cnh 1.13 DO K=1,Nr
380 heimbach 1.22 rcoord(K) = rC(K)
381 cnh 1.6 ENDDO
382 cnh 1.13 CALL WRITE_1D_R8( rcoord, Nr, INDEX_K,'rcoord = ',
383     &' /* P-point R coordinate ( units of r ) */')
384 jmc 1.32 DO K=1,Nr+1
385     rcoord(K) = rF(K)
386     ENDDO
387     CALL WRITE_1D_R8( rcoord, Nr+1, INDEX_K,'rF = ',
388     &' /* W-Interf. R coordinate ( units of r ) */')
389 cnh 1.6
390 cnh 1.26 C Grid along selected grid lines
391     coordLine = 1
392     tileLine = 1
393     CALL WRITE_XY_XLINE_RS( dxF, coordLine, tileLine,
394     I 'dxF','( m - cartesian, degrees - spherical )')
395     CALL WRITE_XY_YLINE_RS( dxF, coordLine, tileLine,
396     I 'dxF','( m - cartesian, degrees - spherical )')
397     CALL WRITE_XY_XLINE_RS( dyF, coordLine, tileLine,
398     I 'dyF','( m - cartesian, degrees - spherical )')
399     CALL WRITE_XY_YLINE_RS( dyF, coordLine, tileLine,
400     I 'dyF','( m - cartesian, degrees - spherical )')
401     CALL WRITE_XY_XLINE_RS( dxG, coordLine, tileLine,
402     I 'dxG','( m - cartesian, degrees - spherical )')
403     CALL WRITE_XY_YLINE_RS( dxG, coordLine, tileLine,
404     I 'dxG','( m - cartesian, degrees - spherical )')
405     CALL WRITE_XY_XLINE_RS( dyG, coordLine, tileLine,
406     I 'dyG','( m - cartesian, degrees - spherical )')
407     CALL WRITE_XY_YLINE_RS( dyG, coordLine, tileLine,
408     I 'dyG','( m - cartesian, degrees - spherical )')
409     CALL WRITE_XY_XLINE_RS( dxC, coordLine, tileLine,
410     I 'dxC','( m - cartesian, degrees - spherical )')
411     CALL WRITE_XY_YLINE_RS( dxC, coordLine, tileLine,
412     I 'dxC','( m - cartesian, degrees - spherical )')
413     CALL WRITE_XY_XLINE_RS( dyC, coordLine, tileLine,
414     I 'dyC','( m - cartesian, degrees - spherical )')
415     CALL WRITE_XY_YLINE_RS( dyC, coordLine, tileLine,
416     I 'dyC','( m - cartesian, degrees - spherical )')
417     CALL WRITE_XY_XLINE_RS( dxV, coordLine, tileLine,
418     I 'dxV','( m - cartesian, degrees - spherical )')
419     CALL WRITE_XY_YLINE_RS( dxV, coordLine, tileLine,
420     I 'dxV','( m - cartesian, degrees - spherical )')
421     CALL WRITE_XY_XLINE_RS( dyU, coordLine, tileLine,
422     I 'dyU','( m - cartesian, degrees - spherical )')
423     CALL WRITE_XY_YLINE_RS( dyU, coordLine, tileLine,
424     I 'dyU','( m - cartesian, degrees - spherical )')
425     CALL WRITE_XY_XLINE_RS( rA, coordLine, tileLine,
426     I 'rA','( m - cartesian, degrees - spherical )')
427     CALL WRITE_XY_YLINE_RS( rA, coordLine, tileLine,
428     I 'rA','( m - cartesian, degrees - spherical )')
429     CALL WRITE_XY_XLINE_RS( rAw, coordLine, tileLine,
430     I 'rAw','( m - cartesian, degrees - spherical )')
431     CALL WRITE_XY_YLINE_RS( rAw, coordLine, tileLine,
432     I 'rAw','( m - cartesian, degrees - spherical )')
433     CALL WRITE_XY_XLINE_RS( rAs, coordLine, tileLine,
434     I 'rAs','( m - cartesian, degrees - spherical )')
435     CALL WRITE_XY_YLINE_RS( rAs, coordLine, tileLine,
436     I 'rAs','( m - cartesian, degrees - spherical )')
437 cnh 1.5
438 cnh 1.1 WRITE(msgBuf,'(A)') ' '
439     CALL PRINT_MESSAGE( msgBuf, standardMessageUnit,
440     & SQUEEZE_RIGHT , 1)
441 cnh 1.5
442 cnh 1.1 _END_MASTER(myThid)
443     _BARRIER
444    
445    
446     RETURN
447     100 FORMAT(A,
448 cnh 1.4 &' '
449 cnh 1.1 &)
450     END
451    

  ViewVC Help
Powered by ViewVC 1.1.22