/[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.28 - (hide annotations) (download)
Mon Sep 10 01:22:48 2001 UTC (22 years, 9 months ago) by adcroft
Branch: MAIN
CVS Tags: checkpoint40pre9, checkpoint40
Changes since 1.27: +2 -1 lines
Added multi-dimensional form of advection
 o available only for single step schemes (ie. can't be used with ABII)
 o stable for max(cfl_u,cfl_v,cfl_w)<=1  (without cfl_u+cfl_v+cfl_w <=1)
 o selected using multiDimAdvection=.T.  (default)
 o had to hack some existing routines to work on local arrays

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

  ViewVC Help
Powered by ViewVC 1.1.22