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

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

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

revision 1.42 by adcroft, Thu Nov 7 21:51:15 2002 UTC revision 1.102 by baylor, Wed Sep 21 23:18:28 2005 UTC
# Line 3  C $Name$ Line 3  C $Name$
3    
4  #include "CPP_OPTIONS.h"  #include "CPP_OPTIONS.h"
5    
6    C---+----1----+----2----+----3----+----4----+----5----+----6----+----7-|--+----|
7  CBOP  CBOP
8  C     !ROUTINE: SET_DEFAULTS  C     !ROUTINE: SET_DEFAULTS
9  C     !INTERFACE:  C     !INTERFACE:
# Line 11  C     !INTERFACE: Line 12  C     !INTERFACE:
12       O   hFacMinDrDefault, delRdefault, rkFacDefault,       O   hFacMinDrDefault, delRdefault, rkFacDefault,
13       I   myThid )       I   myThid )
14    
15  C     !DESCRIPTION: \bv  C     !DESCRIPTION:
16  C     *==========================================================*  C     Routine to set model "parameter defaults".
 C     | SUBROUTINE SET_DEFAULTS                                    
 C     | o Routine to set model "parameters"                        
 C     *==========================================================*  
 C     | Notes:                                                      
 C     | ======                                                      
 C     | The present version of this routine is a place-holder.      
 C     | A production version needs to handle parameters from an    
 C     | external file and possibly reading in some initial field    
 C     | values.                                                    
 C     *==========================================================*  
 C     \ev  
17    
18  C     !USES:  C     !USES:
19        IMPLICIT NONE        IMPLICIT NONE
 C     === Global variables ===  
20  #include "SIZE.h"  #include "SIZE.h"
21  #include "EEPARAMS.h"  #include "EEPARAMS.h"
22  #include "PARAMS.h"  #include "PARAMS.h"
# Line 35  Cml#include "EOS.h" Line 24  Cml#include "EOS.h"
24  #include "GRID.h"  #include "GRID.h"
25    
26  C     !INPUT/OUTPUT PARAMETERS:  C     !INPUT/OUTPUT PARAMETERS:
 C     === Routine arguments ===  
27  C     myThid - Number of this instance of INI_PARMS  C     myThid - Number of this instance of INI_PARMS
28        INTEGER myThid        INTEGER myThid
29        _RL viscArDefault        _RL viscArDefault
# Line 46  C     myThid - Number of this instance o Line 34  C     myThid - Number of this instance o
34        _RS rkFacDefault        _RS rkFacDefault
35    
36  C     !LOCAL VARIABLES:  C     !LOCAL VARIABLES:
 C     === Local variables ===  
