| 1 |
C $Header: /u/gcmpack/MITgcm_contrib/PRM/multi_comp_setup/cg/code/set_defaults.F,v 1.4 2008/01/08 20:52:27 jmc Exp $ |
| 2 |
C $Name: $ |
| 3 |
|
| 4 |
#include "CPP_OPTIONS.h" |
| 5 |
|
| 6 |
C---+----1----+----2----+----3----+----4----+----5----+----6----+----7-|--+----| |
| 7 |
CBOP |
| 8 |
C !ROUTINE: SET_DEFAULTS |
| 9 |
C !INTERFACE: |
| 10 |
SUBROUTINE SET_DEFAULTS( |
| 11 |
O viscArDefault, diffKrTDefault, diffKrSDefault, |
| 12 |
O hFacMinDrDefault, delRdefault, rkFacDefault, |
| 13 |
I myThid ) |
| 14 |
|
| 15 |
C !DESCRIPTION: |
| 16 |
C Routine to set model "parameter defaults". |
| 17 |
|
| 18 |
C !USES: |
| 19 |
IMPLICIT NONE |
| 20 |
#include "SIZE.h" |
| 21 |
#include "EEPARAMS.h" |
| 22 |
#include "PARAMS.h" |
| 23 |
Cml#include "EOS.h" |
| 24 |
c#include "GRID.h" |
| 25 |
|
| 26 |
C-- |
| 27 |
#include "PARENT_OVERRIDE.h" |
| 28 |
|
| 29 |
C !INPUT/OUTPUT PARAMETERS: |
| 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 |
CEOP |
| 43 |
|
| 44 |
C-- Grid parameters |
| 45 |
C- Vertical gridding |
| 46 |
delRFile = ' ' |
| 47 |
delRcFile = ' ' |
| 48 |
rkFacDefault = 1. _d 0 |
| 49 |
Ro_SeaLevel = 0. |
| 50 |
DO k=1,Nr |
| 51 |
delRdefault(k) = 0. |
| 52 |
ENDDO |
| 53 |
DO k=1,Nr+1 |
| 54 |
delRc(k) = UNSET_RL |
| 55 |
ENDDO |
| 56 |
C- vertical profile |
| 57 |
tRefFile = ' ' |
| 58 |
sRefFile = ' ' |
| 59 |
rhoRefFile = ' ' |
| 60 |
|
| 61 |
C- Horizontal gridding |
| 62 |
delXFile = ' ' |
| 63 |
delYFile = ' ' |
| 64 |
horizGridFile = ' ' |
| 65 |
deepAtmosphere = .FALSE. |
| 66 |
C In cartesian coords distances are in metres |
| 67 |
usingCartesianGrid = .FALSE. |
| 68 |
DO i=1,Nx |
| 69 |
delX(i) = UNSET_RL |
| 70 |
ENDDO |
| 71 |
DO j=1,Ny |
| 72 |
delY(j) = UNSET_RL |
| 73 |
ENDDO |
| 74 |
C In spherical polar distances are in degrees |
| 75 |
usingSphericalPolarGrid = .FALSE. |
| 76 |
phiMin = 0.0 |
| 77 |
thetaMin = 0. |
| 78 |
rSphere = 6370. _d 3 |
| 79 |
C General curvilinear coordinate system |
| 80 |
usingCurvilinearGrid= .FALSE. |
| 81 |
C General cylindrical coordinate system |
| 82 |
usingCylindricalGrid= .FALSE. |
| 83 |
C Coriolis map: |
| 84 |
useConstantF = .FALSE. |
| 85 |
useBetaPlaneF = .FALSE. |
| 86 |
useSphereF = .TRUE. |
| 87 |
use3dCoriolis = .TRUE. |
| 88 |
|
| 89 |
C-- Set default "physical" parameters |
| 90 |
nh_Am2 = 1. _d 0 |
| 91 |
gravity = 9.81 _d 0 |
| 92 |
rhoNil = 999.8 _d 0 |
| 93 |
C-- jmc : the default is to set rhoConstFresh to rhoConst (=rhoNil by default) |
| 94 |
C (so that the default produces same results as before) |
| 95 |
c rhoConstFresh = 999.8 _d 0 |
| 96 |
f0 = 1. _d -4 |
| 97 |
beta = 1. _d -11 |
| 98 |
C- Earth rotation period is 86400*365.25/366.25 (use to be 1.day) |
| 99 |
rotationPeriod = 86164. _d 0 |
| 100 |
viscAh = 0. _d 3 |
| 101 |
viscAhGrid = 0. _d 0 |
| 102 |
viscAhGridMin = 0. _d 0 |
| 103 |
viscAhGridMax = 1. _d 21 |
| 104 |
viscAhMax = 1. _d 21 |
| 105 |
viscAhReMax = 0. _d 0 |
| 106 |
viscC2leith = 0. _d 0 |
| 107 |
viscC2leithD = 0. _d 0 |
| 108 |
viscC2smag = 0. _d 0 |
| 109 |
diffKhT = 0. _d 3 |
| 110 |
diffKhS = 0. _d 3 |
| 111 |
viscArDefault = 0. _d -3 |
| 112 |
no_slip_sides = .TRUE. |
| 113 |
no_slip_bottom = .TRUE. |
| 114 |
sideDragFactor = 2. _d 0 |
| 115 |
bottomDragLinear = 0. |
| 116 |
bottomDragQuadratic = 0. |
| 117 |
smoothAbsFuncRange = 0. _d 0 |
| 118 |
diffKrTDefault = 0. _d -3 |
| 119 |
diffKrSDefault = 0. _d -3 |
| 120 |
diffKrBL79surf = 0. _d 0 |
| 121 |
diffKrBL79deep = 0. _d 0 |
| 122 |
diffKrBL79scl = 200. _d 0 |
| 123 |
diffKrBL79Ho = -2000. _d 0 |
| 124 |
BL79LatVary = 30 |
| 125 |
diffKrBLEQsurf = UNSET_RL |
| 126 |
diffKrBLEQdeep = UNSET_RL |
| 127 |
diffKrBLEQscl = UNSET_RL |
| 128 |
diffKrBLEQHo = UNSET_RL |
| 129 |
viscA4 = 0. _d 11 |
| 130 |
viscA4Grid = 0. _d 0 |
| 131 |
viscA4GridMax = 1. _d 21 |
| 132 |
viscA4GridMin = 0. _d 0 |
| 133 |
viscA4Max = 1. _d 21 |
| 134 |
viscA4ReMax = 0. _d 0 |
| 135 |
viscC4leith = 0. _d 0 |
| 136 |
viscC4leithD = 0. _d 0 |
| 137 |
viscC4smag = 0. _d 0 |
| 138 |
diffK4T = 0. _d 11 |
| 139 |
diffK4S = 0. _d 11 |
| 140 |
cosPower = 0. |
| 141 |
HeatCapacity_Cp = 3994. _d 0 |
| 142 |
Cml tAlpha = 2. _d -4 |
| 143 |
Cml sBeta = 7.4 _d -4 |
| 144 |
eosType = 'LINEAR' |
| 145 |
buoyancyRelation = 'OCEANIC' |
| 146 |
hFacMin = 1. _d 0 |
| 147 |
hFacMinDrDefault = 0. _d 0 |
| 148 |
implicitIntGravWave = .FALSE. |
| 149 |
staggerTimeStep = .FALSE. |
| 150 |
momViscosity = .TRUE. |
| 151 |
momAdvection = .TRUE. |
| 152 |
momForcing = .TRUE. |
| 153 |
useCoriolis = .TRUE. |
| 154 |
momPressureForcing = .TRUE. |
| 155 |
momStepping = .TRUE. |
| 156 |
vectorInvariantMomentum = .FALSE. |
| 157 |
tempStepping = .TRUE. |
| 158 |
tempAdvection = .TRUE. |
| 159 |
tempForcing = .TRUE. |
| 160 |
saltStepping = .TRUE. |
| 161 |
saltAdvection = .TRUE. |
| 162 |
saltForcing = .TRUE. |
| 163 |
metricTerms = .TRUE. |
| 164 |
useNHMTerms = .FALSE. |
| 165 |
useFullLeith = .FALSE. |
| 166 |
useAreaViscLength = .FALSE. |
| 167 |
useStrainTensionVisc= .FALSE. |
| 168 |
implicitDiffusion = .FALSE. |
| 169 |
implicitViscosity = .FALSE. |
| 170 |
momImplVertAdv = .FALSE. |
| 171 |
tempImplVertAdv = .FALSE. |
| 172 |
saltImplVertAdv = .FALSE. |
| 173 |
nonHydrostatic = .FALSE. |
| 174 |
quasiHydrostatic = .FALSE. |
| 175 |
globalFiles = .FALSE. |
| 176 |
useSingleCpuIO = .FALSE. |
| 177 |
allowFreezing = .FALSE. |
| 178 |
useOldFreezing = .FALSE. |
| 179 |
ivdc_kappa = 0. _d 0 |
| 180 |
hMixCriteria = -.8 _d 0 |
| 181 |
usePickupBeforeC54 = .FALSE. |
| 182 |
debugMode = .FALSE. |
| 183 |
tempAdvScheme = 2 |
| 184 |
saltAdvScheme = 2 |
| 185 |
multiDimAdvection = .TRUE. |
| 186 |
useMultiDimAdvec = .FALSE. |
| 187 |
useCDscheme = .FALSE. |
| 188 |
useEnergyConservingCoriolis = .FALSE. |
| 189 |
useJamartWetPoints = .FALSE. |
| 190 |
useJamartMomAdv = .FALSE. |
| 191 |
SadournyCoriolis = .FALSE. |
| 192 |
upwindVorticity = .FALSE. |
| 193 |
highOrderVorticity = .FALSE. |
| 194 |
useAbsVorticity = .FALSE. |
| 195 |
upwindShear = .FALSE. |
| 196 |
selectKEscheme = 0 |
| 197 |
debugLevel = debLevA |
| 198 |
inAdMode = .FALSE. |
| 199 |
inAdExact = .TRUE. |
| 200 |
|
| 201 |
C-- Set (free)surface-related parameters |
| 202 |
implicitFreeSurface = .FALSE. |
| 203 |
rigidLid = .FALSE. |
| 204 |
implicSurfPress = 1. _d 0 |
| 205 |
implicDiv2DFlow = 1. _d 0 |
| 206 |
exactConserv = .FALSE. |
| 207 |
linFSConserveTr = .FALSE. |
| 208 |
uniformLin_PhiSurf = .TRUE. |
| 209 |
nonlinFreeSurf = 0 |
| 210 |
hFacInf = 0.2 _d 0 |
| 211 |
hFacSup = 2.0 _d 0 |
| 212 |
select_rStar = 0 |
| 213 |
useRealFreshWaterFlux = .FALSE. |
| 214 |
temp_EvPrRn = UNSET_RL |
| 215 |
salt_EvPrRn = 0. |
| 216 |
balanceEmPmR = .FALSE. |
| 217 |
balanceQnet = .FALSE. |
| 218 |
balancePrintMean = .FALSE. |
| 219 |
|
| 220 |
C-- Atmospheric physical parameters (e.g.: EOS) |
| 221 |
celsius2K = 273.16 _d 0 |
| 222 |
atm_Po = 1. _d 5 |
| 223 |
atm_Cp = 1004. _d 0 |
| 224 |
atm_Rd = UNSET_RL |
| 225 |
atm_kappa = 2. _d 0 / 7. _d 0 |
| 226 |
atm_Rq = 0. _d 0 |
| 227 |
integr_GeoPot = 2 |
| 228 |
selectFindRoSurf = 0 |
| 229 |
|
| 230 |
C-- Elliptic solver parameters |
| 231 |
cg2dMaxIters = 150 |
| 232 |
cg2dTargetResidual = 1. _d -7 |
| 233 |
cg2dTargetResWunit = -1. |
| 234 |
cg2dChkResFreq = 1 |
| 235 |
cg2dpcOffDFac = 0.51 _d 0 |
| 236 |
cg2dPreCondFreq = 1 |
| 237 |
cg3dMaxIters = 150 |
| 238 |
cg3dTargetResidual = 1. _d -7 |
| 239 |
cg3dChkResFreq = 1 |
| 240 |
|
| 241 |
C-- Time stepping parameters |
| 242 |
deltaT = 0. _d 0 |
| 243 |
deltaTmom = 0. _d 0 |
| 244 |
deltaTfreesurf = 0. _d 0 |
| 245 |
DO k=1,Nr |
| 246 |
dTtracerLev(k) = 0. _d 0 |
| 247 |
ENDDO |
| 248 |
baseTime = 0. _d 0 |
| 249 |
nIter0 = 0 |
| 250 |
startTime = deltaT*float(nIter0) |
| 251 |
pickupSuff = ' ' |
| 252 |
pickupStrictlyMatch = .TRUE. |
| 253 |
nTimeSteps = 0 |
| 254 |
nEndIter = nIter0+nTimeSteps |
| 255 |
endTime = deltaT*float(nEndIter) |
| 256 |
momForcingOutAB = UNSET_I |
| 257 |
tracForcingOutAB = UNSET_I |
| 258 |
momDissip_In_AB = .TRUE. |
| 259 |
doAB_onGtGs = .TRUE. |
| 260 |
abEps = 0.01 _d 0 |
| 261 |
#ifdef ALLOW_ADAMSBASHFORTH_3 |
| 262 |
alph_AB = 0.5 _d 0 |
| 263 |
beta_AB = 5. _d 0 / 12. _d 0 |
| 264 |
startFromPickupAB2= .FALSE. |
| 265 |
#else |
| 266 |
alph_AB = UNSET_RL |
| 267 |
beta_AB = UNSET_RL |
| 268 |
startFromPickupAB2= .TRUE. |
| 269 |
#endif |
| 270 |
pChkPtFreq = deltaT*0 |
| 271 |
chkPtFreq = deltaT*0 |
| 272 |
outputTypesInclusive = .FALSE. |
| 273 |
pickup_read_mdsio = .TRUE. |
| 274 |
pickup_write_mdsio= .TRUE. |
| 275 |
pickup_write_immed= .FALSE. |
| 276 |
dumpFreq = deltaT*0 |
| 277 |
adjDumpFreq = deltaT*0 |
| 278 |
diagFreq = deltaT*0 |
| 279 |
dumpInitAndLast = .TRUE. |
| 280 |
snapshot_mdsio = .TRUE. |
| 281 |
monitorFreq = -1. |
| 282 |
adjMonitorFreq = 0. |
| 283 |
monitorSelect = UNSET_I |
| 284 |
monitor_stdio = .TRUE. |
| 285 |
taveFreq = deltaT*0 |
| 286 |
timeave_mdsio = .TRUE. |
| 287 |
tave_lastIter = 0.5 _d 0 |
| 288 |
writeStatePrec = precFloat64 |
| 289 |
writeBinaryPrec = precFloat32 |
| 290 |
readBinaryPrec = precFloat32 |
| 291 |
cAdjFreq = 0. _d 0 |
| 292 |
tauCD = 0. _d 0 |
| 293 |
tauThetaClimRelax = 0. _d 0 |
| 294 |
tauSaltClimRelax = 0. _d 0 |
| 295 |
tauTr1ClimRelax = 0. _d 0 |
| 296 |
periodicExternalForcing = .FALSE. |
| 297 |
externForcingPeriod = 0. |
| 298 |
externForcingCycle = 0. |
| 299 |
tCylIn = 0. |
| 300 |
tCylOut = 20. |
| 301 |
|
| 302 |
C-- Input files |
| 303 |
bathyFile = ' ' |
| 304 |
topoFile = ' ' |
| 305 |
shelfIceFile = ' ' |
| 306 |
hydrogSaltFile = ' ' |
| 307 |
hydrogThetaFile = ' ' |
| 308 |
diffKrFile = ' ' |
| 309 |
zonalWindFile = ' ' |
| 310 |
meridWindFile = ' ' |
| 311 |
thetaClimFile = ' ' |
| 312 |
saltClimFile = ' ' |
| 313 |
EmPmRfile = ' ' |
| 314 |
saltFluxFile = ' ' |
| 315 |
surfQfile = ' ' |
| 316 |
surfQnetFile = ' ' |
| 317 |
surfQswFile = ' ' |
| 318 |
uVelInitFile = ' ' |
| 319 |
vVelInitFile = ' ' |
| 320 |
pSurfInitFile = ' ' |
| 321 |
dQdTFile = ' ' |
| 322 |
ploadFile = ' ' |
| 323 |
eddyTauxFile = ' ' |
| 324 |
eddyTauyFile = ' ' |
| 325 |
lambdaThetaFile = ' ' |
| 326 |
lambdaSaltFile = ' ' |
| 327 |
mdsioLocalDir = ' ' |
| 328 |
the_run_name = ' ' |
| 329 |
|
| 330 |
C-- |
| 331 |
c usePO_Tendency_Apply_U = .TRUE. |
| 332 |
c usePO_Tendency_Apply_V = .TRUE. |
| 333 |
usePO_Tendency_Apply_U = .FALSE. |
| 334 |
usePO_Tendency_Apply_V = .FALSE. |
| 335 |
usePO_Tendency_Apply_Theta = .TRUE. |
| 336 |
|
| 337 |
RETURN |
| 338 |
END |