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