/[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.33 - (show annotations) (download)
Sun Feb 10 00:35:30 2002 UTC (22 years, 4 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint44e_post, checkpoint44f_post, chkpt44d_post, checkpoint44e_pre, checkpoint44g_post, release1_final_v1, checkpoint44f_pre
Branch point for: release1_final
Changes since 1.32: +16 -10 lines
add parameters to use real fresh water flux (replace USE_NATURALBCS option)
  with non-linear free-surface.

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

  ViewVC Help
Powered by ViewVC 1.1.22