/[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.55 by jmc, Tue Nov 18 22:59:39 2003 UTC revision 1.77 by jmc, Sat Dec 4 00:12:14 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
# Line 95  c     rhoConstFresh       = 999.8D0 Line 85  c     rhoConstFresh       = 999.8D0
85  C-    Always use 1 day in the past but should be 86164 (=86400*365.25/366.25)  C-    Always use 1 day in the past but should be 86164 (=86400*365.25/366.25)
86        rotationPeriod      = 86400. _d 0        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 104  C-    Always use 1 day in the past but s Line 97  C-    Always use 1 day in the past but s
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 129  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         = .FALSE.        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.
# Line 145  Cml      sBeta               = 7.4D-4 Line 149  Cml      sBeta               = 7.4D-4
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.        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        debugLevel          = debLevA
168    
169  C--   Set (free)surface-related parameters  C--   Set (free)surface-related parameters
# Line 171  C--   Set (free)surface-related paramete Line 180  C--   Set (free)surface-related paramete
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        celsius2K = 273.16 _d 0        celsius2K = 273.16 _d 0
# Line 189  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
204    
205  C--   Time stepping parameters  C--   Time stepping parameters
206        deltaT            = 0.        deltaT            = 0. _d 0
207          deltaTmom         = 0. _d 0
208          deltaTfreesurf    = 0. _d 0
209          DO k=1,Nr
210            dTtracerLev(k)  = 0. _d 0
211          ENDDO
212        nIter0            = 0        nIter0            = 0
213        startTime         = deltaT*float(nIter0)        startTime         = deltaT*float(nIter0)
214        pickupSuff        = ' '        pickupSuff        = ' '
# Line 205  C--   Time stepping parameters Line 219  C--   Time stepping parameters
219        abEps             = 0.01        abEps             = 0.01
220        pchkPtFreq        = deltaT*0        pchkPtFreq        = deltaT*0
221        chkPtFreq         = deltaT*0        chkPtFreq         = deltaT*0
222          outputTypesInclusive = .FALSE.
223          pickup_read_mdsio = .TRUE.
224          pickup_write_mdsio= .TRUE.
225          pickup_write_immed= .FALSE.
226        dumpFreq          = deltaT*0        dumpFreq          = deltaT*0
227          adjDumpFreq       = deltaT*0
228        diagFreq          = deltaT*0        diagFreq          = deltaT*0
229          snapshot_mdsio    = .TRUE.
230        monitorFreq       = -1.        monitorFreq       = -1.
231          monitor_stdio     = .TRUE.
232        taveFreq          = deltaT*0        taveFreq          = deltaT*0
233          timeave_mdsio     = .TRUE.
234        tave_lastIter     = 0.5 _d 0        tave_lastIter     = 0.5 _d 0
235        writeStatePrec    = precFloat64        writeStatePrec    = precFloat64
236        writeBinaryPrec   = precFloat32        writeBinaryPrec   = precFloat32
# Line 224  C--   Time stepping parameters Line 246  C--   Time stepping parameters
246        periodicExternalForcing = .FALSE.        periodicExternalForcing = .FALSE.
247        externForcingPeriod     = 0.        externForcingPeriod     = 0.
248        externForcingCycle      = 0.        externForcingCycle      = 0.
249          tCyl              = 0.
250    
251  C--   Input files  C--   Input files
252        bathyFile       = ' '        bathyFile       = ' '
# Line 236  C--   Input files Line 259  C--   Input files
259        saltClimFile    = ' '        saltClimFile    = ' '
260        EmPmRfile       = ' '        EmPmRfile       = ' '
261        surfQfile       = ' '        surfQfile       = ' '
262        surfQswfile     = ' '        surfQnetFile    = ' '
263          surfQswFile     = ' '
264        uVelInitFile    = ' '        uVelInitFile    = ' '
265        vVelInitFile    = ' '        vVelInitFile    = ' '
266        pSurfInitFile   = ' '        pSurfInitFile   = ' '

Legend:
Removed from v.1.55  
changed lines
  Added in v.1.77

  ViewVC Help
Powered by ViewVC 1.1.22