/[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.44 - (show annotations) (download)
Fri Jan 24 18:26:53 2003 UTC (21 years, 5 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint48e_post, checkpoint48b_post, checkpoint48d_pre, checkpoint48d_post
Changes since 1.43: +2 -1 lines
first step in r* implementation: add param "select_rStar"

1 C $Header: /u/gcmpack/MITgcm/model/src/set_defaults.F,v 1.43 2002/12/10 02:55:47 jmc Exp $
2 C $Name: $
3
4 #include "CPP_OPTIONS.h"
5
6 CBOP
7 C !ROUTINE: SET_DEFAULTS
8 C !INTERFACE:
9 SUBROUTINE SET_DEFAULTS(
10 O viscArDefault, diffKrTDefault, diffKrSDefault,
11 O hFacMinDrDefault, delRdefault, rkFacDefault,
12 I myThid )
13
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 IMPLICIT NONE
30 C === Global variables ===
31 #include "SIZE.h"
32 #include "EEPARAMS.h"
33 #include "PARAMS.h"
34 Cml#include "EOS.h"
35 #include "GRID.h"
36
37 C !INPUT/OUTPUT PARAMETERS:
38 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 _RS rkFacDefault
47
48 C !LOCAL VARIABLES:
49 C === Local variables ===
50 C K, I, J - Loop counters
51 INTEGER K, I, J
52 CEOP
53
54 C-- Grid parameters
55 C Vertical gridding
56 rkFacDefault = 1.D0
57 horiVertRatio = 1.D0
58 Ro_SeaLevel = 0.
59 DO k=1,Nr
60 delRdefault(k) = 0.
61 ENDDO
62 DO k=1,Nr+1
63 delRc(k) = UNSET_RL
64 ENDDO
65
66 C Horizontal gridding
67 C In cartesian coords distances are in metres
68 usingCartesianGrid = .TRUE.
69 DO i=1,Nx
70 delX(i) = UNSET_RL
71 ENDDO
72 DO j=1,Ny
73 delY(j) = UNSET_RL
74 ENDDO
75 C In spherical polar distances are in degrees
76 usingSphericalPolarGrid = .FALSE.
77 phiMin = 0.0
78 thetaMin = 0.
79 rSphere = 6370. * 1.D3
80 C General curvilinear coordinate system
81 usingCurvilinearGrid = .FALSE.
82
83 C-- Set default "physical" parameters
84 DO K =1,Nr
85 tRef(K) = 30.D0 - FLOAT( K )
86 Cml sRef(K) = 35.D0
87 ENDDO
88 gravitySign = 1.D0
89 gravity = 9.81D0
90 rhoNil = 999.8D0
91 rhoConstFresh = 999.8D0
92 f0 = 1.D-4
93 beta = 1.D-11
94 omega = 2.D0 * PI / ( 3600.D0 * 24.D0 )
95 viscAh = 0.D3
96 viscAstrain = 0.D3
97 viscAtension = 0.D3
98 diffKhT = 0.D3
99 diffKhS = 0.D3
100 viscArDefault = 0.D-3
101 no_slip_sides = .TRUE.
102 no_slip_bottom = .TRUE.
103 diffKrTDefault = 0.D-3
104 diffKrSDefault = 0.D-3
105 viscA4 = 0.D11
106 diffK4T = 0.D11
107 diffK4S = 0.D11
108 cosPower = 0.
109 HeatCapacity_Cp = 3994.D0
110 Cml tAlpha = 2.D-4
111 Cml sBeta = 7.4D-4
112 eosType = 'LINEAR'
113 buoyancyRelation = 'OCEANIC'
114 hFacMin = 1.D0
115 hFacMinDrDefault = 0.D0
116 staggerTimeStep = .FALSE.
117 momViscosity = .TRUE.
118 momAdvection = .TRUE.
119 momForcing = .TRUE.
120 useCoriolis = .TRUE.
121 momPressureForcing = .TRUE.
122 momStepping = .TRUE.
123 vectorInvariantMomentum = .FALSE.
124 tempStepping = .TRUE.
125 tempAdvection = .TRUE.
126 tempForcing = .TRUE.
127 saltStepping = .TRUE.
128 saltAdvection = .TRUE.
129 saltForcing = .TRUE.
130 tr1Stepping = .FALSE.
131 metricTerms = .TRUE.
132 useNHMTerms = .TRUE.
133 implicitDiffusion = .FALSE.
134 implicitViscosity = .FALSE.
135 nonHydrostatic = .FALSE.
136 quasiHydrostatic = .FALSE.
137 globalFiles = .FALSE.
138 allowFreezing = .FALSE.
139 ivdc_kappa = 0.D0
140 groundAtK1 = .FALSE.
141 bottomDragLinear = 0.
142 bottomDragQuadratic = 0.
143 usePickupBeforeC35 = .FALSE.
144 debugMode = .FALSE.
145 readPickupWithTracer = .FALSE.
146 writePickupWithTracer = .FALSE.
147 tempAdvScheme = 2
148 saltAdvScheme = 2
149 tracerAdvScheme = 2
150 multiDimAdvection = .TRUE.
151 useEnergyConservingCoriolis = .FALSE.
152 useJamartWetPoints = .FALSE.
153
154 C-- Set (free)surface-related parameters
155 implicitFreeSurface = .TRUE.
156 rigidLid = .FALSE.
157 implicSurfPress = 1.D0
158 implicDiv2DFlow = 1.D0
159 exactConserv = .FALSE.
160 uniformLin_PhiSurf = .TRUE.
161 nonlinFreeSurf = 0
162 hFacInf = 1.D0
163 hFacSup = 1.D0
164 select_rStar = 0
165 useRealFreshWaterFlux = .FALSE.
166 temp_EvPrRn = UNSET_RL
167 salt_EvPrRn = 0.
168 trac_EvPrRn = UNSET_RL
169
170 C-- Atmospheric physical parameters (e.g.: EOS)
171 atm_Po = 1.D5
172 atm_Cp = 1004.D0
173 atm_Rd = UNSET_RL
174 atm_kappa = 2.D0 / 7.D0
175 integr_GeoPot = 2
176 selectFindRoSurf = 0
177
178 C-- Elliptic solver parameters
179 cg2dMaxIters = 150
180 cg2dTargetResidual = 1.D-7
181 cg2dTargetResWunit = -1.
182 cg2dChkResFreq = 1
183 cg2dpcOffDFac = 0.51D0
184 cg3dMaxIters = 150
185 cg3dTargetResidual = 1.D-7
186 cg3dChkResFreq = 1
187
188 C-- Time stepping parameters
189 deltaT = 0.
190 nIter0 = 0
191 startTime = deltaT*float(nIter0)
192 nTimeSteps = 0
193 nEndIter = nIter0+nTimeSteps
194 endTime = deltaT*float(nEndIter)
195 forcing_In_AB = .TRUE.
196 abEps = 0.01
197 pchkPtFreq = deltaT*0
198 chkPtFreq = deltaT*0
199 dumpFreq = deltaT*0
200 diagFreq = deltaT*0
201 monitorFreq = -1.
202 taveFreq = deltaT*0
203 tave_lastIter = 0.5 _d 0
204 writeStatePrec = precFloat64
205 writeBinaryPrec = precFloat32
206 readBinaryPrec = precFloat32
207 nCheckLev = 1
208 checkPtSuff(1) = 'ckptA'
209 checkPtSuff(2) = 'ckptB'
210 cAdjFreq = 0.D0
211 tauCD = 0.D0
212 tauThetaClimRelax = 0.D0
213 tauSaltClimRelax = 0.D0
214 tauTr1ClimRelax = 0.D0
215 periodicExternalForcing = .FALSE.
216 externForcingPeriod = 0.
217 externForcingCycle = 0.
218
219 C-- Input files
220 bathyFile = ' '
221 topoFile = ' '
222 hydrogSaltFile = ' '
223 hydrogThetaFile = ' '
224 zonalWindFile = ' '
225 meridWindFile = ' '
226 thetaClimFile = ' '
227 saltClimFile = ' '
228 EmPmRfile = ' '
229 surfQfile = ' '
230 surfQswfile = ' '
231 uVelInitFile = ' '
232 vVelInitFile = ' '
233 pSurfInitFile = ' '
234 dQdTFile = ' '
235 ploadFile = ' '
236
237 C
238 RETURN
239 END

  ViewVC Help
Powered by ViewVC 1.1.22