/[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.8 - (hide annotations) (download)
Mon May 25 16:17:36 1998 UTC (26 years ago) by cnh
Branch: MAIN
Changes since 1.7: +21 -1 lines
Added changes to support implicit free-surface.
 - included gBaro a "barotropic" gravity that can
   be set differently to the g.rhoprime gravity.
 - discovered and fixed coding error in dynamics
   loop. Per tile temporaries that needed correct
   initial values were not being reset for each tile.

1 cnh 1.8 C $Header: /u/gcmpack/models/MITgcmUV/model/src/config_summary.F,v 1.7 1998/05/21 18:25:48 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     REAL zcoord(Nz)
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     CALL PRINT_MESSAGE( msgBuf, standardMessageUnit, SQUEEZE_RIGHT , 1)
48     WRITE(msgBuf,'(A)') '// Model configuration'
49     CALL PRINT_MESSAGE( msgBuf, standardMessageUnit, SQUEEZE_RIGHT , 1)
50     WRITE(msgBuf,'(A)')
51     &'// ======================================================='
52     CALL PRINT_MESSAGE( msgBuf, standardMessageUnit,
53     & SQUEEZE_RIGHT , 1)
54 cnh 1.5
55 cnh 1.6 WRITE(msgBuf,'(A)') '// '
56     CALL PRINT_MESSAGE( msgBuf, standardMessageUnit, SQUEEZE_RIGHT , 1)
57     WRITE(msgBuf,'(A)') '// "Physical" paramters ( PARM01 in namelist ) '
58     CALL PRINT_MESSAGE( msgBuf, standardMessageUnit, SQUEEZE_RIGHT , 1)
59     WRITE(msgBuf,'(A)') '// '
60     CALL PRINT_MESSAGE( msgBuf, standardMessageUnit, SQUEEZE_RIGHT , 1)
61 cnh 1.5 CALL WRITE_1D_R8( tRef, Nz, INDEX_K,'tRef =',
62     &' /* Reference temperature profile ( oC or oK ) */')
63 cnh 1.6 CALL WRITE_1D_R8( sRef, Nz, INDEX_K,'sRef =',
64     &' /* Reference salinity profile ( ppt ) */')
65 cnh 1.5 CALL WRITE_1D_R8( viscAh, 1, INDEX_NONE,'viscAh =',
66     &' /* Lateral eddy viscosity ( m^2/s ) */')
67     CALL WRITE_1D_R8( viscAz, 1, INDEX_NONE,'viscAz =',
68     &' /* Vertical eddy viscosity ( m^2/s ) */')
69     CALL WRITE_1D_R8( diffKhT, 1, INDEX_NONE,'diffKhT =',
70     &' /* Laplacian diffusion of heat laterally ( m^2/s ) */')
71     CALL WRITE_1D_R8( diffKzT, 1, INDEX_NONE,'diffKzT =',
72     &' /* Laplacian diffusion of heat vertically ( m^2/s ) */')
73     CALL WRITE_1D_R8( diffK4T, 1, INDEX_NONE,'diffK4T =',
74     &' /* Bihaarmonic diffusion of heat laterally ( m^4/s ) */')
75     CALL WRITE_1D_R8( diffKhS, 1, INDEX_NONE,'diffKhS =',
76     &' /* Laplacian diffusion of salt laterally ( m^2/s ) */')
77     CALL WRITE_1D_R8( diffKzS, 1, INDEX_NONE,'diffKzS =',
78     &' /* Laplacian diffusion of salt vertically ( m^2/s ) */')
79     CALL WRITE_1D_R8( diffK4S, 1, INDEX_NONE,'diffK4S =',
80     &' /* Bihaarmonic diffusion of salt laterally ( m^4/s ) */')
81 cnh 1.6 CALL WRITE_1D_R8( tAlpha,1, INDEX_NONE,'tAlpha =',
82     &' /* Linear EOS thermal expansion coefficient ( 1/degree ) */')
83     CALL WRITE_1D_R8( sBeta, 1, INDEX_NONE,'sBeta =',
84     &' /* Linear EOS haline contraction coefficient ( 1/ppt ) */')
85     CALL WRITE_1D_R8( rhonil,1, INDEX_NONE,'rhonil =',
86     &' /* Reference density ( kg/m^3 ) */')
87     CALL WRITE_1D_R8( gravity,1, INDEX_NONE,'gravity =',
88     &' /* Gravitational acceleration ( m/s^2 ) */')
89 cnh 1.8 CALL WRITE_1D_R8( gBaro,1, INDEX_NONE,'gBaro =',
90     &' /* Barotropic gravity ( m/s^2 ) */')
91 cnh 1.6 CALL WRITE_1D_R8( f0,1, INDEX_NONE,'f0 =',
92     &' /* Reference coriolis parameter ( 1/s ) */')
93     CALL WRITE_1D_R8( beta,1, INDEX_NONE,'beta =',
94     &' /* Beta ( 1/(m.s) ) */')
95 cnh 1.8 CALL WRITE_1D_R8( freeSurfFac,1, INDEX_NONE,'freeSurfFac =',
96     &' /* Implcit free surface factor */')
97     CALL WRITE_1D_L( implicitFreeSurface,1, INDEX_NONE,
98     & 'implicitFreeSurface =',
99     &' /* Implicit free surface on/off flag */')
100     CALL WRITE_1D_L( rigidLid,1, INDEX_NONE,
101     & 'rigidLid =',
102     &' /* Rigid lid on/off flag */')
103     CALL WRITE_1D_R8( GMMaxSlope,1, INDEX_NONE,'GMMaxSlope =',
104     &' /* Max. slope allowed in GM/Redi tensor */')
105     CALL WRITE_1D_R8( GMLength,1, INDEX_NONE,'GMLength =',
106     &' /* Length to use in Visbeck et al. formula for K (m) */')
107     CALL WRITE_1D_R8( GMAlpha,1, INDEX_NONE,'GMAlpha =',
108     &' /* alpha to use in Visbeck et al. formula for K */')
109     CALL WRITE_1D_R8( GMdepth,1, INDEX_NONE,'GMdepth =',
110     &' /* Depth to integrate for Visbeck et. al Richardson # (m) */')
111     CALL WRITE_1D_R8( GMkbackground,1, INDEX_NONE,'GMkbackground =',
112     &' /* background value of GM/Redi coefficient m^2/s */')
113 cnh 1.6 WRITE(msgBuf,'(A)') '// '
114     CALL PRINT_MESSAGE( msgBuf, standardMessageUnit, SQUEEZE_RIGHT , 1)
115     WRITE(msgBuf,'(A)') '// Elliptic solver(s) paramters ( PARM02 in namelist ) '
116     CALL PRINT_MESSAGE( msgBuf, standardMessageUnit, SQUEEZE_RIGHT , 1)
117     WRITE(msgBuf,'(A)') '// '
118     CALL PRINT_MESSAGE( msgBuf, standardMessageUnit, SQUEEZE_RIGHT , 1)
119     CALL WRITE_1D_I( cg2dMaxIters,1, INDEX_NONE,'cg2dMaxIters =',
120     &' /* Upper limit on 2d con. grad iterations */')
121     CALL WRITE_1D_I( cg2dChkResFreq,1, INDEX_NONE,'cg2dChkResFreq =',
122     &' /* 2d con. grad convergence test frequency */')
123     CALL WRITE_1D_R8( cg2dTargetResidual,1, INDEX_NONE,'cg2dTargetResidual =',
124     &' /* 2d con. grad target residual */')
125    
126     WRITE(msgBuf,'(A)') '// '
127     CALL PRINT_MESSAGE( msgBuf, standardMessageUnit, SQUEEZE_RIGHT , 1)
128     WRITE(msgBuf,'(A)') '// Time stepping paramters ( PARM03 in namelist ) '
129     CALL PRINT_MESSAGE( msgBuf, standardMessageUnit, SQUEEZE_RIGHT , 1)
130     WRITE(msgBuf,'(A)') '// '
131     CALL PRINT_MESSAGE( msgBuf, standardMessageUnit, SQUEEZE_RIGHT , 1)
132     CALL WRITE_1D_I( nIter0,1, INDEX_NONE,'nIter0 =',
133     &' /* Base timestep number */')
134     CALL WRITE_1D_I( nTimeSteps,1, INDEX_NONE,'nTimeSteps =',
135     &' /* Number of timesteps */')
136     CALL WRITE_1D_R8( deltaTmom,1, INDEX_NONE,'deltatTmom =',
137     &' /* Momentum equation timestep ( s ) */')
138     CALL WRITE_1D_R8( deltaTtracer,1, INDEX_NONE,'deltatTtracer =',
139     &' /* Tracer equation timestep ( s ) */')
140     CALL WRITE_1D_R8( abEps,1, INDEX_NONE,'abEps =',
141     &' /* Adams-Bashforth stabilizing weight */')
142     CALL WRITE_1D_R8( tauCD,1, INDEX_NONE,'tauCD =',
143     &' /* CD coupling time-scale ( s ) */')
144     CALL WRITE_1D_R8( rCD,1, INDEX_NONE,'rCD =',
145     &' /* Normalised CD coupling parameter */')
146     CALL WRITE_1D_R8( startTime,1, INDEX_NONE,'startTime =',
147     &' /* Run start time ( s ). */')
148     CALL WRITE_1D_R8( endTime,1, INDEX_NONE,'endTime =',
149     &' /* Integration ending time ( s ). */')
150 cnh 1.7 CALL WRITE_1D_R8( pChkPtFreq,1, INDEX_NONE,'pChkPtFreq =',
151     &' /* Permanent restart/checkpoint file interval ( s ). */')
152 cnh 1.6 CALL WRITE_1D_R8( chkPtFreq,1, INDEX_NONE,'chkPtFreq =',
153 cnh 1.7 &' /* Rolling restart/checkpoint file interval ( s ). */')
154 cnh 1.6 CALL WRITE_1D_R8( dumpFreq,1, INDEX_NONE,'dumpFreq =',
155     &' /* Model state write out interval ( s ). */')
156    
157     WRITE(msgBuf,'(A)') '// '
158     CALL PRINT_MESSAGE( msgBuf, standardMessageUnit, SQUEEZE_RIGHT , 1)
159     WRITE(msgBuf,'(A)') '// Gridding paramters ( PARM04 in namelist ) '
160     CALL PRINT_MESSAGE( msgBuf, standardMessageUnit, SQUEEZE_RIGHT , 1)
161     WRITE(msgBuf,'(A)') '// '
162     CALL PRINT_MESSAGE( msgBuf, standardMessageUnit, SQUEEZE_RIGHT , 1)
163     CALL WRITE_1D_L( usingCartesianGrid,1, INDEX_NONE,'usingCartesianGrid =',
164     &' /* Cartesian coordinates flag ( True / False ) */')
165     CALL WRITE_1D_L( usingSphericalPolarGrid,1, INDEX_NONE,'usingSphericalPolarGrid =',
166     &' /* Spherical coordinates flag ( True / False ) */')
167     CALL WRITE_1D_R8( delZ,Nz, INDEX_K,'delZ = ',
168     &' /* W spacing ( m ) */')
169     CALL WRITE_1D_R8( delX, Nx, INDEX_I,'delX = ',
170     &' /* U spacing ( m - cartesian, degrees - spherical ) */')
171     CALL WRITE_1D_R8( delY, Ny, INDEX_J,'delY = ',
172     &' /* V spacing ( m - cartesian, degrees - spherical ) */')
173     CALL WRITE_1D_R8( phiMin, 1, INDEX_NONE,'phiMin = ',
174     &' /* Southern boundary ( ignored - cartesian, degrees - spherical ) */')
175     CALL WRITE_1D_R8( thetaMin, 1, INDEX_NONE,'thetaMin = ',
176     &' /* Western boundary ( ignored - cartesian, degrees - spherical ) */')
177     CALL WRITE_1D_R8( rSphere, 1, INDEX_NONE,'rSphere = ',
178     &' /* Radius ( ignored - cartesian, m - spherical ) */')
179     DO bi=1,nSx
180     DO I=1,sNx
181     xcoord((bi-1)*sNx+I) = xc(I,1,bi,1)
182     ENDDO
183     ENDDO
184     CALL WRITE_1D_R8( xcoord, Nx, INDEX_I,'xcoord = ',
185     &' /* P-point X coordinate ( m - cartesian, degrees - spherical ) */')
186     DO bj=1,nSy
187     DO J=1,sNy
188     ycoord((bj-1)*sNy+J) = yc(1,J,1,bj)
189     ENDDO
190     ENDDO
191     CALL WRITE_1D_R8( ycoord, Ny, INDEX_J,'ycoord = ',
192     &' /* P-point Y coordinate ( m - cartesian, degrees - spherical ) */')
193     DO K=1,Nz
194     zcoord(K) = zc(K)
195     ENDDO
196     CALL WRITE_1D_R8( zcoord, Nz, INDEX_K,'zcoord = ',
197     &' /* P-point Z coordinate ( m ) */')
198    
199 cnh 1.5
200    
201 cnh 1.1 WRITE(msgBuf,'(A)') ' '
202     CALL PRINT_MESSAGE( msgBuf, standardMessageUnit,
203     & SQUEEZE_RIGHT , 1)
204 cnh 1.5
205 cnh 1.1 _END_MASTER(myThid)
206     _BARRIER
207    
208    
209     RETURN
210     100 FORMAT(A,
211 cnh 1.4 &' '
212 cnh 1.1 &)
213     END
214    

  ViewVC Help
Powered by ViewVC 1.1.22