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

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

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


Revision 1.45 - (show annotations) (download)
Tue Feb 18 05:33:54 2003 UTC (21 years, 4 months ago) by dimitri
Branch: MAIN
CVS Tags: checkpoint48i_post, checkpoint50, checkpoint48f_post, checkpoint48h_post, checkpoint49, checkpoint48g_post
Changes since 1.44: +2 -1 lines
Merging from release1_p12:
o Modifications for using pkg/exf with pkg/seaice
  - improved description of the various forcing configurations
  - added basic radiation bulk formulae to pkg/exf
  - units/sign fix for evap computation in exf_getffields.F
  - updated verification/global_with_exf/results/output.txt
o Added pkg/sbo for computing IERS Special Bureau for the Oceans
  (SBO) core products, including oceanic mass, center-of-mass,
  angular, and bottom pressure (see pkg/sbo/README.sbo).
o Lower bound for viscosity/diffusivity in pkg/kpp/kpp_routines.F
  to avoid negative values in shallow regions.
  - updated verification/natl_box/results/output.txt
  - updated verification/lab_sea/results/output.txt
o MPI gather, scatter: eesupp/src/gather_2d.F and scatter_2d.F
o Added useSingleCpuIO option (see PARAMS.h).
o Updated useSingleCpuIO option in mdsio_writefield.F to
  work with multi-field files, e.g., for single-file pickup.
o pkg/seaice:
  - bug fix in growth.F: QNET for no shortwave case
  - added HeffFile for specifying initial sea-ice thickness
  - changed SEAICE_EXTERNAL_FLUXES wind stress implementation
o Added missing /* */ to CPP comments in pkg/seaice, pkg/exf,
  kpp_transport_t.F, forward_step.F, and the_main_loop.F
o pkg/seaice:
  - adjoint-friendly modifications
  - added a SEAICE_WRITE_PICKUP at end of the_model_main.F

