/[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.10 by adcroft, Wed Jun 21 19:18:59 2000 UTC revision 1.40 by jmc, Mon Oct 7 16:20:39 2002 UTC
# Line 1  Line 1 
1  C $Header$  C $Header$
2    C $Name$
3    
4  #include "CPP_OPTIONS.h"  #include "CPP_OPTIONS.h"
5    
6    CBOP
7    C     !ROUTINE: SET_DEFAULTS
8    C     !INTERFACE:
9        SUBROUTINE SET_DEFAULTS(        SUBROUTINE SET_DEFAULTS(
10       O   viscArDefault, diffKrTDefault, diffKrSDefault,       O   viscArDefault, diffKrTDefault, diffKrSDefault,
11       O   hFacMinDrDefault, delRdefault, rkFacDefault,       O   hFacMinDrDefault, delRdefault, rkFacDefault,
12       I   myThid )       I   myThid )
 C     /==========================================================\  
 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     \==========================================================/  
       IMPLICIT NONE  
13    
14    C     !DESCRIPTION: \bv
15    C     *==========================================================*
16    C     | SUBROUTINE SET_DEFAULTS                                  
17    C     | o Routine to set model "parameters"                      
18    C     *==========================================================*
19    C     | Notes:                                                    
20    C     | ======                                                    
21    C     | The present version of this routine is a place-holder.    
22    C     | A production version needs to handle parameters from an  
23    C     | external file and possibly reading in some initial field  
24    C     | values.                                                  
25    C     *==========================================================*
26    C     \ev
27    
28    C     !USES:
29          IMPLICIT NONE
30  C     === Global variables ===  C     === Global variables ===
31  #include "SIZE.h"  #include "SIZE.h"
32  #include "EEPARAMS.h"  #include "EEPARAMS.h"
33  #include "PARAMS.h"  #include "PARAMS.h"
34    Cml#include "EOS.h"
35  #include "GRID.h"  #include "GRID.h"
 #include "CG2D.h"  
36    
37    C     !INPUT/OUTPUT PARAMETERS:
38  C     === Routine arguments ===  C     === Routine arguments ===
39  C     myThid - Number of this instance of INI_PARMS  C     myThid - Number of this instance of INI_PARMS
40        INTEGER myThid        INTEGER myThid
# Line 36  C     myThid - Number of this instance o Line 45  C     myThid - Number of this instance o
45        _RL delRDefault(Nr)        _RL delRDefault(Nr)
46        _RS rkFacDefault        _RS rkFacDefault
47    
48    C     !LOCAL VARIABLES:
49  C     === Local variables ===  C     === Local variables ===
50  C     K, I, J - Loop counters  C     K, I, J - Loop counters
51        INTEGER K, I, J        INTEGER K, I, J
52    CEOP
53    
54  C--   Grid parameters  C--   Grid parameters
55  C     Vertical gridding  C     Vertical gridding
56        rkFacDefault         = 1.D0        rkFacDefault         = 1.D0
57        horiVertRatio        = 1.D0        horiVertRatio        = 1.D0
58          Ro_SeaLevel = 0.
59        DO k=1,Nr        DO k=1,Nr
60         delRdefault(k) = 0.         delRdefault(k) = 0.
61        ENDDO        ENDDO
62          DO k=1,Nr+1
63           delRc(k) = UNSET_RL
64          ENDDO
65    
66  C     Horizontal gridding  C     Horizontal gridding
67  C     In cartesian coords distances are in metres  C     In cartesian coords distances are in metres
# Line 62  C     In spherical polar distances are i Line 77  C     In spherical polar distances are i
77        phiMin               = 0.0        phiMin               = 0.0
78        thetaMin             = 0.        thetaMin             = 0.
79        rSphere              = 6370. * 1.D3        rSphere              = 6370. * 1.D3
80    C     General curvilinear coordinate system
81          usingCurvilinearGrid = .FALSE.
82    
83  C--   Set default "physical" parameters  C--   Set default "physical" parameters
84        DO K =1,Nr        DO K =1,Nr
85         tRef(K) = 30.D0 - FLOAT( K )         tRef(K) = 30.D0 - FLOAT( K )
86    Cml       sRef(K) = 35.D0
87        ENDDO        ENDDO
88          gravitySign         = 1.D0
89        gravity             = 9.81D0        gravity             = 9.81D0
90        rhoNil              = 999.8D0        rhoNil              = 999.8D0
91          rhoConstFresh       = 999.8D0
92        f0                  = 1.D-4        f0                  = 1.D-4
93        beta                = 1.D-11        beta                = 1.D-11
94          omega               = 2.D0 * PI / ( 3600.D0 * 24.D0 )
95        viscAh              = 0.D3        viscAh              = 0.D3
96          viscAstrain         = 0.D3
97          viscAtension        = 0.D3
98        diffKhT             = 0.D3        diffKhT             = 0.D3
99        diffKhS             = 0.D3        diffKhS             = 0.D3
100        viscArDefault       = 0.D-3        viscArDefault       = 0.D-3
# Line 84  C--   Set default "physical" parameters Line 107  C--   Set default "physical" parameters
107        diffK4S             = 0.D11        diffK4S             = 0.D11
108        cosPower            = 0.        cosPower            = 0.
109        HeatCapacity_Cp     = 3994.D0        HeatCapacity_Cp     = 3994.D0
110        tAlpha              = 2.D-4  Cml      tAlpha              = 2.D-4
111        sBeta               = 7.4D-4  Cml      sBeta               = 7.4D-4
112        eosType             = 'LINEAR'        eosType             = 'LINEAR'
113        buoyancyRelation    = 'OCEANIC'        buoyancyRelation    = 'OCEANIC'
       implicitFreeSurface = .TRUE.  
       rigidLid            = .FALSE.  
114        hFacMin             = 1.D0        hFacMin             = 1.D0
115        hFacMinDrDefault    = 0.D0        hFacMinDrDefault    = 0.D0
116          staggerTimeStep     = .FALSE.
117        momViscosity        = .TRUE.        momViscosity        = .TRUE.
118        momAdvection        = .TRUE.        momAdvection        = .TRUE.
119        momForcing          = .TRUE.        momForcing          = .TRUE.
120        useCoriolis         = .TRUE.        useCoriolis         = .TRUE.
121        momPressureForcing  = .TRUE.        momPressureForcing  = .TRUE.
122        momStepping         = .TRUE.        momStepping         = .TRUE.
123          vectorInvariantMomentum = .FALSE.
124        tempStepping        = .TRUE.        tempStepping        = .TRUE.
125          tempAdvection       = .TRUE.
126          tempForcing         = .TRUE.
127        saltStepping        = .TRUE.        saltStepping        = .TRUE.
128        metricTerms         = .FALSE.        saltAdvection       = .TRUE.
129          saltForcing         = .TRUE.
130          tr1Stepping         = .FALSE.
131          metricTerms         = .TRUE.
132        implicitDiffusion   = .FALSE.        implicitDiffusion   = .FALSE.
133        implicitViscosity   = .FALSE.        implicitViscosity   = .FALSE.
       openBoundaries      = .FALSE.  
134        nonHydrostatic      = .FALSE.        nonHydrostatic      = .FALSE.
135        globalFiles         = .FALSE.        globalFiles         = .FALSE.
136        allowFreezing       = .FALSE.        allowFreezing       = .FALSE.
137        ivdc_kappa          = 0.D0        ivdc_kappa          = 0.D0
138          groundAtK1          = .FALSE.
139          bottomDragLinear    = 0.
140          bottomDragQuadratic = 0.
141          usePickupBeforeC35    = .FALSE.
142          debugMode             = .FALSE.
143          readPickupWithTracer  = .FALSE.
144          writePickupWithTracer = .FALSE.
145          tempAdvScheme       = 2
146          saltAdvScheme       = 2
147          tracerAdvScheme     = 2
148          multiDimAdvection   = .TRUE.
149          useEnergyConservingCoriolis = .FALSE.
150          useJamartWetPoints  = .FALSE.
151    
152    C--   Set (free)surface-related parameters
153          implicitFreeSurface = .TRUE.
154          rigidLid            = .FALSE.
155          implicSurfPress     = 1.D0
156          implicDiv2DFlow     = 1.D0
157          exactConserv        = .FALSE.
158          uniformLin_PhiSurf  = .TRUE.
159          nonlinFreeSurf      = 0
160          hFacInf             = 1.D0
161          hFacSup             = 1.D0
162          useRealFreshWaterFlux = .FALSE.
163          temp_EvPrRn = UNSET_RL
164          salt_EvPrRn = 0.
165          trac_EvPrRn = UNSET_RL
166    
167    C--   Atmospheric physical parameters (e.g.: EOS)
168          atm_po =  1.D5
169          atm_cp =  1004.D0
170          atm_kappa = 2.D0 / 7.D0
171          Integr_GeoPot = 2
172    
173  C--   Elliptic solver parameters  C--   Elliptic solver parameters
174        cg2dMaxIters       = 150        cg2dMaxIters       = 150
175        cg2dTargetResidual = 1.D-7        cg2dTargetResidual = 1.D-7
176          cg2dTargetResWunit = -1.
177        cg2dChkResFreq     = 1        cg2dChkResFreq     = 1
178        cg2dpcOffDFac      = 0.51D0        cg2dpcOffDFac      = 0.51D0
179        cg3dMaxIters       = 150        cg3dMaxIters       = 150
# Line 125  C--   Time stepping parameters Line 187  C--   Time stepping parameters
187        nTimeSteps        = 0        nTimeSteps        = 0
188        nEndIter          = nIter0+nTimeSteps        nEndIter          = nIter0+nTimeSteps
189        endTime           = deltaT*float(nEndIter)        endTime           = deltaT*float(nEndIter)
190          forcing_In_AB     = .TRUE.
191        abEps             = 0.01        abEps             = 0.01
192        pchkPtFreq        = deltaT*0        pchkPtFreq        = deltaT*0
193        chkPtFreq         = deltaT*0        chkPtFreq         = deltaT*0
194        dumpFreq          = deltaT*0        dumpFreq          = deltaT*0
195          diagFreq          = deltaT*0
196          monitorFreq       = -1.
197        taveFreq          = deltaT*0        taveFreq          = deltaT*0
198          tave_lastIter     = 0.5 _d 0
199        writeStatePrec    = precFloat64        writeStatePrec    = precFloat64
200        writeBinaryPrec   = precFloat32        writeBinaryPrec   = precFloat32
201        readBinaryPrec    = precFloat32        readBinaryPrec    = precFloat32
# Line 140  C--   Time stepping parameters Line 206  C--   Time stepping parameters
206        tauCD             =  0.D0        tauCD             =  0.D0
207        tauThetaClimRelax =  0.D0        tauThetaClimRelax =  0.D0
208        tauSaltClimRelax  =  0.D0        tauSaltClimRelax  =  0.D0
209          tauTr1ClimRelax   =  0.D0
210        periodicExternalForcing = .FALSE.        periodicExternalForcing = .FALSE.
211        externForcingPeriod     = 0.        externForcingPeriod     = 0.
212        externForcingCycle      = 0.        externForcingCycle      = 0.
213    
214  C--   Input files  C--   Input files
215        bathyFile       = ' '        bathyFile       = ' '
216          topoFile        = ' '
217        hydrogSaltFile  = ' '        hydrogSaltFile  = ' '
218        hydrogThetaFile = ' '        hydrogThetaFile = ' '
219        zonalWindFile   = ' '        zonalWindFile   = ' '
# Line 154  C--   Input files Line 222  C--   Input files
222        saltClimFile    = ' '        saltClimFile    = ' '
223        EmPmRfile       = ' '        EmPmRfile       = ' '
224        surfQfile       = ' '        surfQfile       = ' '
225          surfQswfile     = ' '
226        uVelInitFile    = ' '        uVelInitFile    = ' '
227        vVelInitFile    = ' '        vVelInitFile    = ' '
228        pSurfInitFile   = ' '        pSurfInitFile   = ' '
229          dQdTFile        = ' '
230  C--   OBCS        ploadFile       = ' '
       DO I=1,Nx  
        OB_Jnorth(I)=0  
        OB_Jsouth(I)=0  
       ENDDO  
       DO J=1,Ny  
        OB_Ieast(J)=0  
        OB_Iwest(J)=0  
       ENDDO  
231    
232  C  C
233        RETURN        RETURN
234        END        END
   

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.40

  ViewVC Help
Powered by ViewVC 1.1.22