/[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.89 by heimbach, Wed Apr 6 20:18:19 2005 UTC revision 1.124 by dimitri, Thu Apr 5 00:02:49 2007 UTC
# Line 21  C     !USES: Line 21  C     !USES:
21  #include "EEPARAMS.h"  #include "EEPARAMS.h"
22  #include "PARAMS.h"  #include "PARAMS.h"
23  Cml#include "EOS.h"  Cml#include "EOS.h"
24  #include "GRID.h"  c#include "GRID.h"
25    
26  C     !INPUT/OUTPUT PARAMETERS:  C     !INPUT/OUTPUT PARAMETERS:
27  C     myThid - Number of this instance of INI_PARMS  C     myThid - Number of this instance of INI_PARMS
# Line 39  C     K, I, J - Loop counters Line 39  C     K, I, J - Loop counters
39  CEOP  CEOP
40    
41  C--   Grid parameters  C--   Grid parameters
42  C     Vertical gridding  C-    Vertical gridding
43        rkFacDefault         = 1.D0        delRFile            = ' '
44        horiVertRatio        = 1.D0        delRcFile           = ' '
45        Ro_SeaLevel = 0.        rkFacDefault        = 1. _d 0
46          horiVertRatio       = 1. _d 0
47          Ro_SeaLevel         = 0.
48        DO k=1,Nr        DO k=1,Nr
49         delRdefault(k) = 0.         delRdefault(k)     = 0.
50        ENDDO        ENDDO
51        DO k=1,Nr+1        DO k=1,Nr+1
52         delRc(k) = UNSET_RL         delRc(k)           = UNSET_RL
53        ENDDO        ENDDO
54    C-    vertical profile
55  C     Horizontal gridding        tRefFile            = ' '
56          sRefFile            = ' '
57          rhoRefFile          = ' '
58    
59    C-    Horizontal gridding
60          delXFile            = ' '
61          delYFile            = ' '
62          horizGridFile       = ' '
63          deepAtmosphere      = .FALSE.
64  C     In cartesian coords distances are in metres  C     In cartesian coords distances are in metres
65        usingCartesianGrid = .FALSE.        usingCartesianGrid  = .FALSE.
66        DO i=1,Nx        DO i=1,Nx
67         delX(i) = UNSET_RL         delX(i)            = UNSET_RL
68        ENDDO        ENDDO
69        DO j=1,Ny        DO j=1,Ny
70         delY(j) = UNSET_RL         delY(j)            = UNSET_RL
71        ENDDO        ENDDO
72  C     In spherical polar distances are in degrees  C     In spherical polar distances are in degrees
73        usingSphericalPolarGrid = .FALSE.        usingSphericalPolarGrid = .FALSE.
74        phiMin               = 0.0        phiMin              = 0.0
75        thetaMin             = 0.        thetaMin            = 0.
76        rSphere              = 6370. * 1.D3        rSphere             = 6370. _d 3
77  C     General curvilinear coordinate system  C     General curvilinear coordinate system
78        usingCurvilinearGrid = .FALSE.        usingCurvilinearGrid= .FALSE.
79  C     General cylindrical coordinate system  C     General cylindrical coordinate system
80        usingCylindricalGrid = .FALSE.        usingCylindricalGrid= .FALSE.
81  C     Coriolis map:  C     Coriolis map:
82        useConstantF  = .FALSE.        useConstantF        = .FALSE.
83        useBetaPlaneF = .FALSE.        useBetaPlaneF       = .FALSE.
84        useSphereF    = .FALSE.        useSphereF          = .TRUE.
85          use3dCoriolis       = .TRUE.
86    
87  C--   Set default "physical" parameters  C--   Set default "physical" parameters
88        DO K =1,Nr        nh_Am2              = 1. _d 0
89         tRef(K) = 30.D0 - FLOAT( K )        gravity             = 9.81 _d 0
90  Cml       sRef(K) = 35.D0        rhoNil              = 999.8 _d 0
       ENDDO  
       gravity             = 9.81D0  
       rhoNil              = 999.8D0  
91  C-- jmc : the default is to set rhoConstFresh to rhoConst (=rhoNil by default)  C-- jmc : the default is to set rhoConstFresh to rhoConst (=rhoNil by default)
92  C         (so that the default produces same results as before)  C         (so that the default produces same results as before)
93  c     rhoConstFresh       = 999.8D0  c     rhoConstFresh       = 999.8 _d 0
94        f0                  = 1.D-4        f0                  = 1. _d -4
95        beta                = 1.D-11        beta                = 1. _d -11
96  C-    Always use 1 day in the past but should be 86164 (=86400*365.25/366.25)  C-    Earth rotation period is 86400*365.25/366.25 (use to be 1.day)
97        rotationPeriod      = 86400. _d 0        rotationPeriod      = 86164. _d 0
98        viscAh              = 0.D3        viscAh              = 0. _d 3
99        viscAhGrid          = 0.D0        viscAhGrid          = 0. _d 0
100        viscAhGridMin       = 0.D0        viscAhGridMin       = 0. _d 0
101        viscAhGridMax       = 1.D21        viscAhGridMax       = 1. _d 21
102        viscAhMax           = 1.D21        viscAhMax           = 1. _d 21
103        viscC2leith         = 0.D0        viscAhReMax         = 0. _d 0
104        viscC2leithD        = 0.D0        viscC2leith         = 0. _d 0
105        viscC2smag          = 0.D0        viscC2leithD        = 0. _d 0
106        viscAstrain         = 0.D3        viscC2smag          = 0. _d 0
107        viscAtension        = 0.D3        diffKhT             = 0. _d 3
108        diffKhT             = 0.D3        diffKhS             = 0. _d 3
109        diffKhS             = 0.D3        viscArDefault       = 0. _d -3
       viscArDefault       = 0.D-3  
110        no_slip_sides       = .TRUE.        no_slip_sides       = .TRUE.
111        no_slip_bottom      = .TRUE.        no_slip_bottom      = .TRUE.
112        diffKrTDefault      = 0.D-3        sideDragFactor      = 2. _d 0
113        diffKrSDefault      = 0.D-3        bottomDragLinear    = 0.
114        diffKrBL79surf      = 0.D0        bottomDragQuadratic = 0.
115        diffKrBL79deep      = 0.D0        smoothAbsFuncRange  = 0. _d 0
116        diffKrBL79scl       = 200.D0        diffKrTDefault      = 0. _d -3
117        diffKrBL79Ho        = -2000.D0        diffKrSDefault      = 0. _d -3
118        viscA4              = 0.D11        diffKrBL79surf      = 0. _d 0
119        viscA4Grid          = 0.D0        diffKrBL79deep      = 0. _d 0
120        viscA4GridMax       = 0.D0        diffKrBL79scl       = 200. _d 0
121        viscA4GridMin       = 0.D0        diffKrBL79Ho        = -2000. _d 0
122        viscA4Max           = 1.D21        viscA4              = 0. _d 11
123        viscC4leith         = 0.D0        viscA4Grid          = 0. _d 0
124        viscC4leithD        = 0.D0        viscA4GridMax       = 1. _d 21
125        diffK4T             = 0.D11        viscA4GridMin       = 0. _d 0
126        diffK4S             = 0.D11        viscA4Max           = 1. _d 21
127          viscA4ReMax         = 0. _d 0
128          viscC4leith         = 0. _d 0
129          viscC4leithD        = 0. _d 0
130          viscC4smag          = 0. _d 0
131          diffK4T             = 0. _d 11
132          diffK4S             = 0. _d 11
133        cosPower            = 0.        cosPower            = 0.
134        HeatCapacity_Cp     = 3994.D0        HeatCapacity_Cp     = 3994. _d 0
135  Cml      tAlpha              = 2.D-4  Cml      tAlpha              = 2. _d -4
136  Cml      sBeta               = 7.4D-4  Cml      sBeta               = 7.4 _d -4
137        eosType             = 'LINEAR'        eosType             = 'LINEAR'
138        buoyancyRelation    = 'OCEANIC'        buoyancyRelation    = 'OCEANIC'
139        hFacMin             = 1.D0        hFacMin             = 1. _d 0
140        hFacMinDrDefault    = 0.D0        hFacMinDrDefault    = 0. _d 0
141          implicitIntGravWave = .FALSE.
142        staggerTimeStep     = .FALSE.        staggerTimeStep     = .FALSE.
143        momViscosity        = .TRUE.        momViscosity        = .TRUE.
144        momAdvection        = .TRUE.        momAdvection        = .TRUE.
# Line 143  Cml      sBeta               = 7.4D-4 Line 156  Cml      sBeta               = 7.4D-4
156        metricTerms         = .TRUE.        metricTerms         = .TRUE.
157        useNHMTerms         = .FALSE.        useNHMTerms         = .FALSE.
158        useFullLeith        = .FALSE.        useFullLeith        = .FALSE.
159          useAreaViscLength   = .FALSE.
160          useStrainTensionVisc= .FALSE.
161        implicitDiffusion   = .FALSE.        implicitDiffusion   = .FALSE.
162        implicitViscosity   = .FALSE.        implicitViscosity   = .FALSE.
163        momImplVertAdv      = .FALSE.        momImplVertAdv      = .FALSE.
# Line 154  Cml      sBeta               = 7.4D-4 Line 169  Cml      sBeta               = 7.4D-4
169        useSingleCpuIO      = .FALSE.        useSingleCpuIO      = .FALSE.
170        allowFreezing       = .FALSE.        allowFreezing       = .FALSE.
171        useOldFreezing      = .FALSE.        useOldFreezing      = .FALSE.
172        ivdc_kappa          = 0.D0        ivdc_kappa          = 0. _d 0
       groundAtK1          = .FALSE.  
       bottomDragLinear    = 0.  
       bottomDragQuadratic = 0.  
       usePickupBeforeC35    = .FALSE.  
173        usePickupBeforeC54    = .FALSE.        usePickupBeforeC54    = .FALSE.
174        debugMode             = .FALSE.        debugMode             = .FALSE.
       readPickupWithTracer  = .FALSE.  
       writePickupWithTracer = .FALSE.  
175        tempAdvScheme       = 2        tempAdvScheme       = 2
176        saltAdvScheme       = 2        saltAdvScheme       = 2
177        multiDimAdvection   = .TRUE.        multiDimAdvection   = .TRUE.
178          useMultiDimAdvec    = .FALSE.
179        useCDscheme         = .FALSE.        useCDscheme         = .FALSE.
180        useEnergyConservingCoriolis = .FALSE.        useEnergyConservingCoriolis = .FALSE.
181        useJamartWetPoints  = .FALSE.        useJamartWetPoints  = .FALSE.
# Line 174  Cml      sBeta               = 7.4D-4 Line 184  Cml      sBeta               = 7.4D-4
184        upwindVorticity     = .FALSE.        upwindVorticity     = .FALSE.
185        highOrderVorticity  = .FALSE.        highOrderVorticity  = .FALSE.
186        useAbsVorticity     = .FALSE.        useAbsVorticity     = .FALSE.
187          upwindShear         = .FALSE.
188          selectKEscheme      = 0
189        debugLevel          = debLevA        debugLevel          = debLevA
190        inAdMode            = .FALSE.        inAdMode            = .FALSE.
191        inAdExact           = .TRUE.        inAdExact           = .TRUE.
192    
193  C--   Set (free)surface-related parameters  C--   Set (free)surface-related parameters
194        implicitFreeSurface = .TRUE.        implicitFreeSurface = .FALSE.
195        rigidLid            = .FALSE.        rigidLid            = .FALSE.
196        implicSurfPress     = 1.D0        implicSurfPress     = 1. _d 0
197        implicDiv2DFlow     = 1.D0        implicDiv2DFlow     = 1. _d 0
198        exactConserv        = .FALSE.        exactConserv        = .FALSE.
199          linFSConserveTr     = .FALSE.
200        uniformLin_PhiSurf  = .TRUE.        uniformLin_PhiSurf  = .TRUE.
201        nonlinFreeSurf      = 0        nonlinFreeSurf      = 0
202        hFacInf             = 0.2 _d 0        hFacInf             = 0.2 _d 0
# Line 192  C--   Set (free)surface-related paramete Line 205  C--   Set (free)surface-related paramete
205        useRealFreshWaterFlux = .FALSE.        useRealFreshWaterFlux = .FALSE.
206        temp_EvPrRn = UNSET_RL        temp_EvPrRn = UNSET_RL
207        salt_EvPrRn = 0.        salt_EvPrRn = 0.
208          balanceEmPmR        = .FALSE.
209          balanceQnet         = .FALSE.
210          balancePrintMean    = .FALSE.
211    
212  C--   Atmospheric physical parameters (e.g.: EOS)  C--   Atmospheric physical parameters (e.g.: EOS)
213        celsius2K = 273.16 _d 0        celsius2K = 273.16 _d 0
# Line 205  C--   Atmospheric physical parameters (e Line 221  C--   Atmospheric physical parameters (e
221    
222  C--   Elliptic solver parameters  C--   Elliptic solver parameters
223        cg2dMaxIters       = 150        cg2dMaxIters       = 150
224        cg2dTargetResidual = 1.D-7        cg2dTargetResidual = 1. _d -7
225        cg2dTargetResWunit = -1.        cg2dTargetResWunit = -1.
226        cg2dChkResFreq     = 1        cg2dChkResFreq     = 1
227        cg2dpcOffDFac      = 0.51D0        cg2dpcOffDFac      = 0.51 _d 0
228        cg2dPreCondFreq    = 1        cg2dPreCondFreq    = 1
229        cg3dMaxIters       = 150        cg3dMaxIters       = 150
230        cg3dTargetResidual = 1.D-7        cg3dTargetResidual = 1. _d -7
231        cg3dChkResFreq     = 1        cg3dChkResFreq     = 1
232    
233  C--   Time stepping parameters  C--   Time stepping parameters
# Line 228  C--   Time stepping parameters Line 244  C--   Time stepping parameters
244        nTimeSteps        = 0        nTimeSteps        = 0
245        nEndIter          = nIter0+nTimeSteps        nEndIter          = nIter0+nTimeSteps
246        endTime           = deltaT*float(nEndIter)        endTime           = deltaT*float(nEndIter)
247        forcing_In_AB     = .TRUE.        momForcingOutAB   = UNSET_I
248        abEps             = 0.01        tracForcingOutAB  = UNSET_I
249        pchkPtFreq        = deltaT*0        momDissip_In_AB   = .TRUE.
250          doAB_onGtGs       = .TRUE.
251          abEps             = 0.01 _d 0
252    #ifdef ALLOW_ADAMSBASHFORTH_3
253          alph_AB           = 0.5 _d 0
254          beta_AB           = 5. _d 0 / 12. _d 0
255          startFromPickupAB2= .FALSE.
256    #else
257          alph_AB           = UNSET_RL
258          beta_AB           = UNSET_RL
259          startFromPickupAB2= .TRUE.
260    #endif
261          pChkPtFreq        = deltaT*0
262        chkPtFreq         = deltaT*0        chkPtFreq         = deltaT*0
263        outputTypesInclusive = .FALSE.        outputTypesInclusive = .FALSE.
264        pickup_read_mdsio = .TRUE.        pickup_read_mdsio = .TRUE.
# Line 239  C--   Time stepping parameters Line 267  C--   Time stepping parameters
267        dumpFreq          = deltaT*0        dumpFreq          = deltaT*0
268        adjDumpFreq       = deltaT*0        adjDumpFreq       = deltaT*0
269        diagFreq          = deltaT*0        diagFreq          = deltaT*0
270          dumpInitAndLast   = .TRUE.
271        snapshot_mdsio    = .TRUE.        snapshot_mdsio    = .TRUE.
272        monitorFreq       = -1.        monitorFreq       = -1.
273        adjMonitorFreq    = 0.        adjMonitorFreq    = 0.
# Line 252  C--   Time stepping parameters Line 281  C--   Time stepping parameters
281        nCheckLev         = 1        nCheckLev         = 1
282        checkPtSuff(1)    = 'ckptA'        checkPtSuff(1)    = 'ckptA'
283        checkPtSuff(2)    = 'ckptB'        checkPtSuff(2)    = 'ckptB'
284        cAdjFreq          =  0.D0        cAdjFreq          =  0. _d 0
285        tauCD             =  0.D0        tauCD             =  0. _d 0
286        tauThetaClimRelax =  0.D0        tauThetaClimRelax =  0. _d 0
287        tauSaltClimRelax  =  0.D0        tauSaltClimRelax  =  0. _d 0
288        tauTr1ClimRelax   =  0.D0        tauTr1ClimRelax   =  0. _d 0
289        periodicExternalForcing = .FALSE.        periodicExternalForcing = .FALSE.
290        externForcingPeriod     = 0.        externForcingPeriod     = 0.
291        externForcingCycle      = 0.        externForcingCycle      = 0.
292        tCylIn             = 0.        tCylIn             = 0.
293        tCylOut            = 20.        tCylOut            = 20.
       calendarDumps     = .FALSE.  
294    
295  C--   Input files  C--   Input files
296        bathyFile       = ' '        bathyFile       = ' '
297        topoFile        = ' '        topoFile        = ' '
298          shelfIceFile    = ' '
299        hydrogSaltFile  = ' '        hydrogSaltFile  = ' '
300        hydrogThetaFile = ' '        hydrogThetaFile = ' '
301          diffKr3dSfile   = ' '
302          diffKr3dTfile   = ' '
303        zonalWindFile   = ' '        zonalWindFile   = ' '
304        meridWindFile   = ' '        meridWindFile   = ' '
305        thetaClimFile   = ' '        thetaClimFile   = ' '
# Line 288  C--   Input files Line 319  C--   Input files
319        lambdaThetaFile = ' '        lambdaThetaFile = ' '
320        lambdaSaltFile  = ' '        lambdaSaltFile  = ' '
321        mdsioLocalDir   = ' '        mdsioLocalDir   = ' '
322          the_run_name    = ' '
323    
 C  
324        RETURN        RETURN
325        END        END

Legend:
Removed from v.1.89  
changed lines
  Added in v.1.124

  ViewVC Help
Powered by ViewVC 1.1.22