/[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.12 - (hide annotations) (download)
Fri Feb 2 21:04:48 2001 UTC (23 years, 5 months ago) by adcroft
Branch: MAIN
Changes since 1.11: +10 -12 lines
Merged changes from branch "branch-atmos-merge" into MAIN (checkpoint34)
 - substantial modifications to algorithm sequence (dynamics.F)
 - packaged OBCS, Shapiro filter, Zonal filter, Atmospheric Physics

1 adcroft 1.12 C $Header: /u/gcmpack/models/MITgcmUV/model/src/set_defaults.F,v 1.11.2.6 2001/01/30 21:03:00 adcroft Exp $
2 adcroft 1.1
3     #include "CPP_OPTIONS.h"
4    
5     SUBROUTINE SET_DEFAULTS(
6     O viscArDefault, diffKrTDefault, diffKrSDefault,
7 adcroft 1.2 O hFacMinDrDefault, delRdefault, rkFacDefault,
8 adcroft 1.1 I myThid )
9     C /==========================================================\
10     C | SUBROUTINE SET_DEFAULTS |
11     C | o Routine to set model "parameters" |
12     C |==========================================================|
13     C | Notes: |
14     C | ====== |
15     C | The present version of this routine is a place-holder. |
16     C | A production version needs to handle parameters from an |
17     C | external file and possibly reading in some initial field |
18     C | values. |
19     C \==========================================================/
20     IMPLICIT NONE
21    
22     C === Global variables ===
23     #include "SIZE.h"
24     #include "EEPARAMS.h"
25     #include "PARAMS.h"
26     #include "GRID.h"
27     #include "CG2D.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.1
67     C-- Set default "physical" parameters
68     DO K =1,Nr
69     tRef(K) = 30.D0 - FLOAT( K )
70     ENDDO
71 adcroft 1.2 gravity = 9.81D0
72     rhoNil = 999.8D0
73     f0 = 1.D-4
74     beta = 1.D-11
75     viscAh = 0.D3
76     diffKhT = 0.D3
77     diffKhS = 0.D3
78     viscArDefault = 0.D-3
79     no_slip_sides = .TRUE.
80     no_slip_bottom = .TRUE.
81     diffKrTDefault = 0.D-3
82     diffKrSDefault = 0.D-3
83     viscA4 = 0.D11
84     diffK4T = 0.D11
85     diffK4S = 0.D11
86 adcroft 1.4 cosPower = 0.
87 adcroft 1.2 HeatCapacity_Cp = 3994.D0
88     tAlpha = 2.D-4
89     sBeta = 7.4D-4
90     eosType = 'LINEAR'
91 adcroft 1.1 buoyancyRelation = 'OCEANIC'
92     implicitFreeSurface = .TRUE.
93     rigidLid = .FALSE.
94     hFacMin = 1.D0
95     hFacMinDrDefault = 0.D0
96 adcroft 1.12 staggerTimeStep = .FALSE.
97 adcroft 1.1 momViscosity = .TRUE.
98     momAdvection = .TRUE.
99     momForcing = .TRUE.
100     useCoriolis = .TRUE.
101     momPressureForcing = .TRUE.
102     momStepping = .TRUE.
103     tempStepping = .TRUE.
104     saltStepping = .TRUE.
105     metricTerms = .FALSE.
106     implicitDiffusion = .FALSE.
107 adcroft 1.5 implicitViscosity = .FALSE.
108 adcroft 1.2 nonHydrostatic = .FALSE.
109 adcroft 1.3 globalFiles = .FALSE.
110     allowFreezing = .FALSE.
111 adcroft 1.6 ivdc_kappa = 0.D0
112 adcroft 1.12 groundAtK1 = .FALSE.
113     nShap = 0
114     zonal_filt_lat = 90.
115     zonal_filt_sinpow = 2
116     zonal_filt_cospow = 4
117     bottomDragLinear = 0.
118     bottomDragQuadratic = 0.
119 adcroft 1.1
120     C-- Elliptic solver parameters
121     cg2dMaxIters = 150
122     cg2dTargetResidual = 1.D-7
123     cg2dChkResFreq = 1
124 adcroft 1.2 cg2dpcOffDFac = 0.51D0
125 adcroft 1.1 cg3dMaxIters = 150
126     cg3dTargetResidual = 1.D-7
127     cg3dChkResFreq = 1
128    
129     C-- Time stepping parameters
130     deltaT = 0.
131     nIter0 = 0
132     startTime = deltaT*float(nIter0)
133 adcroft 1.2 nTimeSteps = 0
134 adcroft 1.6 nEndIter = nIter0+nTimeSteps
135     endTime = deltaT*float(nEndIter)
136 adcroft 1.1 abEps = 0.01
137     pchkPtFreq = deltaT*0
138     chkPtFreq = deltaT*0
139 adcroft 1.2 dumpFreq = deltaT*0
140 adcroft 1.1 taveFreq = deltaT*0
141     writeStatePrec = precFloat64
142     writeBinaryPrec = precFloat32
143     readBinaryPrec = precFloat32
144     nCheckLev = 1
145     checkPtSuff(1) = 'ckptA'
146     checkPtSuff(2) = 'ckptB'
147 adcroft 1.6 cAdjFreq = 0.D0
148 adcroft 1.1 tauCD = 0.D0
149     tauThetaClimRelax = 0.D0
150     tauSaltClimRelax = 0.D0
151     periodicExternalForcing = .FALSE.
152     externForcingPeriod = 0.
153     externForcingCycle = 0.
154    
155     C-- Input files
156     bathyFile = ' '
157     hydrogSaltFile = ' '
158     hydrogThetaFile = ' '
159     zonalWindFile = ' '
160     meridWindFile = ' '
161     thetaClimFile = ' '
162     saltClimFile = ' '
163 adcroft 1.2 EmPmRfile = ' '
164     surfQfile = ' '
165 heimbach 1.11 surfQswfile = ' '
166 adcroft 1.7 uVelInitFile = ' '
167     vVelInitFile = ' '
168 adcroft 1.9 pSurfInitFile = ' '
169 adcroft 1.1
170     C
171     RETURN
172     END
173    

  ViewVC Help
Powered by ViewVC 1.1.22