37  C     K, I, J - Loop counters  C     K, I, J - Loop counters
38        INTEGER K, I, J        INTEGER K, I, J
39  CEOP  CEOP
# Line 64  C     Vertical gridding Line 51  C     Vertical gridding
51        ENDDO        ENDDO
52    
53  C     Horizontal gridding  C     Horizontal gridding
54          delXFile        = ' '
55          delYFile        = ' '
56          horizGridFile   = ' '
57  C     In cartesian coords distances are in metres  C     In cartesian coords distances are in metres
58        usingCartesianGrid = .TRUE.        usingCartesianGrid = .FALSE.
59        DO i=1,Nx        DO i=1,Nx
60         delX(i) = UNSET_RL         delX(i) = UNSET_RL
61        ENDDO        ENDDO
# Line 79  C     In spherical polar distances are i Line 69  C     In spherical polar distances are i
69        rSphere              = 6370. * 1.D3        rSphere              = 6370. * 1.D3
70  C     General curvilinear coordinate system  C     General curvilinear coordinate system
71        usingCurvilinearGrid = .FALSE.        usingCurvilinearGrid = .FALSE.
72    C     General cylindrical coordinate system
73          usingCylindricalGrid = .FALSE.
74    C     Coriolis map:
75          useConstantF  = .FALSE.
76          useBetaPlaneF = .FALSE.
77          useSphereF    = .FALSE.
78    
79    
80  C--   Set default "physical" parameters  C--   Set default "physical" parameters
81        DO K =1,Nr        DO K =1,Nr
82         tRef(K) = 30.D0 - FLOAT( K )         tRef(K) = 30.D0 - FLOAT( K )
83  Cml       sRef(K) = 35.D0  Cml       sRef(K) = 35.D0
84        ENDDO        ENDDO
85        gravitySign         = 1.D0        nh_Am2              = 1.D0
86        gravity             = 9.81D0        gravity             = 9.81D0
87        rhoNil              = 999.8D0        rhoNil              = 999.8D0
88        rhoConstFresh       = 999.8D0  C-- jmc : the default is to set rhoConstFresh to rhoConst (=rhoNil by default)
89    C         (so that the default produces same results as before)
90    c     rhoConstFresh       = 999.8D0
91        f0                  = 1.D-4        f0                  = 1.D-4
92        beta                = 1.D-11        beta                = 1.D-11
93        omega               = 2.D0 * PI / ( 3600.D0 * 24.D0 )  C-    Always use 1 day in the past but should be 86164 (=86400*365.25/366.25)
94          rotationPeriod      = 86400. _d 0
95        viscAh              = 0.D3        viscAh              = 0.D3
96        viscAstrain         = 0.D3        viscAhGrid          = 0.D0
97        viscAtension        = 0.D3        viscAhGridMin       = 0.D0
98          viscAhGridMax       = 1.D21
99          viscAhMax           = 1.D21
100          viscAhReMax         = 0.D0
101          viscC2leith         = 0.D0
102          viscC2leithD        = 0.D0
103          viscC2smag          = 0.D0
104        diffKhT             = 0.D3        diffKhT             = 0.D3
105        diffKhS             = 0.D3        diffKhS             = 0.D3
106        viscArDefault       = 0.D-3        viscArDefault       = 0.D-3
# Line 102  Cml       sRef(K) = 35.D0 Line 108  Cml       sRef(K) = 35.D0
108        no_slip_bottom      = .TRUE.        no_slip_bottom      = .TRUE.
109        diffKrTDefault      = 0.D-3        diffKrTDefault      = 0.D-3
110        diffKrSDefault      = 0.D-3        diffKrSDefault      = 0.D-3
111          diffKrBL79surf      = 0.D0
112          diffKrBL79deep      = 0.D0
113          diffKrBL79scl       = 200.D0
114          diffKrBL79Ho        = -2000.D0
115        viscA4              = 0.D11        viscA4              = 0.D11
116          viscA4Grid          = 0.D0
117          viscA4GridMax       = 1.D21
118          viscA4GridMin       = 0.D0
119          viscA4Max           = 1.D21
120          viscA4ReMax         = 0.D0
121          viscC4leith         = 0.D0
122          viscC4leithD        = 0.D0
123          viscC4smag          = 0.D0
124        diffK4T             = 0.D11        diffK4T             = 0.D11
125        diffK4S             = 0.D11        diffK4S             = 0.D11
126        cosPower            = 0.        cosPower            = 0.
# Line 127  Cml      sBeta               = 7.4D-4 Line 145  Cml      sBeta               = 7.4D-4
145        saltStepping        = .TRUE.        saltStepping        = .TRUE.
146        saltAdvection       = .TRUE.        saltAdvection       = .TRUE.
147        saltForcing         = .TRUE.        saltForcing         = .TRUE.
       tr1Stepping         = .FALSE.  
148        metricTerms         = .TRUE.        metricTerms         = .TRUE.
149        useNHMTerms         = .TRUE.        useNHMTerms         = .FALSE.
150          useFullLeith        = .FALSE.
151          useAnisotropicViscAGridMax = .FALSE.
152          useStrainTensionVisc = .FALSE.
153        implicitDiffusion   = .FALSE.        implicitDiffusion   = .FALSE.
154        implicitViscosity   = .FALSE.        implicitViscosity   = .FALSE.
155          momImplVertAdv      = .FALSE.
156          tempImplVertAdv     = .FALSE.
157          saltImplVertAdv     = .FALSE.
158        nonHydrostatic      = .FALSE.        nonHydrostatic      = .FALSE.
159        quasiHydrostatic    = .FALSE.        quasiHydrostatic    = .FALSE.
160        globalFiles         = .FALSE.        globalFiles         = .FALSE.
161          useSingleCpuIO      = .FALSE.
162        allowFreezing       = .FALSE.        allowFreezing       = .FALSE.
163          useOldFreezing      = .FALSE.
164        ivdc_kappa          = 0.D0        ivdc_kappa          = 0.D0
       groundAtK1          = .FALSE.  
