/[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.32 by jmc, Tue Dec 11 14:57:34 2001 UTC revision 1.70 by edhill, Fri Sep 10 12:19:30 2004 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"
23    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 45  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 58  C     Vertical gridding Line 46  C     Vertical gridding
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) = UNSET_RL         delX(i) = UNSET_RL
58        ENDDO        ENDDO
# Line 75  C     In spherical polar distances are i Line 66  C     In spherical polar distances are i
66        rSphere              = 6370. * 1.D3        rSphere              = 6370. * 1.D3
67  C     General curvilinear coordinate system  C     General curvilinear coordinate system
68        usingCurvilinearGrid = .FALSE.        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        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)
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        viscAstrain         = 0.D3
92        viscAtension        = 0.D3        viscAtension        = 0.D3
93        diffKhT             = 0.D3        diffKhT             = 0.D3
# Line 95  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.
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.  
       implicSurfPress     = 1.D0  
       implicDiv2DFlow     = 1.D0  
116        hFacMin             = 1.D0        hFacMin             = 1.D0
117        hFacMinDrDefault    = 0.D0        hFacMinDrDefault    = 0.D0
       exactConserv        = .FALSE.  
       uniformLin_PhiSurf  = .TRUE.  
       nonlinFreeSurf      = 0  
       hFacInf             = 1.D0  
       hFacSup             = 1.D0  
