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

Contents of /MITgcm/model/src/set_defaults.F

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


Revision 1.106 - (show annotations) (download)
Tue Oct 11 21:27:52 2005 UTC (18 years, 8 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint57v_post
Changes since 1.105: +4 -3 lines
new parameter: sideDragFactor to enable half-slip-side BC.

1 C $Header: /u/gcmpack/MITgcm/model/src/set_defaults.F,v 1.105 2005/10/11 00:13:51 jmc Exp $
2 C $Name: $
3
4 #include "CPP_OPTIONS.h"
5
6 C---+----1----+----2----+----3----+----4----+----5----+----6----+----7-|--+----|
7 CBOP
8 C !ROUTINE: SET_DEFAULTS
9 C !INTERFACE:
10 SUBROUTINE SET_DEFAULTS(
11 O viscArDefault, diffKrTDefault, diffKrSDefault,
12 O hFacMinDrDefault, delRdefault, rkFacDefault,
13 I myThid )
14
15 C !DESCRIPTION:
16 C Routine to set model "parameter defaults".
17
18 C !USES:
19 IMPLICIT NONE
20 #include "SIZE.h"
21 #include "EEPARAMS.h"
22 #include "PARAMS.h"
23 Cml#include "EOS.h"
24 #include "GRID.h"
25
26 C !INPUT/OUTPUT PARAMETERS:
27 C myThid - Number of this instance of INI_PARMS
28 INTEGER myThid
29 _RL viscArDefault
30 _RL diffKrTDefault
31 _RL diffKrSDefault
32 _RL hFacMinDrDefault
33 _RL delRDefault(Nr)
34 _RS rkFacDefault
35
36 C !LOCAL VARIABLES:
37 C K, I, J - Loop counters
38 INTEGER K, I, J
39 CEOP
40
41 C-- Grid parameters
42 C Vertical gridding
43 rkFacDefault = 1.D0
44 horiVertRatio = 1.D0
45 Ro_SeaLevel = 0.
46 DO k=1,Nr
47 delRdefault(k) = 0.
48 ENDDO
49 DO k=1,Nr+1
50 delRc(k) = UNSET_RL
51 ENDDO
52
53 C Horizontal gridding
54 delXFile = ' '
55 delYFile = ' '
56 horizGridFile = ' '
57 C In cartesian coords distances are in metres
58 usingCartesianGrid = .FALSE.
59 DO i=1,Nx
60 delX(i) = UNSET_RL
61 ENDDO
62 DO j=1,Ny
63 delY(j) = UNSET_RL
64 ENDDO
65 C In spherical polar distances are in degrees
66 usingSphericalPolarGrid = .FALSE.
67 phiMin = 0.0
68 thetaMin = 0.
69 rSphere = 6370. * 1.D3
70 C General curvilinear coordinate system
71 usingCurvilinearGrid = .FALSE.
72 C General cylindrical coordinate system
73 usingCylindricalGrid = .FALSE.
74 C Coriolis map:
75 useConstantF = .FALSE.
76 useBetaPlaneF = .FALSE.
77 useSphereF = .FALSE.
78
79
80 C-- Set default "physical" parameters
81 nh_Am2 = 1.D0
82 gravity = 9.81D0
83 rhoNil = 999.8D0
84 C-- jmc : the default is to set rhoConstFresh to rhoConst (=rhoNil by default)
85 C (so that the default produces same results as before)
86 c rhoConstFresh = 999.8D0
87 f0 = 1.D-4
88 beta = 1.D-11
89 C- Always use 1 day in the past but should be 86164 (=86400*365.25/366.25)
90 rotationPeriod = 86400. _d 0
91 viscAh = 0.D3
92 viscAhGrid = 0.D0
93 viscAhGridMin = 0.D0
94 viscAhGridMax = 1.D21
95 viscAhMax = 1.D21
96 viscAhReMax = 0.D0
97 viscC2leith = 0.D0
98 viscC2leithD = 0.D0
99 viscC2smag = 0.D0
100 diffKhT = 0.D3
101 diffKhS = 0.D3
102 viscArDefault = 0.D-3
103 no_slip_sides = .TRUE.
104 no_slip_bottom = .TRUE.
105 sideDragFactor = 2. _d 0
106 bottomDragLinear = 0.
107 bottomDragQuadratic = 0.
108 diffKrTDefault = 0.D-3
109 diffKrSDefault = 0.D-3
110 diffKrBL79surf = 0.D0
111 diffKrBL79deep = 0.D0
112 diffKrBL79scl = 200.D0
113 diffKrBL79Ho = -2000.D0
114 viscA4 = 0.D11
115 viscA4Grid = 0.D0
116 viscA4GridMax = 1.D21
117 viscA4GridMin = 0.D0
118 viscA4Max = 1.D21
119 viscA4ReMax = 0.D0
120 viscC4leith = 0.D0
121 viscC4leithD = 0.D0
122 viscC4smag = 0.D0
123 diffK4T = 0.D11
124 diffK4S = 0.D11
125 cosPower = 0.
126 HeatCapacity_Cp = 3994.D0
127 Cml tAlpha = 2.D-4
128 Cml sBeta = 7.4D-4
129 eosType = 'LINEAR'
130 buoyancyRelation = 'OCEANIC'
131 hFacMin = 1.D0
132 hFacMinDrDefault = 0.D0
133 staggerTimeStep = .FALSE.
134 momViscosity = .TRUE.
135 momAdvection = .TRUE.
136 momForcing = .TRUE.
137 useCoriolis = .TRUE.
138 momPressureForcing = .TRUE.
139 momStepping = .TRUE.
140 vectorInvariantMomentum = .FALSE.
141 tempStepping = .TRUE.
142 tempAdvection = .TRUE.
143 tempForcing = .TRUE.
144 saltStepping = .TRUE.
145 saltAdvection = .TRUE.
146 saltForcing = .TRUE.
147 metricTerms = .TRUE.
148 useNHMTerms = .FALSE.
149 useFullLeith = .FALSE.
150 useAreaViscLength = .FALSE.
151 useStrainTensionVisc = .FALSE.
152 implicitDiffusion = .FALSE.
153 implicitViscosity = .FALSE.
154 momImplVertAdv = .FALSE.
155 tempImplVertAdv = .FALSE.
156 saltImplVertAdv = .FALSE.
157 nonHydrostatic = .FALSE.
158 quasiHydrostatic = .FALSE.
159 globalFiles = .FALSE.
160 useSingleCpuIO = .FALSE.
161 allowFreezing = .FALSE.
162 useOldFreezing = .FALSE.
163 ivdc_kappa = 0.D0
164 usePickupBeforeC35 = .FALSE.
165 usePickupBeforeC54 = .FALSE.
166 debugMode = .FALSE.
167 tempAdvScheme = 2
168 saltAdvScheme = 2
169 multiDimAdvection = .TRUE.
170 useCDscheme = .FALSE.
171 useEnergyConservingCoriolis = .FALSE.
172 useJamartWetPoints = .FALSE.
173 useJamartMomAdv = .FALSE.
174 SadournyCoriolis = .FALSE.
175 upwindVorticity = .FALSE.
176 highOrderVorticity = .FALSE.
177 useAbsVorticity = .FALSE.
178 upwindShear = .FALSE.
179 selectKEscheme = 0
180 debugLevel = debLevA
181 inAdMode = .FALSE.
182 inAdExact = .TRUE.
183
184 C-- Set (free)surface-related parameters
185 implicitFreeSurface = .FALSE.
186 rigidLid = .FALSE.
187 implicSurfPress = 1.D0
188 implicDiv2DFlow = 1.D0
189 exactConserv = .FALSE.
190 uniformLin_PhiSurf = .TRUE.
191 nonlinFreeSurf = 0
192 hFacInf = 0.2 _d 0
193 hFacSup = 2.0 _d 0
194 select_rStar = 0
195 useRealFreshWaterFlux = .FALSE.
196 temp_EvPrRn = UNSET_RL
197 salt_EvPrRn = 0.
198
199 C-- Atmospheric physical parameters (e.g.: EOS)
200 celsius2K = 273.16 _d 0
201 atm_Po = 1. _d 5
202 atm_Cp = 1004. _d 0
203 atm_Rd = UNSET_RL
204 atm_kappa = 2. _d 0 / 7. _d 0
205 atm_Rq = 0. _d 0
206 integr_GeoPot = 2
207 selectFindRoSurf = 0
208
209 C-- Elliptic solver parameters
210 cg2dMaxIters = 150
211 cg2dTargetResidual = 1.D-7
212 cg2dTargetResWunit = -1.
213 cg2dChkResFreq = 1
214 cg2dpcOffDFac = 0.51D0
215 cg2dPreCondFreq = 1
216 cg3dMaxIters = 150
217 cg3dTargetResidual = 1.D-7
218 cg3dChkResFreq = 1
219
220 C-- Time stepping parameters
221 deltaT = 0. _d 0
222 deltaTmom = 0. _d 0
223 deltaTfreesurf = 0. _d 0
224 DO k=1,Nr
225 dTtracerLev(k) = 0. _d 0
226 ENDDO
227 baseTime = 0. _d 0
228 nIter0 = 0
229 startTime = deltaT*float(nIter0)
230 pickupSuff = ' '
231 nTimeSteps = 0
232 nEndIter = nIter0+nTimeSteps
233 endTime = deltaT*float(nEndIter)
234 forcing_In_AB = .TRUE.
235 abEps = 0.01
236 #ifdef ALLOW_ADAMSBASHFORTH_3
237 alph_AB = 0.5 _d 0
238 beta_AB = 5. _d 0 / 12. _d 0
239 startFromPickupAB2= .FALSE.
240 #else
241 alph_AB = UNSET_RL
242 beta_AB = UNSET_RL
243 startFromPickupAB2= .TRUE.
244 #endif
245 pchkPtFreq = deltaT*0
246 chkPtFreq = deltaT*0
247 outputTypesInclusive = .FALSE.
248 pickup_read_mdsio = .TRUE.
249 pickup_write_mdsio= .TRUE.
250 pickup_write_immed= .FALSE.
251 dumpFreq = deltaT*0
252 adjDumpFreq = deltaT*0
253 diagFreq = deltaT*0
254 dumpInitAndLast = .TRUE.
255 snapshot_mdsio = .TRUE.
256 monitorFreq = -1.
257 adjMonitorFreq = 0.
258 monitor_stdio = .TRUE.
259 taveFreq = deltaT*0
260 timeave_mdsio = .TRUE.
261 tave_lastIter = 0.5 _d 0
262 writeStatePrec = precFloat64
263 writeBinaryPrec = precFloat32
264 readBinaryPrec = precFloat32
265 nCheckLev = 1
266 checkPtSuff(1) = 'ckptA'
267 checkPtSuff(2) = 'ckptB'
268 cAdjFreq = 0.D0
269 tauCD = 0.D0
270 tauThetaClimRelax = 0.D0
271 tauSaltClimRelax = 0.D0
272 tauTr1ClimRelax = 0.D0
273 periodicExternalForcing = .FALSE.
274 externForcingPeriod = 0.
275 externForcingCycle = 0.
276 tCylIn = 0.
277 tCylOut = 20.
278 calendarDumps = .FALSE.
279
280 C-- Input files
281 bathyFile = ' '
282 topoFile = ' '
283 hydrogSaltFile = ' '
284 hydrogThetaFile = ' '
285 zonalWindFile = ' '
286 meridWindFile = ' '
287 thetaClimFile = ' '
288 saltClimFile = ' '
289 EmPmRfile = ' '
290 saltFluxFile = ' '
291 surfQfile = ' '
292 surfQnetFile = ' '
293 surfQswFile = ' '
294 uVelInitFile = ' '
295 vVelInitFile = ' '
296 pSurfInitFile = ' '
297 dQdTFile = ' '
298 ploadFile = ' '
299 eddyTauxFile = ' '
300 eddyTauyFile = ' '
301 lambdaThetaFile = ' '
302 lambdaSaltFile = ' '
303 mdsioLocalDir = ' '
304
305 C
306 RETURN
307 END

  ViewVC Help
Powered by ViewVC 1.1.22