165        bottomDragLinear    = 0.        bottomDragLinear    = 0.
166        bottomDragQuadratic = 0.        bottomDragQuadratic = 0.
167        usePickupBeforeC35    = .FALSE.        usePickupBeforeC35    = .FALSE.
168          usePickupBeforeC54    = .FALSE.
169        debugMode             = .FALSE.        debugMode             = .FALSE.
       readPickupWithTracer  = .FALSE.  
       writePickupWithTracer = .FALSE.  
170        tempAdvScheme       = 2        tempAdvScheme       = 2
171        saltAdvScheme       = 2        saltAdvScheme       = 2
       tracerAdvScheme     = 2  
172        multiDimAdvection   = .TRUE.        multiDimAdvection   = .TRUE.
173          useCDscheme         = .FALSE.
174        useEnergyConservingCoriolis = .FALSE.        useEnergyConservingCoriolis = .FALSE.
175        useJamartWetPoints  = .FALSE.        useJamartWetPoints  = .FALSE.
176          useJamartMomAdv     = .FALSE.
177          SadournyCoriolis    = .FALSE.
178          upwindVorticity     = .FALSE.
179          highOrderVorticity  = .FALSE.
180          useAbsVorticity     = .FALSE.
181          upwindShear         = .FALSE.
182          debugLevel          = debLevA
183          inAdMode            = .FALSE.
184          inAdExact           = .TRUE.
185    
186  C--   Set (free)surface-related parameters  C--   Set (free)surface-related parameters
187        implicitFreeSurface = .TRUE.        implicitFreeSurface = .FALSE.
188        rigidLid            = .FALSE.        rigidLid            = .FALSE.
189        implicSurfPress     = 1.D0        implicSurfPress     = 1.D0
190        implicDiv2DFlow     = 1.D0        implicDiv2DFlow     = 1.D0
191        exactConserv        = .FALSE.        exactConserv        = .FALSE.
192        uniformLin_PhiSurf  = .TRUE.        uniformLin_PhiSurf  = .TRUE.
193        nonlinFreeSurf      = 0        nonlinFreeSurf      = 0
194        hFacInf             = 1.D0        hFacInf             = 0.2 _d 0
195        hFacSup             = 1.D0        hFacSup             = 2.0 _d 0
196          select_rStar        = 0
197        useRealFreshWaterFlux = .FALSE.        useRealFreshWaterFlux = .FALSE.
198        temp_EvPrRn = UNSET_RL        temp_EvPrRn = UNSET_RL
199        salt_EvPrRn = 0.        salt_EvPrRn = 0.
       trac_EvPrRn = UNSET_RL  
