/[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.17 - (hide annotations) (download)
Wed Oct 28 03:11:36 1998 UTC (25 years, 7 months ago) by cnh
Branch: MAIN
CVS Tags: checkpoint17, checkpoint16
Changes since 1.16: +53 -29 lines
Changes to support
 - g77 compilation under Linux
 - LR(1) form of 64-bit is D or E for constants
 - Modified adjoint of exch with adjoint variables
   acuumulated.

1 cnh 1.17 C $Header: /u/gcmpack/models/MITgcmUV/model/src/config_summary.F,v 1.16 1998/09/05 17:52:13 cnh Exp $
2 cnh 1.1
3     #include "CPP_EEOPTIONS.h"
4    
5     CStartOfInterface
6     SUBROUTINE CONFIG_SUMMARY( myThid )
7     C /==========================================================\
8     C | SUBROUTINE CONFIG_SUMMARY |
9     C | o Summarize model prognostic variables. |
10     C |==========================================================|
11     C | This routine writes a tabulated summary of the model |
12     C | configuration. |
13     C | Note |
14     C | 1. Under multi-process parallelism the summary |
15     C | is only given for the per-process data. |
16     C | 2. Under multi-threading the summary is produced by |
17     C | the master thread. This threads reads data managed by|
18     C | other threads. |
19     C \==========================================================/
20    
21     C === Global variables ===
22     #include "SIZE.h"
23     #include "EEPARAMS.h"
24     #include "PARAMS.h"
25     #include "GRID.h"
26     #include "DYNVARS.h"
27    
28     C == Routine arguments ==
29     C myThid - Number of this instance of CONFIG_SUMMARY
30     INTEGER myThid
31     CEndOfInterface
32    
33     C == Local variables ==
34     CHARACTER*(MAX_LEN_MBUF) msgBuf
35 cnh 1.5 INTEGER I,J,K
36 cnh 1.6 INTEGER bi, bj
37     REAL xcoord(Nx)
38     REAL ycoord(Ny)
39 cnh 1.13 REAL rcoord(Nr)
40 cnh 1.5
41 cnh 1.1
42     _BARRIER
43 cnh 1.5 _BEGIN_MASTER(myThid)
44 cnh 1.1
45     WRITE(msgBuf,'(A)')
46     &'// ======================================================='
47 cnh 1.17 CALL PRINT_MESSAGE( msgBuf, standardMessageUnit,
48     & SQUEEZE_RIGHT , 1)
49 cnh 1.1 WRITE(msgBuf,'(A)') '// Model configuration'
50 cnh 1.17 CALL PRINT_MESSAGE( msgBuf, standardMessageUnit,
51     & SQUEEZE_RIGHT , 1)
52 cnh 1.1 WRITE(msgBuf,'(A)')
53     &'// ======================================================='
54     CALL PRINT_MESSAGE( msgBuf, standardMessageUnit,
55     & SQUEEZE_RIGHT , 1)
56 cnh 1.5
57 cnh 1.6 WRITE(msgBuf,'(A)') '// '
58 cnh 1.17 CALL PRINT_MESSAGE( msgBuf, standardMessageUnit,
59     & SQUEEZE_RIGHT , 1)
60     WRITE(msgBuf,'(A)')
61     & '// "Physical" paramters ( PARM01 in namelist ) '
62     CALL PRINT_MESSAGE( msgBuf, standardMessageUnit,
63     & SQUEEZE_RIGHT , 1)
64 cnh 1.6 WRITE(msgBuf,'(A)') '// '
65 cnh 1.17 CALL PRINT_MESSAGE( msgBuf, standardMessageUnit,
66     & SQUEEZE_RIGHT , 1)
67 cnh 1.13 CALL WRITE_1D_R8( tRef, Nr, INDEX_K,'tRef =',
68 cnh 1.5 &' /* Reference temperature profile ( oC or oK ) */')
69 cnh 1.13 CALL WRITE_1D_R8( sRef, Nr, INDEX_K,'sRef =',
70 cnh 1.6 &' /* Reference salinity profile ( ppt ) */')
71 cnh 1.5 CALL WRITE_1D_R8( viscAh, 1, INDEX_NONE,'viscAh =',
72     &' /* Lateral eddy viscosity ( m^2/s ) */')
73 cnh 1.14 CALL WRITE_1D_R8( viscA4, 1, INDEX_NONE,'viscAh =',
74     &' /* Lateral biharmonic viscosity ( m^4/s ) */')
75 cnh 1.16 IF ( viscAz .NE. UNSET_RL ) THEN
76     CALL WRITE_1D_R8( viscAz, 1, INDEX_NONE,'viscAz =',
77     & ' /* Vertical eddy viscosity ( m^2/s ) */')
78     ENDIF
79     IF ( viscAp .NE. UNSET_RL ) THEN
80     CALL WRITE_1D_R8( viscAp, 1, INDEX_NONE,'viscAp =',
81     & ' /* Vertical eddy viscosity ( Pa^2/s ) */')
82     ENDIF
83     CALL WRITE_1D_R8( viscAr, 1, INDEX_NONE,'viscAr =',
84     &' /* Vertical eddy viscosity ( units of r^2/s ) */')
85 cnh 1.5 CALL WRITE_1D_R8( diffKhT, 1, INDEX_NONE,'diffKhT =',
86     &' /* Laplacian diffusion of heat laterally ( m^2/s ) */')
87     CALL WRITE_1D_R8( diffKzT, 1, INDEX_NONE,'diffKzT =',
88     &' /* Laplacian diffusion of heat vertically ( m^2/s ) */')
89     CALL WRITE_1D_R8( diffK4T, 1, INDEX_NONE,'diffK4T =',
90     &' /* Bihaarmonic diffusion of heat laterally ( m^4/s ) */')
91     CALL WRITE_1D_R8( diffKhS, 1, INDEX_NONE,'diffKhS =',
92     &' /* Laplacian diffusion of salt laterally ( m^2/s ) */')
93     CALL WRITE_1D_R8( diffKzS, 1, INDEX_NONE,'diffKzS =',
94     &' /* Laplacian diffusion of salt vertically ( m^2/s ) */')
95     CALL WRITE_1D_R8( diffK4S, 1, INDEX_NONE,'diffK4S =',
96     &' /* Bihaarmonic diffusion of salt laterally ( m^4/s ) */')
97 cnh 1.6 CALL WRITE_1D_R8( tAlpha,1, INDEX_NONE,'tAlpha =',
98     &' /* Linear EOS thermal expansion coefficient ( 1/degree ) */')
99     CALL WRITE_1D_R8( sBeta, 1, INDEX_NONE,'sBeta =',
100     &' /* Linear EOS haline contraction coefficient ( 1/ppt ) */')
101 cnh 1.16 IF ( eosType .EQ. 'POLY3' ) THEN
102 cnh 1.17 WRITE(msgBuf,'(A)')
103     & '// Polynomial EQS parameters ( from POLY3.COEFFS ) '
104 cnh 1.16 DO K = 1, Nr
105     WRITE(msgBuf,'(I3,13F8.3)')
106     & K,eosRefT(K),eosRefS(K),eosSig0(K), (eosC(I,K),I=1,9)
107 cnh 1.17 CALL PRINT_MESSAGE( msgBuf, standardMessageUnit,
108     & SQUEEZE_RIGHT , 1)
109 cnh 1.16 ENDDO
110     ENDIF
111 cnh 1.6 CALL WRITE_1D_R8( rhonil,1, INDEX_NONE,'rhonil =',
112     &' /* Reference density ( kg/m^3 ) */')
113     CALL WRITE_1D_R8( gravity,1, INDEX_NONE,'gravity =',
114     &' /* Gravitational acceleration ( m/s^2 ) */')
115 cnh 1.8 CALL WRITE_1D_R8( gBaro,1, INDEX_NONE,'gBaro =',
116     &' /* Barotropic gravity ( m/s^2 ) */')
117 cnh 1.6 CALL WRITE_1D_R8( f0,1, INDEX_NONE,'f0 =',
118     &' /* Reference coriolis parameter ( 1/s ) */')
119     CALL WRITE_1D_R8( beta,1, INDEX_NONE,'beta =',
120     &' /* Beta ( 1/(m.s) ) */')
121 cnh 1.8 CALL WRITE_1D_R8( freeSurfFac,1, INDEX_NONE,'freeSurfFac =',
122     &' /* Implcit free surface factor */')
123     CALL WRITE_1D_L( implicitFreeSurface,1, INDEX_NONE,
124     & 'implicitFreeSurface =',
125     &' /* Implicit free surface on/off flag */')
126     CALL WRITE_1D_L( rigidLid,1, INDEX_NONE,
127     & 'rigidLid =',
128     &' /* Rigid lid on/off flag */')
129 cnh 1.10 CALL WRITE_1D_L( momStepping,1, INDEX_NONE,
130     & 'momStepping =', ' /* Momentum equation on/off flag */')
131 cnh 1.9 CALL WRITE_1D_L( momAdvection,1, INDEX_NONE,
132 cnh 1.10 & 'momAdvection =', ' /* Momentum advection on/off flag */')
133 cnh 1.9 CALL WRITE_1D_L( momViscosity,1, INDEX_NONE,
134     & 'momViscosity =', ' /* Momentum viscosity on/off flag */')
135     CALL WRITE_1D_L( useCoriolis,1, INDEX_NONE,
136     & 'useCoriolis =', ' /* Coriolis on/off flag */')
137     CALL WRITE_1D_L( momForcing,1, INDEX_NONE,
138     & 'momForcing =', ' /* Momentum forcing on/off flag */')
139     CALL WRITE_1D_L( momPressureForcing,1, INDEX_NONE,
140 cnh 1.17 & 'momPressureForcing =',
141     & ' /* Momentum pressure term on/off flag */')
142 cnh 1.10 CALL WRITE_1D_L( tempStepping,1, INDEX_NONE,
143     & 'tempStepping =', ' /* Temperature equation on/off flag */')
144 cnh 1.8 CALL WRITE_1D_R8( GMMaxSlope,1, INDEX_NONE,'GMMaxSlope =',
145     &' /* Max. slope allowed in GM/Redi tensor */')
146     CALL WRITE_1D_R8( GMLength,1, INDEX_NONE,'GMLength =',
147     &' /* Length to use in Visbeck et al. formula for K (m) */')
148     CALL WRITE_1D_R8( GMAlpha,1, INDEX_NONE,'GMAlpha =',
149     &' /* alpha to use in Visbeck et al. formula for K */')
150     CALL WRITE_1D_R8( GMdepth,1, INDEX_NONE,'GMdepth =',
151     &' /* Depth to integrate for Visbeck et. al Richardson # (m) */')
152     CALL WRITE_1D_R8( GMkbackground,1, INDEX_NONE,'GMkbackground =',
153     &' /* background value of GM/Redi coefficient m^2/s */')
154 cnh 1.6 WRITE(msgBuf,'(A)') '// '
155 cnh 1.17 CALL PRINT_MESSAGE( msgBuf, standardMessageUnit,
156     & SQUEEZE_RIGHT , 1)
157 cnh 1.9
158 cnh 1.17 WRITE(msgBuf,'(A)')
159     & '// Elliptic solver(s) paramters ( PARM02 in namelist ) '
160     CALL PRINT_MESSAGE( msgBuf, standardMessageUnit,
161     & SQUEEZE_RIGHT , 1)
162 cnh 1.6 WRITE(msgBuf,'(A)') '// '
163 cnh 1.17 CALL PRINT_MESSAGE( msgBuf, standardMessageUnit,
164     & SQUEEZE_RIGHT , 1)
165 cnh 1.6 CALL WRITE_1D_I( cg2dMaxIters,1, INDEX_NONE,'cg2dMaxIters =',
166     &' /* Upper limit on 2d con. grad iterations */')
167     CALL WRITE_1D_I( cg2dChkResFreq,1, INDEX_NONE,'cg2dChkResFreq =',
168     &' /* 2d con. grad convergence test frequency */')
169 cnh 1.17 CALL WRITE_1D_R8( cg2dTargetResidual,1, INDEX_NONE,
170     & 'cg2dTargetResidual =',
171 cnh 1.6 &' /* 2d con. grad target residual */')
172    
173     WRITE(msgBuf,'(A)') '// '
174 cnh 1.17 CALL PRINT_MESSAGE( msgBuf, standardMessageUnit,
175     & SQUEEZE_RIGHT , 1)
176     WRITE(msgBuf,'(A)')
177     & '// Time stepping paramters ( PARM03 in namelist ) '
178     CALL PRINT_MESSAGE( msgBuf, standardMessageUnit,
179     & SQUEEZE_RIGHT , 1)
180 cnh 1.6 WRITE(msgBuf,'(A)') '// '
181 cnh 1.17 CALL PRINT_MESSAGE( msgBuf, standardMessageUnit,
182     & SQUEEZE_RIGHT , 1)
183 cnh 1.6 CALL WRITE_1D_I( nIter0,1, INDEX_NONE,'nIter0 =',
184     &' /* Base timestep number */')
185     CALL WRITE_1D_I( nTimeSteps,1, INDEX_NONE,'nTimeSteps =',
186     &' /* Number of timesteps */')
187     CALL WRITE_1D_R8( deltaTmom,1, INDEX_NONE,'deltatTmom =',
188     &' /* Momentum equation timestep ( s ) */')
189     CALL WRITE_1D_R8( deltaTtracer,1, INDEX_NONE,'deltatTtracer =',
190     &' /* Tracer equation timestep ( s ) */')
191 cnh 1.12 CALL WRITE_1D_R8( deltaTClock ,1, INDEX_NONE,'deltatTClock =',
192     &' /* Model clock timestep ( s ) */')
193 cnh 1.9 CALL WRITE_1D_R8( cAdjFreq,1, INDEX_NONE,'cAdjFreq =',
194     &' /* Convective adjustment interval ( s ) */')
195 cnh 1.6 CALL WRITE_1D_R8( abEps,1, INDEX_NONE,'abEps =',
196     &' /* Adams-Bashforth stabilizing weight */')
197     CALL WRITE_1D_R8( tauCD,1, INDEX_NONE,'tauCD =',
198     &' /* CD coupling time-scale ( s ) */')
199     CALL WRITE_1D_R8( rCD,1, INDEX_NONE,'rCD =',
200     &' /* Normalised CD coupling parameter */')
201     CALL WRITE_1D_R8( startTime,1, INDEX_NONE,'startTime =',
202     &' /* Run start time ( s ). */')
203     CALL WRITE_1D_R8( endTime,1, INDEX_NONE,'endTime =',
204     &' /* Integration ending time ( s ). */')
205 cnh 1.7 CALL WRITE_1D_R8( pChkPtFreq,1, INDEX_NONE,'pChkPtFreq =',
206     &' /* Permanent restart/checkpoint file interval ( s ). */')
207 cnh 1.6 CALL WRITE_1D_R8( chkPtFreq,1, INDEX_NONE,'chkPtFreq =',
208 cnh 1.7 &' /* Rolling restart/checkpoint file interval ( s ). */')
209 cnh 1.6 CALL WRITE_1D_R8( dumpFreq,1, INDEX_NONE,'dumpFreq =',
210     &' /* Model state write out interval ( s ). */')
211    
212     WRITE(msgBuf,'(A)') '// '
213 cnh 1.17 CALL PRINT_MESSAGE( msgBuf, standardMessageUnit,
214     & SQUEEZE_RIGHT , 1)
215     WRITE(msgBuf,'(A)')
216     & '// Gridding paramters ( PARM04 in namelist ) '
217     CALL PRINT_MESSAGE( msgBuf, standardMessageUnit,
218     & SQUEEZE_RIGHT , 1)
219 cnh 1.6 WRITE(msgBuf,'(A)') '// '
220 cnh 1.17 CALL PRINT_MESSAGE( msgBuf, standardMessageUnit,
221     & SQUEEZE_RIGHT , 1)
222     CALL WRITE_1D_L( usingCartesianGrid,1, INDEX_NONE,
223     & 'usingCartesianGrid =',
224 cnh 1.6 &' /* Cartesian coordinates flag ( True / False ) */')
225 cnh 1.17 CALL WRITE_1D_L( usingSphericalPolarGrid,1, INDEX_NONE,
226     & 'usingSphericalPolarGrid =',
227 cnh 1.6 &' /* Spherical coordinates flag ( True / False ) */')
228 cnh 1.13 CALL WRITE_1D_R8( delZ,Nr, INDEX_K,'delZ = ',
229 cnh 1.6 &' /* W spacing ( m ) */')
230 cnh 1.15 CALL WRITE_1D_R8( delP,Nr, INDEX_K,'delP = ',
231     &' /* W spacing ( Pa ) */')
232     CALL WRITE_1D_R8( delR,Nr, INDEX_K,'delR = ',
233     &' /* W spacing ( units of r ) */')
234 cnh 1.6 CALL WRITE_1D_R8( delX, Nx, INDEX_I,'delX = ',
235     &' /* U spacing ( m - cartesian, degrees - spherical ) */')
236     CALL WRITE_1D_R8( delY, Ny, INDEX_J,'delY = ',
237     &' /* V spacing ( m - cartesian, degrees - spherical ) */')
238     CALL WRITE_1D_R8( phiMin, 1, INDEX_NONE,'phiMin = ',
239 cnh 1.17 &' /* South edge (ignored - cartesian, degrees - spherical ) */')
240 cnh 1.6 CALL WRITE_1D_R8( thetaMin, 1, INDEX_NONE,'thetaMin = ',
241 cnh 1.17 &' /* West edge ( ignored - cartesian, degrees - spherical ) */')
242 cnh 1.6 CALL WRITE_1D_R8( rSphere, 1, INDEX_NONE,'rSphere = ',
243     &' /* Radius ( ignored - cartesian, m - spherical ) */')
244     DO bi=1,nSx
245     DO I=1,sNx
246     xcoord((bi-1)*sNx+I) = xc(I,1,bi,1)
247     ENDDO
248     ENDDO
249 cnh 1.11 CALL WRITE_1D_R8( xcoord, sNx*nSx, INDEX_I,'xcoord = ',
250 cnh 1.17 &' /* P-point X coord ( m - cartesian, degrees - spherical ) */')
251 cnh 1.6 DO bj=1,nSy
252     DO J=1,sNy
253     ycoord((bj-1)*sNy+J) = yc(1,J,1,bj)
254     ENDDO
255     ENDDO
256 cnh 1.11 CALL WRITE_1D_R8( ycoord, sNy*nSy, INDEX_J,'ycoord = ',
257 cnh 1.17 &' /* P-point Y coord ( m - cartesian, degrees - spherical ) */')
258 cnh 1.13 DO K=1,Nr
259     rcoord(K) = rc(K)
260 cnh 1.6 ENDDO
261 cnh 1.13 CALL WRITE_1D_R8( rcoord, Nr, INDEX_K,'rcoord = ',
262     &' /* P-point R coordinate ( units of r ) */')
263 cnh 1.6
264 cnh 1.5
265    
266 cnh 1.1 WRITE(msgBuf,'(A)') ' '
267     CALL PRINT_MESSAGE( msgBuf, standardMessageUnit,
268     & SQUEEZE_RIGHT , 1)
269 cnh 1.5
270 cnh 1.1 _END_MASTER(myThid)
271     _BARRIER
272    
273    
274     RETURN
275     100 FORMAT(A,
276 cnh 1.4 &' '
277 cnh 1.1 &)
278     END
279    

  ViewVC Help
Powered by ViewVC 1.1.22