118        staggerTimeStep     = .FALSE.        staggerTimeStep     = .FALSE.
119        momViscosity        = .TRUE.        momViscosity        = .TRUE.
120        momAdvection        = .TRUE.        momAdvection        = .TRUE.
# Line 124  C--   Set default "physical" parameters Line 124  C--   Set default "physical" parameters
124        momStepping         = .TRUE.        momStepping         = .TRUE.
125        vectorInvariantMomentum = .FALSE.        vectorInvariantMomentum = .FALSE.
126        tempStepping        = .TRUE.        tempStepping        = .TRUE.
127          tempAdvection       = .TRUE.
128          tempForcing         = .TRUE.
129        saltStepping        = .TRUE.        saltStepping        = .TRUE.
130          saltAdvection       = .TRUE.
131          saltForcing         = .TRUE.
132        tr1Stepping         = .FALSE.        tr1Stepping         = .FALSE.
133        metricTerms         = .TRUE.        metricTerms         = .TRUE.
134          useNHMTerms         = .FALSE.
135        implicitDiffusion   = .FALSE.        implicitDiffusion   = .FALSE.
136        implicitViscosity   = .FALSE.        implicitViscosity   = .FALSE.
137          momImplVertAdv      = .FALSE.
138          tempImplVertAdv     = .FALSE.
139          saltImplVertAdv     = .FALSE.
140        nonHydrostatic      = .FALSE.        nonHydrostatic      = .FALSE.
141          quasiHydrostatic    = .FALSE.
142        globalFiles         = .FALSE.        globalFiles         = .FALSE.
143          useSingleCpuIO      = .FALSE.
144        allowFreezing       = .FALSE.        allowFreezing       = .FALSE.
145          useOldFreezing      = .FALSE.
146        ivdc_kappa          = 0.D0        ivdc_kappa          = 0.D0
147        groundAtK1          = .FALSE.        groundAtK1          = .FALSE.
148        bottomDragLinear    = 0.        bottomDragLinear    = 0.
149        bottomDragQuadratic = 0.        bottomDragQuadratic = 0.
150        usePickupBeforeC35    = .FALSE.        usePickupBeforeC35    = .FALSE.
151          usePickupBeforeC54    = .FALSE.
152        debugMode             = .FALSE.        debugMode             = .FALSE.
153        readPickupWithTracer  = .FALSE.        readPickupWithTracer  = .FALSE.
154        writePickupWithTracer = .FALSE.        writePickupWithTracer = .FALSE.
# Line 144  C--   Set default "physical" parameters Line 156  C--   Set default "physical" parameters
156        saltAdvScheme       = 2        saltAdvScheme       = 2
157        tracerAdvScheme     = 2        tracerAdvScheme     = 2
158        multiDimAdvection   = .TRUE.        multiDimAdvection   = .TRUE.
159          useCDscheme         = .FALSE.
160        useEnergyConservingCoriolis = .FALSE.        useEnergyConservingCoriolis = .FALSE.
161        useJamartWetPoints  = .FALSE.        useJamartWetPoints  = .FALSE.
162          useJamartMomAdv     = .FALSE.
163          SadournyCoriolis    = .FALSE.
164          upwindVorticity     = .FALSE.
165          highOrderVorticity  = .FALSE.
166          useAbsVorticity     = .FALSE.
167          debugLevel          = debLevA
168    
169    C--   Set (free)surface-related parameters
170          implicitFreeSurface = .TRUE.
171          rigidLid            = .FALSE.
172          implicSurfPress     = 1.D0
173          implicDiv2DFlow     = 1.D0
174          exactConserv        = .FALSE.
175          uniformLin_PhiSurf  = .TRUE.
176          nonlinFreeSurf      = 0
177          hFacInf             = 0.2 _d 0
178          hFacSup             = 2.0 _d 0
179          select_rStar        = 0
180          useRealFreshWaterFlux = .FALSE.
181          temp_EvPrRn = UNSET_RL
182          salt_EvPrRn = 0.
183          trac_EvPrRn = UNSET_RL
184    
185  C--   Atmospheric physical parameters (e.g.: EOS)  C--   Atmospheric physical parameters (e.g.: EOS)
186        atm_po =  1.D5        celsius2K = 273.16 _d 0
187        atm_cp =  1004.D0        atm_Po =  1. _d 5
188        atm_kappa = 2.D0 / 7.D0        atm_Cp = 1004. _d 0
189        Integr_GeoPot = 2        atm_Rd = UNSET_RL
190          atm_kappa = 2. _d 0 / 7. _d 0
191          atm_Rq = 0. _d 0
192          integr_GeoPot = 2
193          selectFindRoSurf = 0
194    
195  C--   Elliptic solver parameters  C--   Elliptic solver parameters
196        cg2dMaxIters       = 150        cg2dMaxIters       = 150
# Line 159  C--   Elliptic solver parameters Line 198  C--   Elliptic solver parameters
198        cg2dTargetResWunit = -1.        cg2dTargetResWunit = -1.
199        cg2dChkResFreq     = 1        cg2dChkResFreq     = 1
200        cg2dpcOffDFac      = 0.51D0        cg2dpcOffDFac      = 0.51D0
201          cg2dPreCondFreq    = 1
202        cg3dMaxIters       = 150        cg3dMaxIters       = 150
203        cg3dTargetResidual = 1.D-7        cg3dTargetResidual = 1.D-7
204        cg3dChkResFreq     = 1        cg3dChkResFreq     = 1
# Line 167  C--   Time stepping parameters Line 207  C--   Time stepping parameters
207        deltaT            = 0.        deltaT            = 0.
208        nIter0            = 0        nIter0            = 0
209        startTime         = deltaT*float(nIter0)        startTime         = deltaT*float(nIter0)
210          pickupSuff        = ' '
211        nTimeSteps        = 0        nTimeSteps        = 0
212        nEndIter          = nIter0+nTimeSteps        nEndIter          = nIter0+nTimeSteps
213        endTime           = deltaT*float(nEndIter)        endTime           = deltaT*float(nEndIter)
214          forcing_In_AB     = .TRUE.
215        abEps             = 0.01        abEps             = 0.01
216        pchkPtFreq        = deltaT*0        pchkPtFreq        = deltaT*0
217        chkPtFreq         = deltaT*0        chkPtFreq         = deltaT*0
218          pickup_read_mdsio = .TRUE.
219          pickup_write_mdsio= .TRUE.
220          pickup_write_immed= .FALSE.
221        dumpFreq          = deltaT*0        dumpFreq          = deltaT*0
222          adjDumpFreq       = deltaT*0
223        diagFreq          = deltaT*0        diagFreq          = deltaT*0
224          snapshot_mdsio    = .TRUE.
225        monitorFreq       = -1.        monitorFreq       = -1.
226          monitor_mdsio     = .TRUE.
227        taveFreq          = deltaT*0        taveFreq          = deltaT*0
228          timeave_mdsio     = .TRUE.
229          tave_lastIter     = 0.5 _d 0
230        writeStatePrec    = precFloat64        writeStatePrec    = precFloat64
231        writeBinaryPrec   = precFloat32        writeBinaryPrec   = precFloat32
232        readBinaryPrec    = precFloat32        readBinaryPrec    = precFloat32
# Line 191  C--   Time stepping parameters Line 241  C--   Time stepping parameters
241        periodicExternalForcing = .FALSE.        periodicExternalForcing = .FALSE.
242        externForcingPeriod     = 0.        externForcingPeriod     = 0.
243        externForcingCycle      = 0.        externForcingCycle      = 0.
244          tCyl              = 0.
245    
246  C--   Input files  C--   Input files
247        bathyFile       = ' '        bathyFile       = ' '
# Line 203  C--   Input files Line 254  C--   Input files
254        saltClimFile    = ' '        saltClimFile    = ' '
255        EmPmRfile       = ' '        EmPmRfile       = ' '
256        surfQfile       = ' '        surfQfile       = ' '
257        surfQswfile     = ' '        surfQnetFile    = ' '
258          surfQswFile     = ' '
259        uVelInitFile    = ' '        uVelInitFile    = ' '
260        vVelInitFile    = ' '        vVelInitFile    = ' '
261        pSurfInitFile   = ' '        pSurfInitFile   = ' '
262        dQdTFile        = ' '        dQdTFile        = ' '
263          ploadFile       = ' '
264          mdsioLocalDir   = ' '
265    
266  C  C
267        RETURN        RETURN
268        END        END
   

Legend:
Removed from v.1.32  
changed lines
  Added in v.1.70

  ViewVC Help
Powered by ViewVC 1.1.22