/[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.28 by adcroft, Mon Sep 10 01:22:48 2001 UTC revision 1.55 by jmc, Tue Nov 18 22:59:39 2003 UTC
# Line 3  C $Name$ Line 3  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"
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
# Line 48  C     Vertical gridding Line 59  C     Vertical gridding
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 69  C     General curvilinear coordinate sys Line 83  C     General curvilinear coordinate sys
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        gravity             = 9.81D0        gravity             = 9.81D0
89        rhoNil              = 999.8D0        rhoNil              = 999.8D0
90    C-- jmc : the default is to set rhoConstFresh to rhoConst (=rhoNil by default)
91    C         (so that the default produces same results as before)
92    c     rhoConstFresh       = 999.8D0
93        f0                  = 1.D-4        f0                  = 1.D-4
94        beta                = 1.D-11        beta                = 1.D-11
95        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)
96          rotationPeriod      = 86400. _d 0
97        viscAh              = 0.D3        viscAh              = 0.D3
98        viscAstrain         = 0.D3        viscAstrain         = 0.D3
99        viscAtension        = 0.D3        viscAtension        = 0.D3
# Line 90  C--   Set default "physical" parameters Line 109  C--   Set default "physical" parameters
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 114  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        nonHydrostatic      = .FALSE.        nonHydrostatic      = .FALSE.
138          quasiHydrostatic    = .FALSE.
139        globalFiles         = .FALSE.        globalFiles         = .FALSE.
140          useSingleCpuIO      = .FALSE.
141        allowFreezing       = .FALSE.        allowFreezing       = .FALSE.
142          useOldFreezing      = .FALSE.
143        ivdc_kappa          = 0.D0        ivdc_kappa          = 0.D0
144        groundAtK1          = .FALSE.        groundAtK1          = .FALSE.
       zonal_filt_lat      = 90.  
       zonal_filt_sinpow   = 2  
       zonal_filt_cospow   = 2  
145        bottomDragLinear    = 0.        bottomDragLinear    = 0.
146        bottomDragQuadratic = 0.        bottomDragQuadratic = 0.
147        usePickupBeforeC35    = .FALSE.        usePickupBeforeC35    = .FALSE.
# Line 137  C--   Set default "physical" parameters Line 152  C--   Set default "physical" parameters
152        saltAdvScheme       = 2        saltAdvScheme       = 2
153        tracerAdvScheme     = 2        tracerAdvScheme     = 2
154        multiDimAdvection   = .TRUE.        multiDimAdvection   = .TRUE.
155          useCDscheme         = .FALSE.
156          useEnergyConservingCoriolis = .FALSE.
157          useJamartWetPoints  = .FALSE.
158          debugLevel          = debLevA
159    
160    C--   Set (free)surface-related parameters
161          implicitFreeSurface = .TRUE.
162          rigidLid            = .FALSE.
163          implicSurfPress     = 1.D0
164          implicDiv2DFlow     = 1.D0
165          exactConserv        = .FALSE.
166          uniformLin_PhiSurf  = .TRUE.
167          nonlinFreeSurf      = 0
168          hFacInf             = 0.2 _d 0
169          hFacSup             = 2.0 _d 0
170          select_rStar        = 0
171          useRealFreshWaterFlux = .FALSE.
172          temp_EvPrRn = UNSET_RL
173          salt_EvPrRn = 0.
174          trac_EvPrRn = UNSET_RL
175    
176  C--   Atmospheric physical parameters (e.g.: EOS)  C--   Atmospheric physical parameters (e.g.: EOS)
177        atm_po =  1.D5        celsius2K = 273.16 _d 0
178        atm_cp =  1004.D0        atm_Po =  1. _d 5
179        atm_kappa = 2.D0 / 7.D0        atm_Cp = 1004. _d 0
180        Integr_GeoPot = 2        atm_Rd = UNSET_RL
181          atm_kappa = 2. _d 0 / 7. _d 0
182          atm_Rq = 0. _d 0
183          integr_GeoPot = 2
184          selectFindRoSurf = 0
185    
186  C--   Elliptic solver parameters  C--   Elliptic solver parameters
187        cg2dMaxIters       = 150        cg2dMaxIters       = 150
# Line 158  C--   Time stepping parameters Line 197  C--   Time stepping parameters
197        deltaT            = 0.        deltaT            = 0.
198        nIter0            = 0        nIter0            = 0
199        startTime         = deltaT*float(nIter0)        startTime         = deltaT*float(nIter0)
200          pickupSuff        = ' '
201        nTimeSteps        = 0        nTimeSteps        = 0
202        nEndIter          = nIter0+nTimeSteps        nEndIter          = nIter0+nTimeSteps
203        endTime           = deltaT*float(nEndIter)        endTime           = deltaT*float(nEndIter)
204          forcing_In_AB     = .TRUE.
205        abEps             = 0.01        abEps             = 0.01
206        pchkPtFreq        = deltaT*0        pchkPtFreq        = deltaT*0
207        chkPtFreq         = deltaT*0        chkPtFreq         = deltaT*0
# Line 168  C--   Time stepping parameters Line 209  C--   Time stepping parameters
209        diagFreq          = deltaT*0        diagFreq          = deltaT*0
210        monitorFreq       = -1.        monitorFreq       = -1.
211        taveFreq          = deltaT*0        taveFreq          = deltaT*0
212          tave_lastIter     = 0.5 _d 0
213        writeStatePrec    = precFloat64        writeStatePrec    = precFloat64
214        writeBinaryPrec   = precFloat32        writeBinaryPrec   = precFloat32
215        readBinaryPrec    = precFloat32        readBinaryPrec    = precFloat32
# Line 199  C--   Input files Line 241  C--   Input files
241        vVelInitFile    = ' '        vVelInitFile    = ' '
242        pSurfInitFile   = ' '        pSurfInitFile   = ' '
243        dQdTFile        = ' '        dQdTFile        = ' '
244          ploadFile       = ' '
245          mdsioLocalDir   = ' '
246    
247  C  C
248        RETURN        RETURN
249        END        END
   

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

  ViewVC Help
Powered by ViewVC 1.1.22