/[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.76 by jmc, Fri Nov 5 02:47:44 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"
# 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 65  C     Vertical gridding Line 52  C     Vertical gridding
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 79  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  Cml       sRef(K) = 35.D0
77        ENDDO        ENDDO
       gravitySign         = 1.D0  
78        gravity             = 9.81D0        gravity             = 9.81D0
79        rhoNil              = 999.8D0        rhoNil              = 999.8D0
80        rhoConstFresh       = 999.8D0  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 102  Cml       sRef(K) = 35.D0 Line 97  Cml       sRef(K) = 35.D0
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          viscA4GridMax       = 0.D0
107          viscA4GridMin       = 0.D0
108          viscA4Max           = 1.D21
109          viscC4leith         = 0.D0
110        diffK4T             = 0.D11        diffK4T             = 0.D11
111        diffK4S             = 0.D11        diffK4S             = 0.D11
112        cosPower            = 0.        cosPower            = 0.
# Line 127  Cml      sBeta               = 7.4D-4 Line 131  Cml      sBeta               = 7.4D-4
131        saltStepping        = .TRUE.        saltStepping        = .TRUE.
132        saltAdvection       = .TRUE.        saltAdvection       = .TRUE.
133        saltForcing         = .TRUE.        saltForcing         = .TRUE.
       tr1Stepping         = .FALSE.  
134        metricTerms         = .TRUE.        metricTerms         = .TRUE.
135        useNHMTerms         = .TRUE.        useNHMTerms         = .FALSE.
136        implicitDiffusion   = .FALSE.        implicitDiffusion   = .FALSE.
137        implicitViscosity   = .FALSE.        implicitViscosity   = .FALSE.
138          momImplVertAdv      = .FALSE.
139          tempImplVertAdv     = .FALSE.
140          saltImplVertAdv     = .FALSE.
141        nonHydrostatic      = .FALSE.        nonHydrostatic      = .FALSE.
142        quasiHydrostatic    = .FALSE.        quasiHydrostatic    = .FALSE.
143        globalFiles         = .FALSE.        globalFiles         = .FALSE.
144          useSingleCpuIO      = .FALSE.
145        allowFreezing       = .FALSE.        allowFreezing       = .FALSE.
146          useOldFreezing      = .FALSE.
147        ivdc_kappa          = 0.D0        ivdc_kappa          = 0.D0
148        groundAtK1          = .FALSE.        groundAtK1          = .FALSE.
149        bottomDragLinear    = 0.        bottomDragLinear    = 0.
150        bottomDragQuadratic = 0.        bottomDragQuadratic = 0.
151        usePickupBeforeC35    = .FALSE.        usePickupBeforeC35    = .FALSE.
152          usePickupBeforeC54    = .FALSE.
153        debugMode             = .FALSE.        debugMode             = .FALSE.
154        readPickupWithTracer  = .FALSE.        readPickupWithTracer  = .FALSE.
155        writePickupWithTracer = .FALSE.        writePickupWithTracer = .FALSE.
156        tempAdvScheme       = 2        tempAdvScheme       = 2
157        saltAdvScheme       = 2        saltAdvScheme       = 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  C--   Set (free)surface-related parameters
170        implicitFreeSurface = .TRUE.        implicitFreeSurface = .TRUE.
# Line 159  C--   Set (free)surface-related paramete Line 174  C--   Set (free)surface-related paramete
174        exactConserv        = .FALSE.        exactConserv        = .FALSE.
175        uniformLin_PhiSurf  = .TRUE.        uniformLin_PhiSurf  = .TRUE.
176        nonlinFreeSurf      = 0        nonlinFreeSurf      = 0
177        hFacInf             = 1.D0        hFacInf             = 0.2 _d 0
178        hFacSup             = 1.D0        hFacSup             = 2.0 _d 0
179          select_rStar        = 0
180        useRealFreshWaterFlux = .FALSE.        useRealFreshWaterFlux = .FALSE.
181        temp_EvPrRn = UNSET_RL        temp_EvPrRn = UNSET_RL
182        salt_EvPrRn = 0.        salt_EvPrRn = 0.
       trac_EvPrRn = UNSET_RL  
183    
184  C--   Atmospheric physical parameters (e.g.: EOS)  C--   Atmospheric physical parameters (e.g.: EOS)
185        atm_po =  1.D5        celsius2K = 273.16 _d 0
186        atm_cp =  1004.D0        atm_Po =  1. _d 5
187        atm_kappa = 2.D0 / 7.D0        atm_Cp = 1004. _d 0
188        Integr_GeoPot = 2        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
# Line 178  C--   Elliptic solver parameters Line 197  C--   Elliptic solver parameters
197        cg2dTargetResWunit = -1.        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 186  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        nEndIter          = nIter0+nTimeSteps        nEndIter          = nIter0+nTimeSteps
212        endTime           = deltaT*float(nEndIter)        endTime           = deltaT*float(nEndIter)
# Line 193  C--   Time stepping parameters Line 214  C--   Time stepping parameters
214        abEps             = 0.01        abEps             = 0.01
215        pchkPtFreq        = deltaT*0        pchkPtFreq        = deltaT*0
216        chkPtFreq         = deltaT*0        chkPtFreq         = deltaT*0
217          outputTypesInclusive = .FALSE.
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_stdio     = .TRUE.
227        taveFreq          = deltaT*0        taveFreq          = deltaT*0
228          timeave_mdsio     = .TRUE.
229        tave_lastIter     = 0.5 _d 0        tave_lastIter     = 0.5 _d 0
230        writeStatePrec    = precFloat64        writeStatePrec    = precFloat64
231        writeBinaryPrec   = precFloat32        writeBinaryPrec   = precFloat32
# Line 212  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 224  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       = ' '        ploadFile       = ' '
264          mdsioLocalDir   = ' '
265    
266  C  C
267        RETURN        RETURN

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

  ViewVC Help
Powered by ViewVC 1.1.22