/[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.24 - (show annotations) (download)
Wed Aug 15 15:51:46 2001 UTC (22 years, 10 months ago) by adcroft
Branch: MAIN
Changes since 1.23: +4 -1 lines
Added run-time control of advection schemes.
 - advection scheme determines method of forward integration.
 - unfortunately, we have to use integers in "data" since ENUM_CENTERED_2ND
   doesn't mean anything to fortran
 - defaults are centered second
 - output differs due to these mods! This is due to the g77 optimization.
   I have tested that using -ffloat-store, these mods do not affect
   the output so am confident about changes.

                T           S           U           V
C D M    c        m  s        m  s        m  s        m  s
n p a R  g  m  m  e  .  m  m  e  .  m  m  e  .  m  m  e  .
f n k u  2  i  a  a  d  i  a  a  d  i  a  a  d  i  a  a  d
g d e n  d  n  x  n  .  n  x  n  .  n  x  n  .  n  x  n  .

Y Y Y Y 16 16 16 16 16 16 16 16 16 16 16 16 16 16 22 16 16 pass  adjustment.128x64x1
Y Y Y Y 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 pass  adjustment.cs-32x32x1
Y Y N N -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- N/O   aim.5l_Equatorial_Channel
Y Y Y Y 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 pass  aim.5l_LatLon
Y Y N N -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- N/O   aim.5l_zon-ave
Y Y Y Y 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 22 16 pass  exp0
Y Y Y Y 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 22 16 pass  exp1
Y Y Y Y 13 16 16 16 16 16 16 16 13 16 13 13 13 13 13 13 16 pass  exp2
Y Y Y Y 12 16 16 13 16 16 16 16 16 13 16 16 16 16 13 13 16 FAIL  exp4
Y Y Y Y 16 16 16 16 16 16 16 16 16 16 16 22 16 16 16 22 16 pass  exp5
Y Y Y Y 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 pass  front_relax
Y Y Y Y 16 16 16 16 16 16 16 16 16 16 16 22 16 16 16 11 16 pass  hs94.128x64x5
Y Y Y Y 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 22 16 pass  hs94.1x64x5
Y Y Y Y 14 16 16 16 16 16 16 16 16 16 13 16 16 16 16 16 13 pass  hs94.cs-32x32x5
Y Y Y Y 16 16 16 22 16 16 16 16 16 16 16 22 16 16 16 16 16 pass  internal_wave
Y Y Y Y 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 pass  natl_box
Y Y Y Y 16 16 16 16 16 13 16 13 16 16 16 16 16 16 16 16 16 pass  solid-body.cs-32x32x1

1 C $Header: /u/gcmpack/models/MITgcmUV/model/src/set_defaults.F,v 1.23 2001/07/13 14:26:57 heimbach Exp $
2 C $Name: $
3
4 #include "CPP_OPTIONS.h"
5
6 SUBROUTINE SET_DEFAULTS(
7 O viscArDefault, diffKrTDefault, diffKrSDefault,
8 O hFacMinDrDefault, delRdefault, rkFacDefault,
9 I myThid )
10 C /==========================================================\
11 C | SUBROUTINE SET_DEFAULTS |
12 C | o Routine to set model "parameters" |
13 C |==========================================================|
14 C | Notes: |
15 C | ====== |
16 C | The present version of this routine is a place-holder. |
17 C | A production version needs to handle parameters from an |
18 C | external file and possibly reading in some initial field |
19 C | values. |
20 C \==========================================================/
21 IMPLICIT NONE
22
23 C === Global variables ===
24 #include "SIZE.h"
25 #include "EEPARAMS.h"
26 #include "PARAMS.h"
27 #include "GRID.h"
28
29 C === Routine arguments ===
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
43 C-- Grid parameters
44 C Vertical gridding
45 rkFacDefault = 1.D0
46 horiVertRatio = 1.D0
47 Ro_SeaLevel = 0.
48 DO k=1,Nr
49 delRdefault(k) = 0.
50 ENDDO
51
52 C Horizontal gridding
53 C In cartesian coords distances are in metres
54 usingCartesianGrid = .TRUE.
55 DO i=1,Nx
56 delX(i) = UNSET_RL
57 ENDDO
58 DO j=1,Ny
59 delY(j) = UNSET_RL
60 ENDDO
61 C In spherical polar distances are in degrees
62 usingSphericalPolarGrid = .FALSE.
63 phiMin = 0.0
64 thetaMin = 0.
65 rSphere = 6370. * 1.D3
66 C General curvilinear coordinate system
67 usingCurvilinearGrid = .FALSE.
68
69 C-- Set default "physical" parameters
70 DO K =1,Nr
71 tRef(K) = 30.D0 - FLOAT( K )
72 ENDDO
73 gravity = 9.81D0
74 rhoNil = 999.8D0
75 f0 = 1.D-4
76 beta = 1.D-11
77 omega = 2.D0 * PI / ( 3600.D0 * 24.D0 )
78 viscAh = 0.D3
79 diffKhT = 0.D3
80 diffKhS = 0.D3
81 viscArDefault = 0.D-3
82 no_slip_sides = .TRUE.
83 no_slip_bottom = .TRUE.
84 diffKrTDefault = 0.D-3
85 diffKrSDefault = 0.D-3
86 viscA4 = 0.D11
87 diffK4T = 0.D11
88 diffK4S = 0.D11
89 cosPower = 0.
90 HeatCapacity_Cp = 3994.D0
91 tAlpha = 2.D-4
92 sBeta = 7.4D-4
93 eosType = 'LINEAR'
94 buoyancyRelation = 'OCEANIC'
95 implicitFreeSurface = .TRUE.
96 rigidLid = .FALSE.
97 implicSurfPress = 1.D0
98 implicDiv2DFlow = 1.D0
99 hFacMin = 1.D0
100 hFacMinDrDefault = 0.D0
101 exactConserv = .FALSE.
102 uniformLin_PhiSurf = .TRUE.
103 nonlinFreeSurf = 0
104 hFacInf = 1.D0
105 hFacSup = 1.D0
106 staggerTimeStep = .FALSE.
107 momViscosity = .TRUE.
108 momAdvection = .TRUE.
109 momForcing = .TRUE.
110 useCoriolis = .TRUE.
111 momPressureForcing = .TRUE.
112 momStepping = .TRUE.
113 tempStepping = .TRUE.
114 saltStepping = .TRUE.
115 tr1Stepping = .FALSE.
116 metricTerms = .TRUE.
117 implicitDiffusion = .FALSE.
118 implicitViscosity = .FALSE.
119 nonHydrostatic = .FALSE.
120 globalFiles = .FALSE.
121 allowFreezing = .FALSE.
122 ivdc_kappa = 0.D0
123 groundAtK1 = .FALSE.
124 zonal_filt_lat = 90.
125 zonal_filt_sinpow = 2
126 zonal_filt_cospow = 2
127 bottomDragLinear = 0.
128 bottomDragQuadratic = 0.
129 usePickupBeforeC35 = .FALSE.
130 debugMode = .FALSE.
131 readPickupWithTracer = .FALSE.
132 writePickupWithTracer = .FALSE.
133 tempAdvScheme = 2
134 saltAdvScheme = 2
135 tracerAdvScheme = 2
136
137 C-- Atmospheric physical parameters (e.g.: EOS)
138 atm_po = 1.D5
139 atm_cp = 1004.D0
140 atm_kappa = 2.D0 / 7.D0
141 Integr_GeoPot = 2
142
143 C-- Elliptic solver parameters
144 cg2dMaxIters = 150
145 cg2dTargetResidual = 1.D-7
146 cg2dTargetResWunit = -1.
147 cg2dChkResFreq = 1
148 cg2dpcOffDFac = 0.51D0
149 cg3dMaxIters = 150
150 cg3dTargetResidual = 1.D-7
151 cg3dChkResFreq = 1
152
153 C-- Time stepping parameters
154 deltaT = 0.
155 nIter0 = 0
156 startTime = deltaT*float(nIter0)
157 nTimeSteps = 0
158 nEndIter = nIter0+nTimeSteps
159 endTime = deltaT*float(nEndIter)
160 abEps = 0.01
161 pchkPtFreq = deltaT*0
162 chkPtFreq = deltaT*0
163 dumpFreq = deltaT*0
164 monitorFreq = -1.
165 taveFreq = deltaT*0
166 writeStatePrec = precFloat64
167 writeBinaryPrec = precFloat32
168 readBinaryPrec = precFloat32
169 nCheckLev = 1
170 checkPtSuff(1) = 'ckptA'
171 checkPtSuff(2) = 'ckptB'
172 cAdjFreq = 0.D0
173 tauCD = 0.D0
174 tauThetaClimRelax = 0.D0
175 tauSaltClimRelax = 0.D0
176 tauTr1ClimRelax = 0.D0
177 periodicExternalForcing = .FALSE.
178 externForcingPeriod = 0.
179 externForcingCycle = 0.
180
181 C-- Input files
182 bathyFile = ' '
183 topoFile = ' '
184 hydrogSaltFile = ' '
185 hydrogThetaFile = ' '
186 zonalWindFile = ' '
187 meridWindFile = ' '
188 thetaClimFile = ' '
189 saltClimFile = ' '
190 EmPmRfile = ' '
191 surfQfile = ' '
192 surfQswfile = ' '
193 uVelInitFile = ' '
194 vVelInitFile = ' '
195 pSurfInitFile = ' '
196 dQdTFile = ' '
197
198 C
199 RETURN
200 END
201

  ViewVC Help
Powered by ViewVC 1.1.22