1 |
jmc |
1.22 |
C $Header: /u/gcmpack/models/MITgcmUV/model/src/set_defaults.F,v 1.21 2001/06/06 14:55:45 adcroft Exp $ |
2 |
heimbach |
1.18 |
C $Name: $ |
3 |
adcroft |
1.1 |
|
4 |
|
|
#include "CPP_OPTIONS.h" |
5 |
|
|
|
6 |
|
|
SUBROUTINE SET_DEFAULTS( |
7 |
|
|
O viscArDefault, diffKrTDefault, diffKrSDefault, |
8 |
adcroft |
1.2 |
O hFacMinDrDefault, delRdefault, rkFacDefault, |
9 |
adcroft |
1.1 |
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 |
adcroft |
1.2 |
_RS rkFacDefault |
38 |
adcroft |
1.1 |
|
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 |
adcroft |
1.2 |
rkFacDefault = 1.D0 |
46 |
|
|
horiVertRatio = 1.D0 |
47 |
adcroft |
1.12 |
Ro_SeaLevel = 0. |
48 |
adcroft |
1.1 |
DO k=1,Nr |
49 |
adcroft |
1.2 |
delRdefault(k) = 0. |
50 |
adcroft |
1.1 |
ENDDO |
51 |
|
|
|
52 |
|
|
C Horizontal gridding |
53 |
|
|
C In cartesian coords distances are in metres |
54 |
|
|
usingCartesianGrid = .TRUE. |
55 |
|
|
DO i=1,Nx |
56 |
adcroft |
1.8 |
delX(i) = UNSET_RL |
57 |
adcroft |
1.1 |
ENDDO |
58 |
|
|
DO j=1,Ny |
59 |
adcroft |
1.8 |
delY(j) = UNSET_RL |
60 |
adcroft |
1.1 |
ENDDO |
61 |
|
|
C In spherical polar distances are in degrees |
62 |
|
|
usingSphericalPolarGrid = .FALSE. |
63 |
adcroft |
1.2 |
phiMin = 0.0 |
64 |
|
|
thetaMin = 0. |
65 |
|
|
rSphere = 6370. * 1.D3 |
66 |
adcroft |
1.19 |
C General curvilinear coordinate system |
67 |
|
|
usingCurvilinearGrid = .FALSE. |
68 |
adcroft |
1.1 |
|
69 |
|
|
C-- Set default "physical" parameters |
70 |
|
|
DO K =1,Nr |
71 |
|
|
tRef(K) = 30.D0 - FLOAT( K ) |
72 |
|
|
ENDDO |
73 |
adcroft |
1.2 |
gravity = 9.81D0 |
74 |
|
|
rhoNil = 999.8D0 |
75 |
|
|
f0 = 1.D-4 |
76 |
|
|
beta = 1.D-11 |
77 |
adcroft |
1.19 |
omega = 2.D0 * PI / ( 3600.D0 * 24.D0 ) |
78 |
adcroft |
1.2 |
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 |
adcroft |
1.4 |
cosPower = 0. |
90 |
adcroft |
1.2 |
HeatCapacity_Cp = 3994.D0 |
91 |
|
|
tAlpha = 2.D-4 |
92 |
|
|
sBeta = 7.4D-4 |
93 |
|
|
eosType = 'LINEAR' |
94 |
adcroft |
1.1 |
buoyancyRelation = 'OCEANIC' |
95 |
|
|
implicitFreeSurface = .TRUE. |
96 |
|
|
rigidLid = .FALSE. |
97 |
jmc |
1.15 |
implicSurfPress = 1.D0 |
98 |
|
|
implicDiv2DFlow = 1.D0 |
99 |
adcroft |
1.1 |
hFacMin = 1.D0 |
100 |
|
|
hFacMinDrDefault = 0.D0 |
101 |
adcroft |
1.19 |
exactConserv = .FALSE. |
102 |
jmc |
1.22 |
uniformLin_PhiSurf = .TRUE. |
103 |
|
|
nonlinFreeSurf = 0 |
104 |
adcroft |
1.19 |
hFacInf = 1.D0 |
105 |
|
|
hFacSup = 1.D0 |
106 |
adcroft |
1.12 |
staggerTimeStep = .FALSE. |
107 |
adcroft |
1.1 |
momViscosity = .TRUE. |
108 |
|
|
momAdvection = .TRUE. |
109 |
|
|
momForcing = .TRUE. |
110 |
|
|
useCoriolis = .TRUE. |
111 |
|
|
momPressureForcing = .TRUE. |
112 |
|
|
momStepping = .TRUE. |
113 |
|
|
tempStepping = .TRUE. |
114 |
|
|
saltStepping = .TRUE. |
115 |
jmc |
1.16 |
metricTerms = .TRUE. |
116 |
adcroft |
1.1 |
implicitDiffusion = .FALSE. |
117 |
adcroft |
1.5 |
implicitViscosity = .FALSE. |
118 |
adcroft |
1.2 |
nonHydrostatic = .FALSE. |
119 |
adcroft |
1.3 |
globalFiles = .FALSE. |
120 |
|
|
allowFreezing = .FALSE. |
121 |
adcroft |
1.6 |
ivdc_kappa = 0.D0 |
122 |
adcroft |
1.12 |
groundAtK1 = .FALSE. |
123 |
|
|
zonal_filt_lat = 90. |
124 |
|
|
zonal_filt_sinpow = 2 |
125 |
adcroft |
1.14 |
zonal_filt_cospow = 2 |
126 |
adcroft |
1.12 |
bottomDragLinear = 0. |
127 |
|
|
bottomDragQuadratic = 0. |
128 |
heimbach |
1.18 |
usePickupBeforeC35 = .FALSE. |
129 |
adcroft |
1.21 |
debugMode = .FALSE. |
130 |
adcroft |
1.1 |
|
131 |
jmc |
1.22 |
C-- Atmospheric physical parameters (e.g.: EOS) |
132 |
|
|
atm_po = 1.D5 |
133 |
|
|
atm_cp = 1004.D0 |
134 |
|
|
atm_kappa = 2.D0 / 7.D0 |
135 |
|
|
Integr_GeoPot = 2 |
136 |
|
|
|
137 |
adcroft |
1.1 |
C-- Elliptic solver parameters |
138 |
|
|
cg2dMaxIters = 150 |
139 |
|
|
cg2dTargetResidual = 1.D-7 |
140 |
adcroft |
1.19 |
cg2dTargetResWunit = -1. |
141 |
adcroft |
1.1 |
cg2dChkResFreq = 1 |
142 |
adcroft |
1.2 |
cg2dpcOffDFac = 0.51D0 |
143 |
adcroft |
1.1 |
cg3dMaxIters = 150 |
144 |
|
|
cg3dTargetResidual = 1.D-7 |
145 |
|
|
cg3dChkResFreq = 1 |
146 |
|
|
|
147 |
|
|
C-- Time stepping parameters |
148 |
|
|
deltaT = 0. |
149 |
|
|
nIter0 = 0 |
150 |
|
|
startTime = deltaT*float(nIter0) |
151 |
adcroft |
1.2 |
nTimeSteps = 0 |
152 |
adcroft |
1.6 |
nEndIter = nIter0+nTimeSteps |
153 |
|
|
endTime = deltaT*float(nEndIter) |
154 |
adcroft |
1.1 |
abEps = 0.01 |
155 |
|
|
pchkPtFreq = deltaT*0 |
156 |
|
|
chkPtFreq = deltaT*0 |
157 |
adcroft |
1.2 |
dumpFreq = deltaT*0 |
158 |
adcroft |
1.20 |
monitorFreq = -1. |
159 |
adcroft |
1.1 |
taveFreq = deltaT*0 |
160 |
|
|
writeStatePrec = precFloat64 |
161 |
|
|
writeBinaryPrec = precFloat32 |
162 |
|
|
readBinaryPrec = precFloat32 |
163 |
|
|
nCheckLev = 1 |
164 |
|
|
checkPtSuff(1) = 'ckptA' |
165 |
|
|
checkPtSuff(2) = 'ckptB' |
166 |
adcroft |
1.6 |
cAdjFreq = 0.D0 |
167 |
adcroft |
1.1 |
tauCD = 0.D0 |
168 |
|
|
tauThetaClimRelax = 0.D0 |
169 |
|
|
tauSaltClimRelax = 0.D0 |
170 |
|
|
periodicExternalForcing = .FALSE. |
171 |
|
|
externForcingPeriod = 0. |
172 |
|
|
externForcingCycle = 0. |
173 |
|
|
|
174 |
|
|
C-- Input files |
175 |
|
|
bathyFile = ' ' |
176 |
jmc |
1.22 |
topoFile = ' ' |
177 |
adcroft |
1.1 |
hydrogSaltFile = ' ' |
178 |
|
|
hydrogThetaFile = ' ' |
179 |
|
|
zonalWindFile = ' ' |
180 |
|
|
meridWindFile = ' ' |
181 |
|
|
thetaClimFile = ' ' |
182 |
|
|
saltClimFile = ' ' |
183 |
adcroft |
1.2 |
EmPmRfile = ' ' |
184 |
|
|
surfQfile = ' ' |
185 |
heimbach |
1.11 |
surfQswfile = ' ' |
186 |
adcroft |
1.7 |
uVelInitFile = ' ' |
187 |
|
|
vVelInitFile = ' ' |
188 |
adcroft |
1.9 |
pSurfInitFile = ' ' |
189 |
heimbach |
1.17 |
dQdTFile = ' ' |
190 |
adcroft |
1.1 |
|
191 |
|
|
C |
192 |
|
|
RETURN |
193 |
|
|
END |
194 |
|
|
|