/[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.34 - (hide annotations) (download)
Thu Mar 7 14:09:02 2002 UTC (22 years, 4 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint44h_pre, checkpoint45a_post, checkpoint45b_post, checkpoint45c_post, checkpoint44h_post, checkpoint45
Changes since 1.33: +4 -1 lines
o define cell Center vertical spacing and then put Interface at the middle

1 jmc 1.34 C $Header: /u/gcmpack/MITgcm/model/src/set_defaults.F,v 1.33 2002/02/10 00:35:30 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     #include "GRID.h"
35    
36 cnh 1.29 C !INPUT/OUTPUT PARAMETERS:
37 adcroft 1.1 C === Routine arguments ===
38     C myThid - Number of this instance of INI_PARMS
39     INTEGER myThid
40     _RL viscArDefault
41     _RL diffKrTDefault
42     _RL diffKrSDefault
43     _RL hFacMinDrDefault
44     _RL delRDefault(Nr)
45 adcroft 1.2 _RS rkFacDefault
46 adcroft 1.1
47 cnh 1.29 C !LOCAL VARIABLES:
48 adcroft 1.1 C === Local variables ===
49     C K, I, J - Loop counters
50     INTEGER K, I, J
51 cnh 1.29 CEOP
52 adcroft 1.1
53     C-- Grid parameters
54     C Vertical gridding
55 adcroft 1.2 rkFacDefault = 1.D0
56     horiVertRatio = 1.D0
57 adcroft 1.12 Ro_SeaLevel = 0.
58 adcroft 1.1 DO k=1,Nr
59 adcroft 1.2 delRdefault(k) = 0.
60 jmc 1.34 ENDDO
61     DO k=1,Nr+1
62     delRc(k) = UNSET_RL
63 adcroft 1.1 ENDDO
64    
65     C Horizontal gridding
66     C In cartesian coords distances are in metres
67     usingCartesianGrid = .TRUE.
68     DO i=1,Nx
69 adcroft 1.8 delX(i) = UNSET_RL
70 adcroft 1.1 ENDDO
71     DO j=1,Ny
72 adcroft 1.8 delY(j) = UNSET_RL
73 adcroft 1.1 ENDDO
74     C In spherical polar distances are in degrees
75     usingSphericalPolarGrid = .FALSE.
76 adcroft 1.2 phiMin = 0.0
77     thetaMin = 0.
78     rSphere = 6370. * 1.D3
79 adcroft 1.19 C General curvilinear coordinate system
80     usingCurvilinearGrid = .FALSE.
81 adcroft 1.1
82     C-- Set default "physical" parameters
83     DO K =1,Nr
84     tRef(K) = 30.D0 - FLOAT( K )
85     ENDDO
86 adcroft 1.2 gravity = 9.81D0
87     rhoNil = 999.8D0
88     f0 = 1.D-4
89     beta = 1.D-11
90 adcroft 1.19 omega = 2.D0 * PI / ( 3600.D0 * 24.D0 )
91 adcroft 1.2 viscAh = 0.D3
92 adcroft 1.27 viscAstrain = 0.D3
93     viscAtension = 0.D3
94 adcroft 1.2 diffKhT = 0.D3
95     diffKhS = 0.D3
96     viscArDefault = 0.D-3
97     no_slip_sides = .TRUE.
98     no_slip_bottom = .TRUE.
99     diffKrTDefault = 0.D-3
100     diffKrSDefault = 0.D-3
101     viscA4 = 0.D11
102     diffK4T = 0.D11
103     diffK4S = 0.D11
104 adcroft 1.4 cosPower = 0.
105 adcroft 1.2 HeatCapacity_Cp = 3994.D0
106     tAlpha = 2.D-4
107     sBeta = 7.4D-4
108     eosType = 'LINEAR'
109 adcroft 1.1 buoyancyRelation = 'OCEANIC'
110     hFacMin = 1.D0
111     hFacMinDrDefault = 0.D0
112 adcroft 1.12 staggerTimeStep = .FALSE.
113 adcroft 1.1 momViscosity = .TRUE.
114     momAdvection = .TRUE.
115     momForcing = .TRUE.
116     useCoriolis = .TRUE.
117     momPressureForcing = .TRUE.
118     momStepping = .TRUE.
119 adcroft 1.25 vectorInvariantMomentum = .FALSE.
120 adcroft 1.1 tempStepping = .TRUE.
121     saltStepping = .TRUE.
122 heimbach 1.23 tr1Stepping = .FALSE.
123 jmc 1.16 metricTerms = .TRUE.
124 adcroft 1.1 implicitDiffusion = .FALSE.
125 adcroft 1.5 implicitViscosity = .FALSE.
126 adcroft 1.2 nonHydrostatic = .FALSE.
127 adcroft 1.3 globalFiles = .FALSE.
128     allowFreezing = .FALSE.
129 adcroft 1.6 ivdc_kappa = 0.D0
130 adcroft 1.12 groundAtK1 = .FALSE.
131     bottomDragLinear = 0.
132     bottomDragQuadratic = 0.
133 heimbach 1.23 usePickupBeforeC35 = .FALSE.
134     debugMode = .FALSE.
135     readPickupWithTracer = .FALSE.
136     writePickupWithTracer = .FALSE.
137 adcroft 1.24 tempAdvScheme = 2
138     saltAdvScheme = 2
139     tracerAdvScheme = 2
140 adcroft 1.28 multiDimAdvection = .TRUE.
141 adcroft 1.30 useEnergyConservingCoriolis = .FALSE.
142 adcroft 1.31 useJamartWetPoints = .FALSE.
143 jmc 1.33
144     C-- Set (free)surface-related parameters
145     implicitFreeSurface = .TRUE.
146     rigidLid = .FALSE.
147     implicSurfPress = 1.D0
148     implicDiv2DFlow = 1.D0
149     exactConserv = .FALSE.
150     uniformLin_PhiSurf = .TRUE.
151     nonlinFreeSurf = 0
152     hFacInf = 1.D0
153     hFacSup = 1.D0
154     useRealFreshWaterFlux = .FALSE.
155     temp_EvPrRn = UNSET_RL
156     salt_EvPrRn = 0.
157     trac_EvPrRn = UNSET_RL
158 adcroft 1.1
159 jmc 1.22 C-- Atmospheric physical parameters (e.g.: EOS)
160     atm_po = 1.D5
161     atm_cp = 1004.D0
162     atm_kappa = 2.D0 / 7.D0
163     Integr_GeoPot = 2
164    
165 adcroft 1.1 C-- Elliptic solver parameters
166     cg2dMaxIters = 150
167     cg2dTargetResidual = 1.D-7
168 adcroft 1.19 cg2dTargetResWunit = -1.
169 adcroft 1.1 cg2dChkResFreq = 1
170 adcroft 1.2 cg2dpcOffDFac = 0.51D0
171 adcroft 1.1 cg3dMaxIters = 150
172     cg3dTargetResidual = 1.D-7
173     cg3dChkResFreq = 1
174    
175     C-- Time stepping parameters
176     deltaT = 0.
177     nIter0 = 0
178     startTime = deltaT*float(nIter0)
179 adcroft 1.2 nTimeSteps = 0
180 adcroft 1.6 nEndIter = nIter0+nTimeSteps
181     endTime = deltaT*float(nEndIter)
182 adcroft 1.1 abEps = 0.01
183     pchkPtFreq = deltaT*0
184     chkPtFreq = deltaT*0
185 adcroft 1.2 dumpFreq = deltaT*0
186 adcroft 1.26 diagFreq = deltaT*0
187 adcroft 1.20 monitorFreq = -1.
188 adcroft 1.1 taveFreq = deltaT*0
189     writeStatePrec = precFloat64
190     writeBinaryPrec = precFloat32
191     readBinaryPrec = precFloat32
192     nCheckLev = 1
193     checkPtSuff(1) = 'ckptA'
194     checkPtSuff(2) = 'ckptB'
195 adcroft 1.6 cAdjFreq = 0.D0
196 adcroft 1.1 tauCD = 0.D0
197     tauThetaClimRelax = 0.D0
198     tauSaltClimRelax = 0.D0
199 heimbach 1.23 tauTr1ClimRelax = 0.D0
200 adcroft 1.1 periodicExternalForcing = .FALSE.
201     externForcingPeriod = 0.
202     externForcingCycle = 0.
203    
204     C-- Input files
205     bathyFile = ' '
206 jmc 1.22 topoFile = ' '
207 adcroft 1.1 hydrogSaltFile = ' '
208     hydrogThetaFile = ' '
209     zonalWindFile = ' '
210     meridWindFile = ' '
211     thetaClimFile = ' '
212     saltClimFile = ' '
213 adcroft 1.2 EmPmRfile = ' '
214     surfQfile = ' '
215 heimbach 1.11 surfQswfile = ' '
216 adcroft 1.7 uVelInitFile = ' '
217     vVelInitFile = ' '
218 adcroft 1.9 pSurfInitFile = ' '
219 heimbach 1.17 dQdTFile = ' '
220 adcroft 1.1
221     C
222     RETURN
223     END
224    

  ViewVC Help
Powered by ViewVC 1.1.22