/[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.4 by adcroft, Tue Jun 29 18:33:26 1999 UTC revision 1.73 by edhill, Thu Oct 14 21:40:07 2004 UTC
# Line 1  Line 1 
1  C $Header$  C $Header$
2    C $Name$
3    
4  #include "CPP_OPTIONS.h"  #include "CPP_OPTIONS.h"
5    
6    C---+----1----+----2----+----3----+----4----+----5----+----6----+----7-|--+----|
7    CBOP
8    C     !ROUTINE: SET_DEFAULTS
9    C     !INTERFACE:
10        SUBROUTINE SET_DEFAULTS(        SUBROUTINE SET_DEFAULTS(
11       O   viscArDefault, diffKrTDefault, diffKrSDefault,       O   viscArDefault, diffKrTDefault, diffKrSDefault,
12       O   hFacMinDrDefault, delRdefault, rkFacDefault,       O   hFacMinDrDefault, delRdefault, rkFacDefault,
13       I   myThid )       I   myThid )
 C     /==========================================================\  
 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     \==========================================================/  
       IMPLICIT NONE  
14    
15  C     === Global variables ===  C     !DESCRIPTION:
16    C     Routine to set model "parameter defaults".
17    
18    C     !USES:
19          IMPLICIT NONE
20  #include "SIZE.h"  #include "SIZE.h"
21  #include "EEPARAMS.h"  #include "EEPARAMS.h"
22  #include "PARAMS.h"  #include "PARAMS.h"
23    Cml#include "EOS.h"
24  #include "GRID.h"  #include "GRID.h"
 #include "CG2D.h"  
25    
26  C     === Routine arguments ===  C     !INPUT/OUTPUT PARAMETERS:
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 36  C     myThid - Number of this instance o Line 33  C     myThid - Number of this instance o
33        _RL delRDefault(Nr)        _RL delRDefault(Nr)
34        _RS rkFacDefault        _RS rkFacDefault
35    
36  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
40    
41  C--   Grid parameters  C--   Grid parameters
42  C     Vertical gridding  C     Vertical gridding
43        rkFacDefault         = 1.D0        rkFacDefault         = 1.D0
44        horiVertRatio        = 1.D0        horiVertRatio        = 1.D0
45          Ro_SeaLevel = 0.
46        DO k=1,Nr        DO k=1,Nr
47         delRdefault(k) = 0.         delRdefault(k) = 0.
48        ENDDO        ENDDO
49          DO k=1,Nr+1
50           delRc(k) = UNSET_RL
51          ENDDO
52    
53  C     Horizontal gridding  C     Horizontal gridding
54  C     In cartesian coords distances are in metres  C     In cartesian coords distances are in metres
55        usingCartesianGrid = .TRUE.        usingCartesianGrid = .FALSE.
56        DO i=1,Nx        DO i=1,Nx
57         delX(i) = 0.         delX(i) = UNSET_RL
58        ENDDO        ENDDO
59        DO j=1,Ny        DO j=1,Ny
60         delY(j) = 0.         delY(j) = UNSET_RL
61        ENDDO        ENDDO
62  C     In spherical polar distances are in degrees  C     In spherical polar distances are in degrees
63        usingSphericalPolarGrid = .FALSE.        usingSphericalPolarGrid = .FALSE.
64        phiMin               = 0.0        phiMin               = 0.0
65        thetaMin             = 0.        thetaMin             = 0.
66        rSphere              = 6370. * 1.D3        rSphere              = 6370. * 1.D3
67    C     General curvilinear coordinate system
68          usingCurvilinearGrid = .FALSE.
69    C     General cylindrical coordinate system
70          usingCylindricalGrid = .FALSE.
71    
72    
73  C--   Set default "physical" parameters  C--   Set default "physical" parameters
74        DO K =1,Nr        DO K =1,Nr
75         tRef(K) = 30.D0 - FLOAT( K )         tRef(K) = 30.D0 - FLOAT( K )
76    Cml       sRef(K) = 35.D0
77        ENDDO        ENDDO
78        gravity             = 9.81D0        gravity             = 9.81D0
79        rhoNil              = 999.8D0        rhoNil              = 999.8D0
80    C-- jmc : the default is to set rhoConstFresh to rhoConst (=rhoNil by default)
81    C         (so that the default produces same results as before)
82    c     rhoConstFresh       = 999.8D0
83        f0                  = 1.D-4        f0                  = 1.D-4
84        beta                = 1.D-11        beta                = 1.D-11
85    C-    Always use 1 day in the past but should be 86164 (=86400*365.25/366.25)
86          rotationPeriod      = 86400. _d 0
87        viscAh              = 0.D3        viscAh              = 0.D3
88          viscAhGrid          = 0.D0
89          viscAhMax           = 1.D21
90          viscC2leith         = 0.D0
91          viscAstrain         = 0.D3
92          viscAtension        = 0.D3
93        diffKhT             = 0.D3        diffKhT             = 0.D3
94        diffKhS             = 0.D3        diffKhS             = 0.D3
95        viscArDefault       = 0.D-3        viscArDefault       = 0.D-3
# Line 79  C--   Set default "physical" parameters Line 97  C--   Set default "physical" parameters
97        no_slip_bottom      = .TRUE.        no_slip_bottom      = .TRUE.
98        diffKrTDefault      = 0.D-3        diffKrTDefault      = 0.D-3
99        diffKrSDefault      = 0.D-3        diffKrSDefault      = 0.D-3
100          diffKrBL79surf      = 0.D0
101          diffKrBL79deep      = 0.D0
102          diffKrBL79scl       = 200.D0
103          diffKrBL79Ho        = -2000.D0
104        viscA4              = 0.D11        viscA4              = 0.D11
105          viscA4Grid          = 0.D0
106          viscA4Max           = 1.D21
107          viscC4leith         = 0.D0
108        diffK4T             = 0.D11        diffK4T             = 0.D11
109        diffK4S             = 0.D11        diffK4S             = 0.D11
110        cosPower            = 0.        cosPower            = 0.
       GMmaxslope          = 1.D-2  
       GMlength            = 200.D3  
       GMalpha             = 0.D0  
       GMdepth             = 1000.D0  
       GMkbackground       = 0.D0  
       GMmaxval            = 2500.D0  
111        HeatCapacity_Cp     = 3994.D0        HeatCapacity_Cp     = 3994.D0
112        tAlpha              = 2.D-4  Cml      tAlpha              = 2.D-4
113        sBeta               = 7.4D-4  Cml      sBeta               = 7.4D-4
114        eosType             = 'LINEAR'        eosType             = 'LINEAR'
115        buoyancyRelation    = 'OCEANIC'        buoyancyRelation    = 'OCEANIC'
       implicitFreeSurface = .TRUE.  
       rigidLid            = .FALSE.  
116        hFacMin             = 1.D0        hFacMin             = 1.D0
117        hFacMinDrDefault    = 0.D0        hFacMinDrDefault    = 0.D0
118          staggerTimeStep     = .FALSE.
119        momViscosity        = .TRUE.        momViscosity        = .TRUE.
120        momAdvection        = .TRUE.        momAdvection        = .TRUE.
121        momForcing          = .TRUE.        momForcing          = .TRUE.
122        useCoriolis         = .TRUE.        useCoriolis         = .TRUE.
123        momPressureForcing  = .TRUE.        momPressureForcing  = .TRUE.
124        momStepping         = .TRUE.        momStepping         = .TRUE.
125          vectorInvariantMomentum = .FALSE.
126        tempStepping        = .TRUE.        tempStepping        = .TRUE.
127          tempAdvection       = .TRUE.
128          tempForcing         = .TRUE.
129        saltStepping        = .TRUE.        saltStepping        = .TRUE.
130        metricTerms         = .FALSE.        saltAdvection       = .TRUE.
131          saltForcing         = .TRUE.
132          metricTerms         = .TRUE.
133          useNHMTerms         = .FALSE.
134        implicitDiffusion   = .FALSE.        implicitDiffusion   = .FALSE.
135        openBoundaries      = .FALSE.        implicitViscosity   = .FALSE.
136          momImplVertAdv      = .FALSE.
137          tempImplVertAdv     = .FALSE.
138          saltImplVertAdv     = .FALSE.
139        nonHydrostatic      = .FALSE.        nonHydrostatic      = .FALSE.
140          quasiHydrostatic    = .FALSE.
141        globalFiles         = .FALSE.        globalFiles         = .FALSE.
142          useSingleCpuIO      = .FALSE.
143        allowFreezing       = .FALSE.        allowFreezing       = .FALSE.
144          useOldFreezing      = .FALSE.
145          ivdc_kappa          = 0.D0
146          groundAtK1          = .FALSE.
147          bottomDragLinear    = 0.
148          bottomDragQuadratic = 0.
149          usePickupBeforeC35    = .FALSE.
150          usePickupBeforeC54    = .FALSE.
151          debugMode             = .FALSE.
152          readPickupWithTracer  = .FALSE.
153          writePickupWithTracer = .FALSE.
154          tempAdvScheme       = 2
155          saltAdvScheme       = 2
156          tracerAdvScheme     = 2
157          multiDimAdvection   = .TRUE.
158          useCDscheme         = .FALSE.
159          useEnergyConservingCoriolis = .FALSE.
160          useJamartWetPoints  = .FALSE.
161          useJamartMomAdv     = .FALSE.
162          SadournyCoriolis    = .FALSE.
163          upwindVorticity     = .FALSE.
164          highOrderVorticity  = .FALSE.
165          useAbsVorticity     = .FALSE.
166          debugLevel          = debLevA
167    
168    C--   Set (free)surface-related parameters
169          implicitFreeSurface = .TRUE.
170          rigidLid            = .FALSE.
171          implicSurfPress     = 1.D0
172          implicDiv2DFlow     = 1.D0
173          exactConserv        = .FALSE.
174          uniformLin_PhiSurf  = .TRUE.
175          nonlinFreeSurf      = 0
176          hFacInf             = 0.2 _d 0
177          hFacSup             = 2.0 _d 0
178          select_rStar        = 0
179          useRealFreshWaterFlux = .FALSE.
180          temp_EvPrRn = UNSET_RL
181          salt_EvPrRn = 0.
182          trac_EvPrRn = UNSET_RL
183    
184    C--   Atmospheric physical parameters (e.g.: EOS)
185          celsius2K = 273.16 _d 0
186          atm_Po =  1. _d 5
187          atm_Cp = 1004. _d 0
188          atm_Rd = UNSET_RL
189          atm_kappa = 2. _d 0 / 7. _d 0
190          atm_Rq = 0. _d 0
191          integr_GeoPot = 2
192          selectFindRoSurf = 0
193    
194  C--   Elliptic solver parameters  C--   Elliptic solver parameters
195        cg2dMaxIters       = 150        cg2dMaxIters       = 150
196        cg2dTargetResidual = 1.D-7        cg2dTargetResidual = 1.D-7
197          cg2dTargetResWunit = -1.
198        cg2dChkResFreq     = 1        cg2dChkResFreq     = 1
199        cg2dpcOffDFac      = 0.51D0        cg2dpcOffDFac      = 0.51D0
200          cg2dPreCondFreq    = 1
201        cg3dMaxIters       = 150        cg3dMaxIters       = 150
202        cg3dTargetResidual = 1.D-7        cg3dTargetResidual = 1.D-7
203        cg3dChkResFreq     = 1        cg3dChkResFreq     = 1
# Line 126  C--   Time stepping parameters Line 206  C--   Time stepping parameters
206        deltaT            = 0.        deltaT            = 0.
207        nIter0            = 0        nIter0            = 0
208        startTime         = deltaT*float(nIter0)        startTime         = deltaT*float(nIter0)
209          pickupSuff        = ' '
210        nTimeSteps        = 0        nTimeSteps        = 0
211        endTime           = deltaT*float(nTimeSteps)        nEndIter          = nIter0+nTimeSteps
212          endTime           = deltaT*float(nEndIter)
213          forcing_In_AB     = .TRUE.
214        abEps             = 0.01        abEps             = 0.01
215        pchkPtFreq        = deltaT*0        pchkPtFreq        = deltaT*0
216        chkPtFreq         = deltaT*0        chkPtFreq         = deltaT*0
217          pickup_read_mdsio = .TRUE.
218          pickup_write_mdsio= .TRUE.
219          pickup_write_immed= .FALSE.
220          pickup_write_ioinc= .FALSE.
221        dumpFreq          = deltaT*0        dumpFreq          = deltaT*0
222          adjDumpFreq       = deltaT*0
223          diagFreq          = deltaT*0
224          snapshot_mdsio    = .TRUE.
225          snapshot_ioinc    = .FALSE.
226          monitorFreq       = -1.
227          monitor_stdio     = .TRUE.
228          monitor_ioinc     = .FALSE.
229        taveFreq          = deltaT*0        taveFreq          = deltaT*0
230          timeave_mdsio     = .TRUE.
231          timeave_ioinc     = .FALSE.
232          tave_lastIter     = 0.5 _d 0
233        writeStatePrec    = precFloat64        writeStatePrec    = precFloat64
234        writeBinaryPrec   = precFloat32        writeBinaryPrec   = precFloat32
235        readBinaryPrec    = precFloat32        readBinaryPrec    = precFloat32
236        nCheckLev         = 1        nCheckLev         = 1
237        checkPtSuff(1)    = 'ckptA'        checkPtSuff(1)    = 'ckptA'
238        checkPtSuff(2)    = 'ckptB'        checkPtSuff(2)    = 'ckptB'
239        cAdjFreq          = -1.D0        cAdjFreq          =  0.D0
240        tauCD             =  0.D0        tauCD             =  0.D0
241        tauThetaClimRelax =  0.D0        tauThetaClimRelax =  0.D0
242        tauSaltClimRelax  =  0.D0        tauSaltClimRelax  =  0.D0
243          tauTr1ClimRelax   =  0.D0
244        periodicExternalForcing = .FALSE.        periodicExternalForcing = .FALSE.
245        externForcingPeriod     = 0.        externForcingPeriod     = 0.
246        externForcingCycle      = 0.        externForcingCycle      = 0.
247          tCyl              = 0.
248    
249  C--   Input files  C--   Input files
250        bathyFile       = ' '        bathyFile       = ' '
251          topoFile        = ' '
252        hydrogSaltFile  = ' '        hydrogSaltFile  = ' '
253        hydrogThetaFile = ' '        hydrogThetaFile = ' '
254        zonalWindFile   = ' '        zonalWindFile   = ' '
# Line 157  C--   Input files Line 257  C--   Input files
257        saltClimFile    = ' '        saltClimFile    = ' '
258        EmPmRfile       = ' '        EmPmRfile       = ' '
259        surfQfile       = ' '        surfQfile       = ' '
260          surfQnetFile    = ' '
261  C--   OBCS        surfQswFile     = ' '
262        DO I=1,Nx        uVelInitFile    = ' '
263         OB_Jnorth(I)=0        vVelInitFile    = ' '
264         OB_Jsouth(I)=0        pSurfInitFile   = ' '
265        ENDDO        dQdTFile        = ' '
266        DO J=1,Ny        ploadFile       = ' '
267         OB_Ieast(J)=0        mdsioLocalDir   = ' '
        OB_Iwest(J)=0  
       ENDDO  
268    
269  C  C
270        RETURN        RETURN
271        END        END
   

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.73

  ViewVC Help
Powered by ViewVC 1.1.22