/[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.52 by jmc, Wed Oct 15 22:55:51 2003 UTC revision 1.75 by dimitri, Tue Nov 2 23:57:29 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 87  Cml       sRef(K) = 35.D0 Line 77  Cml       sRef(K) = 35.D0
77        ENDDO        ENDDO
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  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 102  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 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.        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.
# Line 152  Cml      sBeta               = 7.4D-4 Line 160  Cml      sBeta               = 7.4D-4
160        useCDscheme         = .FALSE.        useCDscheme         = .FALSE.
161        useEnergyConservingCoriolis = .FALSE.        useEnergyConservingCoriolis = .FALSE.
162        useJamartWetPoints  = .FALSE.        useJamartWetPoints  = .FALSE.
163          useJamartMomAdv     = .FALSE.
164          SadournyCoriolis    = .FALSE.
165          upwindVorticity     = .FALSE.
166          highOrderVorticity  = .FALSE.
167          useAbsVorticity     = .FALSE.
168        debugLevel          = debLevA        debugLevel          = debLevA
169    
170  C--   Set (free)surface-related parameters  C--   Set (free)surface-related parameters
# Line 186  C--   Elliptic solver parameters Line 199  C--   Elliptic solver parameters
199        cg2dTargetResWunit = -1.        cg2dTargetResWunit = -1.
200        cg2dChkResFreq     = 1        cg2dChkResFreq     = 1
201        cg2dpcOffDFac      = 0.51D0        cg2dpcOffDFac      = 0.51D0
202          cg2dPreCondFreq    = 1
203        cg3dMaxIters       = 150        cg3dMaxIters       = 150
204        cg3dTargetResidual = 1.D-7        cg3dTargetResidual = 1.D-7
205        cg3dChkResFreq     = 1        cg3dChkResFreq     = 1
# Line 202  C--   Time stepping parameters Line 216  C--   Time stepping parameters
216        abEps             = 0.01        abEps             = 0.01
217        pchkPtFreq        = deltaT*0        pchkPtFreq        = deltaT*0
218        chkPtFreq         = deltaT*0        chkPtFreq         = deltaT*0
219          outputTypesInclusive = .FALSE.
220          pickup_read_mdsio = .TRUE.
221          pickup_write_mdsio= .TRUE.
222          pickup_write_immed= .FALSE.
223        dumpFreq          = deltaT*0        dumpFreq          = deltaT*0
224          adjDumpFreq       = deltaT*0
225        diagFreq          = deltaT*0        diagFreq          = deltaT*0
226          snapshot_mdsio    = .TRUE.
227        monitorFreq       = -1.        monitorFreq       = -1.
228          monitor_stdio     = .TRUE.
229        taveFreq          = deltaT*0        taveFreq          = deltaT*0
230          timeave_mdsio     = .TRUE.
231        tave_lastIter     = 0.5 _d 0        tave_lastIter     = 0.5 _d 0
232        writeStatePrec    = precFloat64        writeStatePrec    = precFloat64
233        writeBinaryPrec   = precFloat32        writeBinaryPrec   = precFloat32
# Line 221  C--   Time stepping parameters Line 243  C--   Time stepping parameters
243        periodicExternalForcing = .FALSE.        periodicExternalForcing = .FALSE.
244        externForcingPeriod     = 0.        externForcingPeriod     = 0.
245        externForcingCycle      = 0.        externForcingCycle      = 0.
246          tCyl              = 0.
247    
248  C--   Input files  C--   Input files
249        bathyFile       = ' '        bathyFile       = ' '
# Line 233  C--   Input files Line 256  C--   Input files
256        saltClimFile    = ' '        saltClimFile    = ' '
257        EmPmRfile       = ' '        EmPmRfile       = ' '
258        surfQfile       = ' '        surfQfile       = ' '
259        surfQswfile     = ' '        surfQnetFile    = ' '
260          surfQswFile     = ' '
261        uVelInitFile    = ' '        uVelInitFile    = ' '
262        vVelInitFile    = ' '        vVelInitFile    = ' '
263        pSurfInitFile   = ' '        pSurfInitFile   = ' '

Legend:
Removed from v.1.52  
changed lines
  Added in v.1.75

  ViewVC Help
Powered by ViewVC 1.1.22