1 C $Header: /u/gcmpack/MITgcm/model/src/set_defaults.F,v 1.44 2003/01/24 18:26:53 jmc Exp $
2 C $Name: $
3
4 #include "CPP_OPTIONS.h"
5
6 CBOP
7 C !ROUTINE: SET_DEFAULTS
8 C !INTERFACE:
9 SUBROUTINE SET_DEFAULTS(
10 O viscArDefault, diffKrTDefault, diffKrSDefault,
11 O hFacMinDrDefault, delRdefault, rkFacDefault,
12 I myThid )
13
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 IMPLICIT NONE
30 C === Global variables ===
31 #include "SIZE.h"
32 #include "EEPARAMS.h"
33 #include "PARAMS.h"
34 Cml#include "EOS.h"
35 #include "GRID.h"
36
37 C !INPUT/OUTPUT PARAMETERS:
38 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 _RS rkFacDefault
47
48 C !LOCAL VARIABLES:
49 C === Local variables ===
50 C K, I, J - Loop counters
51 INTEGER K, I, J
52 CEOP
53
54 C-- Grid parameters
55 C Vertical gridding
56 rkFacDefault = 1.D0
57 horiVertRatio = 1.D0
58 Ro_SeaLevel = 0.
59 DO k=1,Nr
60 delRdefault(k) = 0.
61 ENDDO
62 DO k=1,Nr+1
63 delRc(k) = UNSET_RL
64 ENDDO
65
66 C Horizontal gridding
67 C In cartesian coords distances are in metres
68 usingCartesianGrid = .TRUE.
69 DO i=1,Nx
70 delX(i) = UNSET_RL
71 ENDDO
72 DO j=1,Ny
73 delY(j) = UNSET_RL
74 ENDDO
75 C In spherical polar distances are in degrees
76 usingSphericalPolarGrid = .FALSE.
77 phiMin = 0.0
78 thetaMin = 0.
79 rSphere = 6370. * 1.D3
80 C General curvilinear coordinate system
81 usingCurvilinearGrid = .FALSE.
82
83 C-- Set default "physical" parameters
84 DO K =1,Nr
85 tRef(K) = 30.D0 - FLOAT( K )
86 Cml sRef(K) = 35.D0
87 ENDDO
88 gravitySign = 1.D0
89 gravity = 9.81D0
90 rhoNil = 999.8D0
91 rhoConstFresh = 999.8D0
92 f0 = 1.D-4
93 beta = 1.D-11
94 omega = 2.D0 * PI / ( 3600.D0 * 24.D0 )
95 viscAh = 0.D3
96 viscAstrain = 0.D3
97 viscAtension = 0.D3
98 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 cosPower = 0.
109 HeatCapacity_Cp = 3994.D0
110 Cml tAlpha = 2.D-4
111 Cml sBeta = 7.4D-4
112 eosType = 'LINEAR'
113 buoyancyRelation = 'OCEANIC'
114 hFacMin = 1.D0
115 hFacMinDrDefault = 0.D0
116 staggerTimeStep = .FALSE.
117 momViscosity = .TRUE.
118 momAdvection = .TRUE.
119 momForcing = .TRUE.
120 useCoriolis = .TRUE.
121 momPressureForcing = .TRUE.
122 momStepping = .TRUE.
123 vectorInvariantMomentum = .FALSE.
124 tempStepping = .TRUE.
125 tempAdvection = .TRUE.
126 tempForcing = .TRUE.
127 saltStepping = .TRUE.
128 saltAdvection = .TRUE.
129 saltForcing = .TRUE.
130 tr1Stepping = .FALSE.
131 metricTerms = .TRUE.
132 useNHMTerms = .TRUE.
133 implicitDiffusion = .FALSE.
134 implicitViscosity = .FALSE.
135 nonHydrostatic = .FALSE.
136 quasiHydrostatic = .FALSE.
137 globalFiles = .FALSE.
138 useSingleCpuIO = .FALSE.
139 allowFreezing = .FALSE.
140 ivdc_kappa = 0.D0
141 groundAtK1 = .FALSE.
142 bottomDragLinear = 0.
143 bottomDragQuadratic = 0.
144 usePickupBeforeC35 = .FALSE.
145 debugMode = .FALSE.
146 readPickupWithTracer = .FALSE.
147 writePickupWithTracer = .FALSE.
148 tempAdvScheme = 2
149 saltAdvScheme = 2
150 tracerAdvScheme = 2
151 multiDimAdvection = .TRUE.
152 useEnergyConservingCoriolis = .FALSE.
153 useJamartWetPoints = .FALSE.
154
155 C-- Set (free)surface-related parameters
156 implicitFreeSurface = .TRUE.
157 rigidLid = .FALSE.
158 implicSurfPress = 1.D0
159 implicDiv2DFlow = 1.D0
160 exactConserv = .FALSE.
161 uniformLin_PhiSurf = .TRUE.
162 nonlinFreeSurf = 0
163 hFacInf = 1.D0
164 hFacSup = 1.D0
165 select_rStar = 0
166 useRealFreshWaterFlux = .FALSE.
167 temp_EvPrRn = UNSET_RL
168 salt_EvPrRn = 0.
169 trac_EvPrRn = UNSET_RL
170
171 C-- Atmospheric physical parameters (e.g.: EOS)
172 atm_Po = 1.D5
173 atm_Cp = 1004.D0
174 atm_Rd = UNSET_RL
175 atm_kappa = 2.D0 / 7.D0
176 integr_GeoPot = 2
177 selectFindRoSurf = 0
178
179 C-- Elliptic solver parameters
180 cg2dMaxIters = 150
181 cg2dTargetResidual = 1.D-7
182 cg2dTargetResWunit = -1.
183 cg2dChkResFreq = 1
184 cg2dpcOffDFac = 0.51D0
185 cg3dMaxIters = 150
186 cg3dTargetResidual = 1.D-7
187 cg3dChkResFreq = 1
188
189 C-- Time stepping parameters
190 deltaT = 0.
191 nIter0 = 0
192 startTime = deltaT*float(nIter0)
193 nTimeSteps = 0
194 nEndIter = nIter0+nTimeSteps
195 endTime = deltaT*float(nEndIter)
196 forcing_In_AB = .TRUE.
197 abEps = 0.01
198 pchkPtFreq = deltaT*0
199 chkPtFreq = deltaT*0
200 dumpFreq = deltaT*0
201 diagFreq = deltaT*0
202 monitorFreq = -1.
203 taveFreq = deltaT*0
204 tave_lastIter = 0.5 _d 0
205 writeStatePrec = precFloat64
206 writeBinaryPrec = precFloat32
207 readBinaryPrec = precFloat32
208 nCheckLev = 1
209 checkPtSuff(1) = 'ckptA'
210 checkPtSuff(2) = 'ckptB'
211 cAdjFreq = 0.D0
212 tauCD = 0.D0
213 tauThetaClimRelax = 0.D0
214 tauSaltClimRelax = 0.D0
215 tauTr1ClimRelax = 0.D0
216 periodicExternalForcing = .FALSE.
217 externForcingPeriod = 0.
218 externForcingCycle = 0.
219
220 C-- Input files
221 bathyFile = ' '
222 topoFile = ' '
223 hydrogSaltFile = ' '
224 hydrogThetaFile = ' '
225 zonalWindFile = ' '
226 meridWindFile = ' '
227 thetaClimFile = ' '
228 saltClimFile = ' '
229 EmPmRfile = ' '
230 surfQfile = ' '
231 surfQswfile = ' '
232 uVelInitFile = ' '
233 vVelInitFile = ' '
234 pSurfInitFile = ' '
235 dQdTFile = ' '
236 ploadFile = ' '
237
238 C
239 RETURN
240 END

  ViewVC Help
Powered by ViewVC 1.1.22