/[MITgcm]/MITgcm_contrib/PRM/multi_comp_setup/cg/code/set_defaults.F
ViewVC logotype

Annotation of /MITgcm_contrib/PRM/multi_comp_setup/cg/code/set_defaults.F

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


Revision 1.2 - (hide annotations) (download)
Fri Oct 13 15:01:22 2006 UTC (19 years, 10 months ago) by cnh
Branch: MAIN
Changes since 1.1: +4 -4 lines
*** empty log message ***

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

  ViewVC Help
Powered by ViewVC 1.1.22