200    
201  C--   Atmospheric physical parameters (e.g.: EOS)  C--   Atmospheric physical parameters (e.g.: EOS)
202        atm_po =  1.D5        celsius2K = 273.16 _d 0
203        atm_cp =  1004.D0        atm_Po =  1. _d 5
204        atm_kappa = 2.D0 / 7.D0        atm_Cp = 1004. _d 0
205        Integr_GeoPot = 2        atm_Rd = UNSET_RL
206          atm_kappa = 2. _d 0 / 7. _d 0
207          atm_Rq = 0. _d 0
208          integr_GeoPot = 2
209          selectFindRoSurf = 0
210    
211  C--   Elliptic solver parameters  C--   Elliptic solver parameters
212        cg2dMaxIters       = 150        cg2dMaxIters       = 150
# Line 178  C--   Elliptic solver parameters Line 214  C--   Elliptic solver parameters
214        cg2dTargetResWunit = -1.        cg2dTargetResWunit = -1.
215        cg2dChkResFreq     = 1        cg2dChkResFreq     = 1
216        cg2dpcOffDFac      = 0.51D0        cg2dpcOffDFac      = 0.51D0
217          cg2dPreCondFreq    = 1
218        cg3dMaxIters       = 150        cg3dMaxIters       = 150
219        cg3dTargetResidual = 1.D-7        cg3dTargetResidual = 1.D-7
220        cg3dChkResFreq     = 1        cg3dChkResFreq     = 1
221    
222  C--   Time stepping parameters  C--   Time stepping parameters
223        deltaT            = 0.        deltaT            = 0. _d 0
224          deltaTmom         = 0. _d 0
225          deltaTfreesurf    = 0. _d 0
226          DO k=1,Nr
227            dTtracerLev(k)  = 0. _d 0
228          ENDDO
229          baseTime          = 0. _d 0
230        nIter0            = 0        nIter0            = 0
231        startTime         = deltaT*float(nIter0)        startTime         = deltaT*float(nIter0)
232          pickupSuff        = ' '
233        nTimeSteps        = 0        nTimeSteps        = 0
234        nEndIter          = nIter0+nTimeSteps        nEndIter          = nIter0+nTimeSteps
235        endTime           = deltaT*float(nEndIter)        endTime           = deltaT*float(nEndIter)
236        forcing_In_AB     = .TRUE.        forcing_In_AB     = .TRUE.
237        abEps             = 0.01        abEps             = 0.01
238    #ifdef ALLOW_ADAMSBASHFORTH_3
239          alph_AB           = 0.5 _d 0
240          beta_AB           = 5. _d 0 / 12. _d 0
241          startFromPickupAB2= .FALSE.
242    #else
243          alph_AB           = UNSET_RL
244          beta_AB           = UNSET_RL
245          startFromPickupAB2= .TRUE.
246    #endif
247        pchkPtFreq        = deltaT*0        pchkPtFreq        = deltaT*0
248        chkPtFreq         = deltaT*0        chkPtFreq         = deltaT*0
249          outputTypesInclusive = .FALSE.
250          pickup_read_mdsio = .TRUE.
251          pickup_write_mdsio= .TRUE.
252          pickup_write_immed= .FALSE.
253        dumpFreq          = deltaT*0        dumpFreq          = deltaT*0
254          adjDumpFreq       = deltaT*0
255        diagFreq          = deltaT*0        diagFreq          = deltaT*0
256          dumpInitAndLast   = .TRUE.
257          snapshot_mdsio    = .TRUE.
258        monitorFreq       = -1.        monitorFreq       = -1.
259          adjMonitorFreq    = 0.
260          monitor_stdio     = .TRUE.
261        taveFreq          = deltaT*0        taveFreq          = deltaT*0
262          timeave_mdsio     = .TRUE.
263        tave_lastIter     = 0.5 _d 0        tave_lastIter     = 0.5 _d 0
264        writeStatePrec    = precFloat64        writeStatePrec    = precFloat64
265        writeBinaryPrec   = precFloat32        writeBinaryPrec   = precFloat32
# Line 212  C--   Time stepping parameters Line 275  C--   Time stepping parameters
275        periodicExternalForcing = .FALSE.        periodicExternalForcing = .FALSE.
276        externForcingPeriod     = 0.        externForcingPeriod     = 0.
277        externForcingCycle      = 0.        externForcingCycle      = 0.
278          tCylIn             = 0.
279          tCylOut            = 20.
280          calendarDumps     = .FALSE.
281    
282  C--   Input files  C--   Input files
283        bathyFile       = ' '        bathyFile       = ' '
# Line 223  C--   Input files Line 289  C--   Input files
289        thetaClimFile   = ' '        thetaClimFile   = ' '
290        saltClimFile    = ' '        saltClimFile    = ' '
291        EmPmRfile       = ' '        EmPmRfile       = ' '
292          saltFluxFile    = ' '
293        surfQfile       = ' '        surfQfile       = ' '
294        surfQswfile     = ' '        surfQnetFile    = ' '
295          surfQswFile     = ' '
296        uVelInitFile    = ' '        uVelInitFile    = ' '
297        vVelInitFile    = ' '        vVelInitFile    = ' '
298        pSurfInitFile   = ' '        pSurfInitFile   = ' '
299        dQdTFile        = ' '        dQdTFile        = ' '
300        ploadFile       = ' '        ploadFile       = ' '
301          eddyTauxFile    = ' '
302          eddyTauyFile    = ' '
303          lambdaThetaFile = ' '
304          lambdaSaltFile  = ' '
305          mdsioLocalDir   = ' '
306    
307  C  C
308        RETURN        RETURN

Legend:
Removed from v.1.42  
changed lines
  Added in v.1.102

  ViewVC Help
Powered by ViewVC 1.1.22