/[MITgcm]/MITgcm/model/src/set_defaults.F
ViewVC logotype

Annotation of /MITgcm/model/src/set_defaults.F

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.55 - (hide annotations) (download)
Tue Nov 18 22:59:39 2003 UTC (20 years, 7 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint52d_pre, checkpoint52b_pre, checkpoint52b_post, checkpoint52c_post, checkpoint52d_post, branch-netcdf
Branch point for: netcdf-sm0
Changes since 1.54: +4 -2 lines
change convertEmP2rUnit to rhoConstFresh/rhoConst for ocean in Z. (unchanged
 for ocean-P) and change the default value of rhoConstFresh to rhoConst.

1 jmc 1.55 C $Header: /u/gcmpack/MITgcm/model/src/set_defaults.F,v 1.54 2003/11/13 21:54:11 jmc Exp $
2 heimbach 1.18 C $Name: $
3 adcroft 1.1
4     #include "CPP_OPTIONS.h"
5    
6 cnh 1.29 CBOP
7     C !ROUTINE: SET_DEFAULTS
8     C !INTERFACE:
9 adcroft 1.1 SUBROUTINE SET_DEFAULTS(
10     O viscArDefault, diffKrTDefault, diffKrSDefault,
11 adcroft 1.2 O hFacMinDrDefault, delRdefault, rkFacDefault,
12 adcroft 1.1 I myThid )
13 cnh 1.29
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 adcroft 1.1 IMPLICIT NONE
30     C === Global variables ===
31     #include "SIZE.h"
32     #include "EEPARAMS.h"
33     #include "PARAMS.h"
34 mlosch 1.37 Cml#include "EOS.h"
35 adcroft 1.1 #include "GRID.h"
36    
37 cnh 1.29 C !INPUT/OUTPUT PARAMETERS:
38 adcroft 1.1 C === Routine arguments ===
39     C myThid - Number of this instance of INI_PARMS
40     INTEGER myThid
41     _RL viscArDefault
42     _RL diffKrTDefault
43     _RL diffKrSDefault
44     _RL hFacMinDrDefault
45     _RL delRDefault(Nr)
46 adcroft 1.2 _RS rkFacDefault
47 adcroft 1.1
48 cnh 1.29 C !LOCAL VARIABLES:
49 adcroft 1.1 C === Local variables ===
50     C K, I, J - Loop counters
51     INTEGER K, I, J
52 cnh 1.29 CEOP
53 adcroft 1.1
54     C-- Grid parameters
55     C Vertical gridding
56 adcroft 1.2 rkFacDefault = 1.D0
57     horiVertRatio = 1.D0
58 adcroft 1.12 Ro_SeaLevel = 0.
59 adcroft 1.1 DO k=1,Nr
60 adcroft 1.2 delRdefault(k) = 0.
61 jmc 1.34 ENDDO
62     DO k=1,Nr+1
63     delRc(k) = UNSET_RL
64 adcroft 1.1 ENDDO
65    
66     C Horizontal gridding
67     C In cartesian coords distances are in metres
68     usingCartesianGrid = .TRUE.
69     DO i=1,Nx
70 adcroft 1.8 delX(i) = UNSET_RL
71 adcroft 1.1 ENDDO
72     DO j=1,Ny
73 adcroft 1.8 delY(j) = UNSET_RL
74 adcroft 1.1 ENDDO
75     C In spherical polar distances are in degrees
76     usingSphericalPolarGrid = .FALSE.
77 adcroft 1.2 phiMin = 0.0
78     thetaMin = 0.
79     rSphere = 6370. * 1.D3
80 adcroft 1.19 C General curvilinear coordinate system
81     usingCurvilinearGrid = .FALSE.
82 adcroft 1.1
83     C-- Set default "physical" parameters
84     DO K =1,Nr
85     tRef(K) = 30.D0 - FLOAT( K )
86 mlosch 1.39 Cml sRef(K) = 35.D0
87 adcroft 1.1 ENDDO
88 adcroft 1.2 gravity = 9.81D0
89     rhoNil = 999.8D0
90 jmc 1.55 C-- jmc : the default is to set rhoConstFresh to rhoConst (=rhoNil by default)
91     C (so that the default produces same results as before)
92     c rhoConstFresh = 999.8D0
93 adcroft 1.2 f0 = 1.D-4
94     beta = 1.D-11
95 jmc 1.46 C- Always use 1 day in the past but should be 86164 (=86400*365.25/366.25)
96     rotationPeriod = 86400. _d 0
97 adcroft 1.2 viscAh = 0.D3
98 adcroft 1.27 viscAstrain = 0.D3
99     viscAtension = 0.D3
100 adcroft 1.2 diffKhT = 0.D3
101     diffKhS = 0.D3
102     viscArDefault = 0.D-3
103     no_slip_sides = .TRUE.
104     no_slip_bottom = .TRUE.
105     diffKrTDefault = 0.D-3
106     diffKrSDefault = 0.D-3
107     viscA4 = 0.D11
108     diffK4T = 0.D11
109     diffK4S = 0.D11
110 adcroft 1.4 cosPower = 0.
111 adcroft 1.2 HeatCapacity_Cp = 3994.D0
112 mlosch 1.37 Cml tAlpha = 2.D-4
113     Cml sBeta = 7.4D-4
114 adcroft 1.2 eosType = 'LINEAR'
115 adcroft 1.1 buoyancyRelation = 'OCEANIC'
116     hFacMin = 1.D0
117     hFacMinDrDefault = 0.D0
118 adcroft 1.12 staggerTimeStep = .FALSE.
119 adcroft 1.1 momViscosity = .TRUE.
120     momAdvection = .TRUE.
121     momForcing = .TRUE.
122     useCoriolis = .TRUE.
123     momPressureForcing = .TRUE.
124     momStepping = .TRUE.
125 adcroft 1.25 vectorInvariantMomentum = .FALSE.
126 adcroft 1.1 tempStepping = .TRUE.
127 jmc 1.35 tempAdvection = .TRUE.
128     tempForcing = .TRUE.
129 adcroft 1.1 saltStepping = .TRUE.
130 jmc 1.35 saltAdvection = .TRUE.
131     saltForcing = .TRUE.
132 heimbach 1.23 tr1Stepping = .FALSE.
133 jmc 1.16 metricTerms = .TRUE.
134 jmc 1.53 useNHMTerms = .FALSE.
135 adcroft 1.1 implicitDiffusion = .FALSE.
136 adcroft 1.5 implicitViscosity = .FALSE.
137 adcroft 1.2 nonHydrostatic = .FALSE.
138 adcroft 1.42 quasiHydrostatic = .FALSE.
139 adcroft 1.3 globalFiles = .FALSE.
140 dimitri 1.45 useSingleCpuIO = .FALSE.
141 adcroft 1.3 allowFreezing = .FALSE.
142 jmc 1.54 useOldFreezing = .FALSE.
143 adcroft 1.6 ivdc_kappa = 0.D0
144 adcroft 1.12 groundAtK1 = .FALSE.
145     bottomDragLinear = 0.
146     bottomDragQuadratic = 0.
147 heimbach 1.23 usePickupBeforeC35 = .FALSE.
148     debugMode = .FALSE.
149     readPickupWithTracer = .FALSE.
150     writePickupWithTracer = .FALSE.
151 adcroft 1.24 tempAdvScheme = 2
152     saltAdvScheme = 2
153     tracerAdvScheme = 2
154 adcroft 1.28 multiDimAdvection = .TRUE.
155 jmc 1.47 useCDscheme = .FALSE.
156 adcroft 1.30 useEnergyConservingCoriolis = .FALSE.
157 adcroft 1.31 useJamartWetPoints = .FALSE.
158 heimbach 1.50 debugLevel = debLevA
159 jmc 1.33
160     C-- Set (free)surface-related parameters
161     implicitFreeSurface = .TRUE.
162     rigidLid = .FALSE.
163     implicSurfPress = 1.D0
164     implicDiv2DFlow = 1.D0
165     exactConserv = .FALSE.
166     uniformLin_PhiSurf = .TRUE.
167     nonlinFreeSurf = 0
168 jmc 1.46 hFacInf = 0.2 _d 0
169     hFacSup = 2.0 _d 0
170 jmc 1.44 select_rStar = 0
171 jmc 1.33 useRealFreshWaterFlux = .FALSE.
172     temp_EvPrRn = UNSET_RL
173     salt_EvPrRn = 0.
174     trac_EvPrRn = UNSET_RL
175 adcroft 1.1
176 jmc 1.22 C-- Atmospheric physical parameters (e.g.: EOS)
177 jmc 1.49 celsius2K = 273.16 _d 0
178     atm_Po = 1. _d 5
179     atm_Cp = 1004. _d 0
180     atm_Rd = UNSET_RL
181     atm_kappa = 2. _d 0 / 7. _d 0
182 jmc 1.51 atm_Rq = 0. _d 0
183 jmc 1.43 integr_GeoPot = 2
184     selectFindRoSurf = 0
185 jmc 1.22
186 adcroft 1.1 C-- Elliptic solver parameters
187     cg2dMaxIters = 150
188     cg2dTargetResidual = 1.D-7
189 adcroft 1.19 cg2dTargetResWunit = -1.
190 adcroft 1.1 cg2dChkResFreq = 1
191 adcroft 1.2 cg2dpcOffDFac = 0.51D0
192 adcroft 1.1 cg3dMaxIters = 150
193     cg3dTargetResidual = 1.D-7
194     cg3dChkResFreq = 1
195    
196     C-- Time stepping parameters
197     deltaT = 0.
198     nIter0 = 0
199     startTime = deltaT*float(nIter0)
200 adcroft 1.48 pickupSuff = ' '
201 adcroft 1.2 nTimeSteps = 0
202 adcroft 1.6 nEndIter = nIter0+nTimeSteps
203     endTime = deltaT*float(nEndIter)
204 jmc 1.35 forcing_In_AB = .TRUE.
205 adcroft 1.1 abEps = 0.01
206     pchkPtFreq = deltaT*0
207     chkPtFreq = deltaT*0
208 adcroft 1.2 dumpFreq = deltaT*0
209 adcroft 1.26 diagFreq = deltaT*0
210 adcroft 1.20 monitorFreq = -1.
211 adcroft 1.1 taveFreq = deltaT*0
212 jmc 1.40 tave_lastIter = 0.5 _d 0
213 adcroft 1.1 writeStatePrec = precFloat64
214     writeBinaryPrec = precFloat32
215     readBinaryPrec = precFloat32
216     nCheckLev = 1
217     checkPtSuff(1) = 'ckptA'
218     checkPtSuff(2) = 'ckptB'
219 adcroft 1.6 cAdjFreq = 0.D0
220 adcroft 1.1 tauCD = 0.D0
221     tauThetaClimRelax = 0.D0
222     tauSaltClimRelax = 0.D0
223 heimbach 1.23 tauTr1ClimRelax = 0.D0
224 adcroft 1.1 periodicExternalForcing = .FALSE.
225     externForcingPeriod = 0.
226     externForcingCycle = 0.
227    
228     C-- Input files
229     bathyFile = ' '
230 jmc 1.22 topoFile = ' '
231 adcroft 1.1 hydrogSaltFile = ' '
232     hydrogThetaFile = ' '
233     zonalWindFile = ' '
234     meridWindFile = ' '
235     thetaClimFile = ' '
236     saltClimFile = ' '
237 adcroft 1.2 EmPmRfile = ' '
238     surfQfile = ' '
239 heimbach 1.11 surfQswfile = ' '
240 adcroft 1.7 uVelInitFile = ' '
241     vVelInitFile = ' '
242 adcroft 1.9 pSurfInitFile = ' '
243 heimbach 1.17 dQdTFile = ' '
244 mlosch 1.36 ploadFile = ' '
245 heimbach 1.50 mdsioLocalDir = ' '
246 adcroft 1.1
247     C
248     RETURN
249     END

  ViewVC Help
Powered by ViewVC 1.1.22