/[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.43 - (hide annotations) (download)
Tue Dec 10 02:55:47 2002 UTC (21 years, 6 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint47e_post, checkpoint47c_post, checkpoint48c_pre, checkpoint47d_pre, checkpoint47i_post, checkpoint47d_post, checkpoint47g_post, checkpoint48a_post, checkpoint47j_post, branch-exfmods-tag, checkpoint48c_post, checkpoint47f_post, checkpoint48, checkpoint47h_post
Branch point for: branch-exfmods-curt
Changes since 1.42: +6 -4 lines
 * allows a more accurate definition of Ro_Surf (selectFindRoSurf=1)
   when using P-coordinate; only implemented for atmospheric config.

1 jmc 1.43 C $Header: /u/gcmpack/MITgcm/model/src/set_defaults.F,v 1.42 2002/11/07 21:51:15 adcroft 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.38 gravitySign = 1.D0
89 adcroft 1.2 gravity = 9.81D0
90     rhoNil = 999.8D0
91 mlosch 1.39 rhoConstFresh = 999.8D0
92 adcroft 1.2 f0 = 1.D-4
93     beta = 1.D-11
94 adcroft 1.19 omega = 2.D0 * PI / ( 3600.D0 * 24.D0 )
95 adcroft 1.2 viscAh = 0.D3
96 adcroft 1.27 viscAstrain = 0.D3
97     viscAtension = 0.D3
98 adcroft 1.2 diffKhT = 0.D3
99     diffKhS = 0.D3
100     viscArDefault = 0.D-3
101     no_slip_sides = .TRUE.
102     no_slip_bottom = .TRUE.
103     diffKrTDefault = 0.D-3
104     diffKrSDefault = 0.D-3
105     viscA4 = 0.D11
106     diffK4T = 0.D11
107     diffK4S = 0.D11
108 adcroft 1.4 cosPower = 0.
109 adcroft 1.2 HeatCapacity_Cp = 3994.D0
110 mlosch 1.37 Cml tAlpha = 2.D-4
111     Cml sBeta = 7.4D-4
112 adcroft 1.2 eosType = 'LINEAR'
113 adcroft 1.1 buoyancyRelation = 'OCEANIC'
114     hFacMin = 1.D0
115     hFacMinDrDefault = 0.D0
116 adcroft 1.12 staggerTimeStep = .FALSE.
117 adcroft 1.1 momViscosity = .TRUE.
118     momAdvection = .TRUE.
119     momForcing = .TRUE.
120     useCoriolis = .TRUE.
121     momPressureForcing = .TRUE.
122     momStepping = .TRUE.
123 adcroft 1.25 vectorInvariantMomentum = .FALSE.
124 adcroft 1.1 tempStepping = .TRUE.
125 jmc 1.35 tempAdvection = .TRUE.
126     tempForcing = .TRUE.
127 adcroft 1.1 saltStepping = .TRUE.
128 jmc 1.35 saltAdvection = .TRUE.
129     saltForcing = .TRUE.
130 heimbach 1.23 tr1Stepping = .FALSE.
131 jmc 1.16 metricTerms = .TRUE.
132 adcroft 1.41 useNHMTerms = .TRUE.
133 adcroft 1.1 implicitDiffusion = .FALSE.
134 adcroft 1.5 implicitViscosity = .FALSE.
135 adcroft 1.2 nonHydrostatic = .FALSE.
136 adcroft 1.42 quasiHydrostatic = .FALSE.
137 adcroft 1.3 globalFiles = .FALSE.
138     allowFreezing = .FALSE.
139 adcroft 1.6 ivdc_kappa = 0.D0
140 adcroft 1.12 groundAtK1 = .FALSE.
141     bottomDragLinear = 0.
142     bottomDragQuadratic = 0.
143 heimbach 1.23 usePickupBeforeC35 = .FALSE.
144     debugMode = .FALSE.
145     readPickupWithTracer = .FALSE.
146     writePickupWithTracer = .FALSE.
147 adcroft 1.24 tempAdvScheme = 2
148     saltAdvScheme = 2
149     tracerAdvScheme = 2
150 adcroft 1.28 multiDimAdvection = .TRUE.
151 adcroft 1.30 useEnergyConservingCoriolis = .FALSE.
152 adcroft 1.31 useJamartWetPoints = .FALSE.
153 jmc 1.33
154     C-- Set (free)surface-related parameters
155     implicitFreeSurface = .TRUE.
156     rigidLid = .FALSE.
157     implicSurfPress = 1.D0
158     implicDiv2DFlow = 1.D0
159     exactConserv = .FALSE.
160     uniformLin_PhiSurf = .TRUE.
161     nonlinFreeSurf = 0
162     hFacInf = 1.D0
163     hFacSup = 1.D0
164     useRealFreshWaterFlux = .FALSE.
165     temp_EvPrRn = UNSET_RL
166     salt_EvPrRn = 0.
167     trac_EvPrRn = UNSET_RL
168 adcroft 1.1
169 jmc 1.22 C-- Atmospheric physical parameters (e.g.: EOS)
170 jmc 1.43 atm_Po = 1.D5
171     atm_Cp = 1004.D0
172     atm_Rd = UNSET_RL
173 jmc 1.22 atm_kappa = 2.D0 / 7.D0
174 jmc 1.43 integr_GeoPot = 2
175     selectFindRoSurf = 0
176 jmc 1.22
177 adcroft 1.1 C-- Elliptic solver parameters
178     cg2dMaxIters = 150
179     cg2dTargetResidual = 1.D-7
180 adcroft 1.19 cg2dTargetResWunit = -1.
181 adcroft 1.1 cg2dChkResFreq = 1
182 adcroft 1.2 cg2dpcOffDFac = 0.51D0
183 adcroft 1.1 cg3dMaxIters = 150
184     cg3dTargetResidual = 1.D-7
185     cg3dChkResFreq = 1
186    
187     C-- Time stepping parameters
188     deltaT = 0.
189     nIter0 = 0
190     startTime = deltaT*float(nIter0)
191 adcroft 1.2 nTimeSteps = 0
192 adcroft 1.6 nEndIter = nIter0+nTimeSteps
193     endTime = deltaT*float(nEndIter)
194 jmc 1.35 forcing_In_AB = .TRUE.
195 adcroft 1.1 abEps = 0.01
196     pchkPtFreq = deltaT*0
197     chkPtFreq = deltaT*0
198 adcroft 1.2 dumpFreq = deltaT*0
199 adcroft 1.26 diagFreq = deltaT*0
200 adcroft 1.20 monitorFreq = -1.
201 adcroft 1.1 taveFreq = deltaT*0
202 jmc 1.40 tave_lastIter = 0.5 _d 0
203 adcroft 1.1 writeStatePrec = precFloat64
204     writeBinaryPrec = precFloat32
205     readBinaryPrec = precFloat32
206     nCheckLev = 1
207     checkPtSuff(1) = 'ckptA'
208     checkPtSuff(2) = 'ckptB'
209 adcroft 1.6 cAdjFreq = 0.D0
210 adcroft 1.1 tauCD = 0.D0
211     tauThetaClimRelax = 0.D0
212     tauSaltClimRelax = 0.D0
213 heimbach 1.23 tauTr1ClimRelax = 0.D0
214 adcroft 1.1 periodicExternalForcing = .FALSE.
215     externForcingPeriod = 0.
216     externForcingCycle = 0.
217    
218     C-- Input files
219     bathyFile = ' '
220 jmc 1.22 topoFile = ' '
221 adcroft 1.1 hydrogSaltFile = ' '
222     hydrogThetaFile = ' '
223     zonalWindFile = ' '
224     meridWindFile = ' '
225     thetaClimFile = ' '
226     saltClimFile = ' '
227 adcroft 1.2 EmPmRfile = ' '
228     surfQfile = ' '
229 heimbach 1.11 surfQswfile = ' '
230 adcroft 1.7 uVelInitFile = ' '
231     vVelInitFile = ' '
232 adcroft 1.9 pSurfInitFile = ' '
233 heimbach 1.17 dQdTFile = ' '
234 mlosch 1.36 ploadFile = ' '
235 adcroft 1.1
236     C
237     RETURN
238     END

  ViewVC Help
Powered by ViewVC 1.1.22