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

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

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


Revision 1.66 - (hide annotations) (download)
Fri Jul 9 22:32:35 2004 UTC (19 years, 11 months ago) by jmc
Branch: MAIN
Changes since 1.65: +2 -1 lines
Only update cg2d preconditioner every "cg2dPreCondFreq" iter. (default=1)

1 jmc 1.66 C $Header: /u/gcmpack/MITgcm/model/src/set_defaults.F,v 1.65 2004/07/06 00:54:07 jmc Exp $
2 heimbach 1.18 C $Name: $
3 adcroft 1.1
4     #include "CPP_OPTIONS.h"
5    
6 cnh 1.29 CBOP
7     C !ROUTINE: SET_DEFAULTS
8     C !INTERFACE:
9 adcroft 1.1 SUBROUTINE SET_DEFAULTS(
10     O viscArDefault, diffKrTDefault, diffKrSDefault,
11 adcroft 1.2 O hFacMinDrDefault, delRdefault, rkFacDefault,
12 adcroft 1.1 I myThid )
13 cnh 1.29
14     C !DESCRIPTION: \bv
15     C *==========================================================*
16     C | SUBROUTINE SET_DEFAULTS
17     C | o Routine to set model "parameters"
18     C *==========================================================*
19     C | Notes:
20     C | ======
21     C | The present version of this routine is a place-holder.
22     C | A production version needs to handle parameters from an
23     C | external file and possibly reading in some initial field
24     C | values.
25     C *==========================================================*
26     C \ev
27    
28     C !USES:
29 adcroft 1.1 IMPLICIT NONE
30     C === Global variables ===
31     #include "SIZE.h"
32     #include "EEPARAMS.h"
33     #include "PARAMS.h"
34 mlosch 1.37 Cml#include "EOS.h"
35 adcroft 1.1 #include "GRID.h"
36    
37 cnh 1.29 C !INPUT/OUTPUT PARAMETERS:
38 adcroft 1.1 C === Routine arguments ===
39     C myThid - Number of this instance of INI_PARMS
40     INTEGER myThid
41     _RL viscArDefault
42     _RL diffKrTDefault
43     _RL diffKrSDefault
44     _RL hFacMinDrDefault
45     _RL delRDefault(Nr)
46 adcroft 1.2 _RS rkFacDefault
47 adcroft 1.1
48 cnh 1.29 C !LOCAL VARIABLES:
49 adcroft 1.1 C === Local variables ===
50     C K, I, J - Loop counters
51     INTEGER K, I, J
52 cnh 1.29 CEOP
53 adcroft 1.1
54     C-- Grid parameters
55     C Vertical gridding
56 adcroft 1.2 rkFacDefault = 1.D0
57     horiVertRatio = 1.D0
58 adcroft 1.12 Ro_SeaLevel = 0.
59 adcroft 1.1 DO k=1,Nr
60 adcroft 1.2 delRdefault(k) = 0.
61 jmc 1.34 ENDDO
62     DO k=1,Nr+1
63     delRc(k) = UNSET_RL
64 adcroft 1.1 ENDDO
65    
66     C Horizontal gridding
67     C In cartesian coords distances are in metres
68 jmc 1.56 usingCartesianGrid = .FALSE.
69 adcroft 1.1 DO i=1,Nx
70 adcroft 1.8 delX(i) = UNSET_RL
71 adcroft 1.1 ENDDO
72     DO j=1,Ny
73 adcroft 1.8 delY(j) = UNSET_RL
74 adcroft 1.1 ENDDO
75     C In spherical polar distances are in degrees
76     usingSphericalPolarGrid = .FALSE.
77 adcroft 1.2 phiMin = 0.0
78     thetaMin = 0.
79     rSphere = 6370. * 1.D3
80 adcroft 1.19 C General curvilinear coordinate system
81     usingCurvilinearGrid = .FALSE.
82 afe 1.64 C General cylindrical coordinate system
83     usingCylindricalGrid = .FALSE.
84    
85 adcroft 1.1
86     C-- Set default "physical" parameters
87     DO K =1,Nr
88     tRef(K) = 30.D0 - FLOAT( K )
89 mlosch 1.39 Cml sRef(K) = 35.D0
90 adcroft 1.1 ENDDO
91 adcroft 1.2 gravity = 9.81D0
92     rhoNil = 999.8D0
93 jmc 1.55 C-- jmc : the default is to set rhoConstFresh to rhoConst (=rhoNil by default)
94     C (so that the default produces same results as before)
95     c rhoConstFresh = 999.8D0
96 adcroft 1.2 f0 = 1.D-4
97     beta = 1.D-11
98 jmc 1.46 C- Always use 1 day in the past but should be 86164 (=86400*365.25/366.25)
99     rotationPeriod = 86400. _d 0
100 adcroft 1.2 viscAh = 0.D3
101 adcroft 1.58 viscAhGrid = 0.D0
102     viscAhMax = 1.D21
103 adcroft 1.60 viscC2leith = 0.D0
104 adcroft 1.27 viscAstrain = 0.D3
105     viscAtension = 0.D3
106 adcroft 1.2 diffKhT = 0.D3
107     diffKhS = 0.D3
108     viscArDefault = 0.D-3
109     no_slip_sides = .TRUE.
110     no_slip_bottom = .TRUE.
111     diffKrTDefault = 0.D-3
112     diffKrSDefault = 0.D-3
113 adcroft 1.62 diffKrBL79surf = 0.D0
114     diffKrBL79deep = 0.D0
115     diffKrBL79scl = 200.D0
116     diffKrBL79Ho = -2000.D0
117 adcroft 1.2 viscA4 = 0.D11
118 adcroft 1.58 viscA4Grid = 0.D0
119     viscA4Max = 1.D21
120 adcroft 1.60 viscC4leith = 0.D0
121 adcroft 1.2 diffK4T = 0.D11
122     diffK4S = 0.D11
123 adcroft 1.4 cosPower = 0.
124 adcroft 1.2 HeatCapacity_Cp = 3994.D0
125 mlosch 1.37 Cml tAlpha = 2.D-4
126     Cml sBeta = 7.4D-4
127 adcroft 1.2 eosType = 'LINEAR'
128 adcroft 1.1 buoyancyRelation = 'OCEANIC'
129     hFacMin = 1.D0
130     hFacMinDrDefault = 0.D0
131 adcroft 1.12 staggerTimeStep = .FALSE.
132 adcroft 1.1 momViscosity = .TRUE.
133     momAdvection = .TRUE.
134     momForcing = .TRUE.
135     useCoriolis = .TRUE.
136     momPressureForcing = .TRUE.
137     momStepping = .TRUE.
138 adcroft 1.25 vectorInvariantMomentum = .FALSE.
139 adcroft 1.1 tempStepping = .TRUE.
140 jmc 1.35 tempAdvection = .TRUE.
141     tempForcing = .TRUE.
142 adcroft 1.1 saltStepping = .TRUE.
143 jmc 1.35 saltAdvection = .TRUE.
144     saltForcing = .TRUE.
145 heimbach 1.23 tr1Stepping = .FALSE.
146 jmc 1.16 metricTerms = .TRUE.
147 jmc 1.53 useNHMTerms = .FALSE.
148 adcroft 1.1 implicitDiffusion = .FALSE.
149 adcroft 1.5 implicitViscosity = .FALSE.
150 jmc 1.57 momImplVertAdv = .FALSE.
151     tempImplVertAdv = .FALSE.
152     saltImplVertAdv = .FALSE.
153 adcroft 1.2 nonHydrostatic = .FALSE.
154 adcroft 1.42 quasiHydrostatic = .FALSE.
155 adcroft 1.3 globalFiles = .FALSE.
156 dimitri 1.45 useSingleCpuIO = .FALSE.
157 adcroft 1.3 allowFreezing = .FALSE.
158 jmc 1.54 useOldFreezing = .FALSE.
159 adcroft 1.6 ivdc_kappa = 0.D0
160 adcroft 1.12 groundAtK1 = .FALSE.
161     bottomDragLinear = 0.
162     bottomDragQuadratic = 0.
163 heimbach 1.23 usePickupBeforeC35 = .FALSE.
164 jmc 1.65 usePickupBeforeC54 = .FALSE.
165 heimbach 1.23 debugMode = .FALSE.
166     readPickupWithTracer = .FALSE.
167     writePickupWithTracer = .FALSE.
168 adcroft 1.24 tempAdvScheme = 2
169     saltAdvScheme = 2
170     tracerAdvScheme = 2
171 adcroft 1.28 multiDimAdvection = .TRUE.
172 jmc 1.47 useCDscheme = .FALSE.
173 adcroft 1.30 useEnergyConservingCoriolis = .FALSE.
174 adcroft 1.31 useJamartWetPoints = .FALSE.
175 adcroft 1.63 useJamartMomAdv = .FALSE.
176 adcroft 1.61 SadournyCoriolis = .FALSE.
177     upwindVorticity = .FALSE.
178     highOrderVorticity = .FALSE.
179     useAbsVorticity = .FALSE.
180 heimbach 1.50 debugLevel = debLevA
181 jmc 1.33
182     C-- Set (free)surface-related parameters
183     implicitFreeSurface = .TRUE.
184     rigidLid = .FALSE.
185     implicSurfPress = 1.D0
186     implicDiv2DFlow = 1.D0
187     exactConserv = .FALSE.
188     uniformLin_PhiSurf = .TRUE.
189     nonlinFreeSurf = 0
190 jmc 1.46 hFacInf = 0.2 _d 0
191     hFacSup = 2.0 _d 0
192 jmc 1.44 select_rStar = 0
193 jmc 1.33 useRealFreshWaterFlux = .FALSE.
194     temp_EvPrRn = UNSET_RL
195     salt_EvPrRn = 0.
196     trac_EvPrRn = UNSET_RL
197 adcroft 1.1
198 jmc 1.22 C-- Atmospheric physical parameters (e.g.: EOS)
199 jmc 1.49 celsius2K = 273.16 _d 0
200     atm_Po = 1. _d 5
201     atm_Cp = 1004. _d 0
202     atm_Rd = UNSET_RL
203     atm_kappa = 2. _d 0 / 7. _d 0
204 jmc 1.51 atm_Rq = 0. _d 0
205 jmc 1.43 integr_GeoPot = 2
206     selectFindRoSurf = 0
207 jmc 1.22
208 adcroft 1.1 C-- Elliptic solver parameters
209     cg2dMaxIters = 150
210     cg2dTargetResidual = 1.D-7
211 adcroft 1.19 cg2dTargetResWunit = -1.
212 adcroft 1.1 cg2dChkResFreq = 1
213 adcroft 1.2 cg2dpcOffDFac = 0.51D0
214 jmc 1.66 cg2dPreCondFreq = 1
215 adcroft 1.1 cg3dMaxIters = 150
216     cg3dTargetResidual = 1.D-7
217     cg3dChkResFreq = 1
218    
219     C-- Time stepping parameters
220     deltaT = 0.
221     nIter0 = 0
222     startTime = deltaT*float(nIter0)
223 adcroft 1.48 pickupSuff = ' '
224 adcroft 1.2 nTimeSteps = 0
225 adcroft 1.6 nEndIter = nIter0+nTimeSteps
226     endTime = deltaT*float(nEndIter)
227 jmc 1.35 forcing_In_AB = .TRUE.
228 adcroft 1.1 abEps = 0.01
229     pchkPtFreq = deltaT*0
230     chkPtFreq = deltaT*0
231 adcroft 1.2 dumpFreq = deltaT*0
232 heimbach 1.59 adjDumpFreq = deltaT*0
233 adcroft 1.26 diagFreq = deltaT*0
234 adcroft 1.20 monitorFreq = -1.
235 adcroft 1.1 taveFreq = deltaT*0
236 jmc 1.40 tave_lastIter = 0.5 _d 0
237 adcroft 1.1 writeStatePrec = precFloat64
238     writeBinaryPrec = precFloat32
239     readBinaryPrec = precFloat32
240     nCheckLev = 1
241     checkPtSuff(1) = 'ckptA'
242     checkPtSuff(2) = 'ckptB'
243 adcroft 1.6 cAdjFreq = 0.D0
244 adcroft 1.1 tauCD = 0.D0
245     tauThetaClimRelax = 0.D0
246     tauSaltClimRelax = 0.D0
247 heimbach 1.23 tauTr1ClimRelax = 0.D0
248 adcroft 1.1 periodicExternalForcing = .FALSE.
249     externForcingPeriod = 0.
250     externForcingCycle = 0.
251 afe 1.64 tCyl = 0.
252    
253 adcroft 1.1
254     C-- Input files
255     bathyFile = ' '
256 jmc 1.22 topoFile = ' '
257 adcroft 1.1 hydrogSaltFile = ' '
258     hydrogThetaFile = ' '
259     zonalWindFile = ' '
260     meridWindFile = ' '
261     thetaClimFile = ' '
262     saltClimFile = ' '
263 adcroft 1.2 EmPmRfile = ' '
264     surfQfile = ' '
265 heimbach 1.11 surfQswfile = ' '
266 adcroft 1.7 uVelInitFile = ' '
267     vVelInitFile = ' '
268 adcroft 1.9 pSurfInitFile = ' '
269 heimbach 1.17 dQdTFile = ' '
270 mlosch 1.36 ploadFile = ' '
271 heimbach 1.50 mdsioLocalDir = ' '
272 adcroft 1.1
273     C
274     RETURN
275     END

  ViewVC Help
Powered by ViewVC 1.1.22