/[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.116 by heimbach, Wed Jun 7 01:55:13 2006 UTC revision 1.155 by jmc, Wed Jun 8 01:41:45 2011 UTC
# Line 9  C     !ROUTINE: SET_DEFAULTS Line 9  C     !ROUTINE: SET_DEFAULTS
9  C     !INTERFACE:  C     !INTERFACE:
10        SUBROUTINE SET_DEFAULTS(        SUBROUTINE SET_DEFAULTS(
11       O   viscArDefault, diffKrTDefault, diffKrSDefault,       O   viscArDefault, diffKrTDefault, diffKrSDefault,
12       O   hFacMinDrDefault, delRdefault, rkFacDefault,       O   hFacMinDrDefault, delRdefault,
13       I   myThid )       I   myThid )
14    
15  C     !DESCRIPTION:  C     !DESCRIPTION:
# Line 21  C     !USES: Line 21  C     !USES:
21  #include "EEPARAMS.h"  #include "EEPARAMS.h"
22  #include "PARAMS.h"  #include "PARAMS.h"
23  Cml#include "EOS.h"  Cml#include "EOS.h"
24  #include "GRID.h"  c#include "GRID.h"
25    
26  C     !INPUT/OUTPUT PARAMETERS:  C     !INPUT/OUTPUT PARAMETERS:
27  C     myThid - Number of this instance of INI_PARMS  C     myThid :: my Thread Id. Number
28        INTEGER myThid        INTEGER myThid
29        _RL viscArDefault        _RL viscArDefault
30        _RL diffKrTDefault        _RL diffKrTDefault
31        _RL diffKrSDefault        _RL diffKrSDefault
32        _RL hFacMinDrDefault        _RL hFacMinDrDefault
33        _RL delRDefault(Nr)        _RL delRDefault(Nr)
       _RS rkFacDefault  
34    
35  C     !LOCAL VARIABLES:  C     !LOCAL VARIABLES:
36  C     K, I, J - Loop counters  C     i, j, k :: Loop counters
37        INTEGER K, I, J        INTEGER i, j, k
38  CEOP  CEOP
39    
40  C--   Grid parameters  C--   Grid parameters
41  C     Vertical gridding  C-    Vertical gridding
42        rkFacDefault        = 1. _d 0        delRFile            = ' '
43        horiVertRatio       = 1. _d 0        delRcFile           = ' '
44          hybSigmFile         = ' '
45        Ro_SeaLevel         = 0.        Ro_SeaLevel         = 0.
46          rSigmaBnd           = UNSET_RL
47          selectSigmaCoord    = 0
48        DO k=1,Nr        DO k=1,Nr
49         delRdefault(k)     = 0.         delRdefault(k)     = 0.
50        ENDDO        ENDDO
51        DO k=1,Nr+1        DO k=1,Nr+1
52         delRc(k)           = UNSET_RL         delRc(k)           = UNSET_RL
53        ENDDO        ENDDO
54    C-    vertical profile
55          tRefFile            = ' '
56          sRefFile            = ' '
57          rhoRefFile          = ' '
58    
59  C     Horizontal gridding  C-    Horizontal gridding
60        delXFile            = ' '        delXFile            = ' '
61        delYFile            = ' '        delYFile            = ' '
62        horizGridFile       = ' '        horizGridFile       = ' '
63  C     In cartesian coords distances are in metres        deepAtmosphere      = .FALSE.
64        usingCartesianGrid  = .FALSE.        xgOrigin            = UNSET_RL
65          ygOrigin            = UNSET_RL
66        DO i=1,Nx        DO i=1,Nx
67         delX(i)            = UNSET_RL         delX(i)            = UNSET_RL
68        ENDDO        ENDDO
69        DO j=1,Ny        DO j=1,Ny
70         delY(j)            = UNSET_RL         delY(j)            = UNSET_RL
71        ENDDO        ENDDO
72    C     In cartesian coords distances are in metres
73          usingCartesianGrid  = .FALSE.
74  C     In spherical polar distances are in degrees  C     In spherical polar distances are in degrees
75        usingSphericalPolarGrid = .FALSE.        usingSphericalPolarGrid = .FALSE.
76        phiMin              = 0.0        rSphere             = UNSET_RL
       thetaMin            = 0.  
       rSphere             = 6370. _d 3  
77  C     General curvilinear coordinate system  C     General curvilinear coordinate system
78        usingCurvilinearGrid= .FALSE.        usingCurvilinearGrid= .FALSE.
79          radius_fromHorizGrid= UNSET_RL
80  C     General cylindrical coordinate system  C     General cylindrical coordinate system
81        usingCylindricalGrid= .FALSE.        usingCylindricalGrid= .FALSE.
82  C     Coriolis map:  C     Coriolis map:
83        useConstantF        = .FALSE.        selectCoriMap       = -1
84        useBetaPlaneF       = .FALSE.        use3dCoriolis       = .TRUE.
85        useSphereF          = .FALSE.  C     grid rotation
86          rotateGrid          = .FALSE.
87          phiEuler            = 0. _d 0
88          thetaEuler          = 0. _d 0
89          psiEuler            = 0. _d 0
90    
91  C--   Set default "physical" parameters  C--   Set default "physical" parameters
92        nh_Am2              = 1. _d 0        nh_Am2              = 1. _d 0
# Line 86  C         (so that the default produces Line 97  C         (so that the default produces
97  c     rhoConstFresh       = 999.8 _d 0  c     rhoConstFresh       = 999.8 _d 0
98        f0                  = 1. _d -4        f0                  = 1. _d -4
99        beta                = 1. _d -11        beta                = 1. _d -11
100          fPrime              = 0. _d 0
101  C-    Earth rotation period is 86400*365.25/366.25 (use to be 1.day)  C-    Earth rotation period is 86400*365.25/366.25 (use to be 1.day)
102        rotationPeriod      = 86164. _d 0        rotationPeriod      = 86164. _d 0
103        viscAh              = 0. _d 3        viscAh              = 0. _d 3
# Line 112  C-    Earth rotation period is 86400*365 Line 124  C-    Earth rotation period is 86400*365
124        diffKrBL79deep      = 0. _d 0        diffKrBL79deep      = 0. _d 0
125        diffKrBL79scl       = 200. _d 0        diffKrBL79scl       = 200. _d 0
126        diffKrBL79Ho        = -2000. _d 0        diffKrBL79Ho        = -2000. _d 0
127          BL79LatVary         = 30
128          diffKrBLEQsurf      = UNSET_RL
129          diffKrBLEQdeep      = UNSET_RL
130          diffKrBLEQscl       = UNSET_RL
131          diffKrBLEQHo        = UNSET_RL
132        viscA4              = 0. _d 11        viscA4              = 0. _d 11
133        viscA4Grid          = 0. _d 0        viscA4Grid          = 0. _d 0
134        viscA4GridMax       = 1. _d 21        viscA4GridMax       = 1. _d 21
# Line 161  Cml      sBeta               = 7.4 _d -4 Line 178  Cml      sBeta               = 7.4 _d -4
178        globalFiles         = .FALSE.        globalFiles         = .FALSE.
179        useSingleCpuIO      = .FALSE.        useSingleCpuIO      = .FALSE.
180        allowFreezing       = .FALSE.        allowFreezing       = .FALSE.
181          allowInteriorFreezing = .FALSE.
182        useOldFreezing      = .FALSE.        useOldFreezing      = .FALSE.
183        ivdc_kappa          = 0. _d 0        ivdc_kappa          = 0. _d 0
184        usePickupBeforeC35    = .FALSE.        hMixCriteria        = -.8 _d 0
185          dRhoSmall           = 1. _d -6
186          hMixSmooth          = 0. _d 0
187        usePickupBeforeC54    = .FALSE.        usePickupBeforeC54    = .FALSE.
       debugMode             = .FALSE.  
188        tempAdvScheme       = 2        tempAdvScheme       = 2
189        saltAdvScheme       = 2        saltAdvScheme       = 2
190        multiDimAdvection   = .TRUE.        multiDimAdvection   = .TRUE.
191          useMultiDimAdvec    = .FALSE.
192        useCDscheme         = .FALSE.        useCDscheme         = .FALSE.
193        useEnergyConservingCoriolis = .FALSE.        useEnergyConservingCoriolis = .FALSE.
194        useJamartWetPoints  = .FALSE.        useJamartWetPoints  = .FALSE.
195        useJamartMomAdv     = .FALSE.        useJamartMomAdv     = .FALSE.
196        SadournyCoriolis    = .FALSE.        selectVortScheme    = UNSET_I
197        upwindVorticity     = .FALSE.        upwindVorticity     = .FALSE.
198        highOrderVorticity  = .FALSE.        highOrderVorticity  = .FALSE.
199        useAbsVorticity     = .FALSE.        useAbsVorticity     = .FALSE.
200        upwindShear         = .FALSE.        upwindShear         = .FALSE.
201        selectKEscheme      = 0        selectKEscheme      = 0
202        debugLevel          = debLevA        IF ( debugMode ) THEN
203            debugLevel        = debLevD
204          ELSE
205            debugLevel        = debLevB
206    #ifdef ALLOW_AUTODIFF
207            debugLevel        = debLevA
208    #endif
209          ENDIF
210        inAdMode            = .FALSE.        inAdMode            = .FALSE.
211        inAdExact           = .TRUE.        inAdExact           = .TRUE.
212    
# Line 187  C--   Set (free)surface-related paramete Line 214  C--   Set (free)surface-related paramete
214        implicitFreeSurface = .FALSE.        implicitFreeSurface = .FALSE.
215        rigidLid            = .FALSE.        rigidLid            = .FALSE.
216        implicSurfPress     = 1. _d 0        implicSurfPress     = 1. _d 0
217        implicDiv2DFlow     = 1. _d 0        implicDiv2Dflow     = 1. _d 0
218        exactConserv        = .FALSE.        exactConserv        = .FALSE.
219          linFSConserveTr     = .FALSE.
220        uniformLin_PhiSurf  = .TRUE.        uniformLin_PhiSurf  = .TRUE.
221        nonlinFreeSurf      = 0        nonlinFreeSurf      = 0
222        hFacInf             = 0.2 _d 0        hFacInf             = 0.2 _d 0
223        hFacSup             = 2.0 _d 0        hFacSup             = 2.0 _d 0
224        select_rStar        = 0        select_rStar        = 0
225          selectNHfreeSurf    = 0
226          selectAddFluid      = 0
227        useRealFreshWaterFlux = .FALSE.        useRealFreshWaterFlux = .FALSE.
228        temp_EvPrRn = UNSET_RL        temp_EvPrRn = UNSET_RL
229        salt_EvPrRn = 0.        salt_EvPrRn = 0.
230          temp_addMass = UNSET_RL
231          salt_addMass = UNSET_RL
232        balanceEmPmR        = .FALSE.        balanceEmPmR        = .FALSE.
233        balanceQnet         = .FALSE.        balanceQnet         = .FALSE.
234        balancePrintMean    = .FALSE.        balancePrintMean    = .FALSE.
# Line 221  C--   Elliptic solver parameters Line 253  C--   Elliptic solver parameters
253        cg3dMaxIters       = 150        cg3dMaxIters       = 150
254        cg3dTargetResidual = 1. _d -7        cg3dTargetResidual = 1. _d -7
255        cg3dChkResFreq     = 1        cg3dChkResFreq     = 1
256          useSRCGSolver      = .FALSE.
257    
258  C--   Time stepping parameters  C--   Time stepping parameters
259        deltaT            = 0. _d 0        deltaT            = 0. _d 0
# Line 230  C--   Time stepping parameters Line 263  C--   Time stepping parameters
263          dTtracerLev(k)  = 0. _d 0          dTtracerLev(k)  = 0. _d 0
264        ENDDO        ENDDO
265        baseTime          = 0. _d 0        baseTime          = 0. _d 0
266        nIter0            = 0        nIter0            = -1
267        startTime         = deltaT*float(nIter0)        startTime         = UNSET_RL
268        pickupSuff        = ' '        pickupSuff        = ' '
269          pickupStrictlyMatch = .TRUE.
270        nTimeSteps        = 0        nTimeSteps        = 0
271        nEndIter          = nIter0+nTimeSteps        nEndIter          = 0
272        endTime           = deltaT*float(nEndIter)        endTime           = 0. _d 0
273        momForcingOutAB   = UNSET_I        momForcingOutAB   = UNSET_I
274        tracForcingOutAB  = UNSET_I        tracForcingOutAB  = UNSET_I
275        momDissip_In_AB   = .TRUE.        momDissip_In_AB   = .TRUE.
# Line 256  C--   Time stepping parameters Line 290  C--   Time stepping parameters
290        pickup_read_mdsio = .TRUE.        pickup_read_mdsio = .TRUE.
291        pickup_write_mdsio= .TRUE.        pickup_write_mdsio= .TRUE.
292        pickup_write_immed= .FALSE.        pickup_write_immed= .FALSE.
293          writePickupAtEnd  = .TRUE.
294        dumpFreq          = deltaT*0        dumpFreq          = deltaT*0
295        adjDumpFreq       = deltaT*0        adjDumpFreq       = deltaT*0
296        diagFreq          = deltaT*0        diagFreq          = deltaT*0
# Line 263  C--   Time stepping parameters Line 298  C--   Time stepping parameters
298        snapshot_mdsio    = .TRUE.        snapshot_mdsio    = .TRUE.
299        monitorFreq       = -1.        monitorFreq       = -1.
300        adjMonitorFreq    = 0.        adjMonitorFreq    = 0.
301          monitorSelect     = UNSET_I
302        monitor_stdio     = .TRUE.        monitor_stdio     = .TRUE.
303        taveFreq          = deltaT*0        taveFreq          = deltaT*0
304        timeave_mdsio     = .TRUE.        timeave_mdsio     = .TRUE.
# Line 270  C--   Time stepping parameters Line 306  C--   Time stepping parameters
306        writeStatePrec    = precFloat64        writeStatePrec    = precFloat64
307        writeBinaryPrec   = precFloat32        writeBinaryPrec   = precFloat32
308        readBinaryPrec    = precFloat32        readBinaryPrec    = precFloat32
       nCheckLev         = 1  
       checkPtSuff(1)    = 'ckptA'  
       checkPtSuff(2)    = 'ckptB'  
309        cAdjFreq          =  0. _d 0        cAdjFreq          =  0. _d 0
310        tauCD             =  0. _d 0        tauCD             =  0. _d 0
311        tauThetaClimRelax =  0. _d 0        tauThetaClimRelax =  0. _d 0
312        tauSaltClimRelax  =  0. _d 0        tauSaltClimRelax  =  0. _d 0
       tauTr1ClimRelax   =  0. _d 0  
313        periodicExternalForcing = .FALSE.        periodicExternalForcing = .FALSE.
314        externForcingPeriod     = 0.        externForcingPeriod     = 0.
315        externForcingCycle      = 0.        externForcingCycle      = 0.
# Line 287  C--   Time stepping parameters Line 319  C--   Time stepping parameters
319  C--   Input files  C--   Input files
320        bathyFile       = ' '        bathyFile       = ' '
321        topoFile        = ' '        topoFile        = ' '
       shelfIceFile    = ' '  
322        hydrogSaltFile  = ' '        hydrogSaltFile  = ' '
323        hydrogThetaFile = ' '        hydrogThetaFile = ' '
324          maskIniTemp     = .TRUE.
325          maskIniSalt     = .TRUE.
326          checkIniTemp    = .TRUE.
327          checkIniSalt    = .TRUE.
328          diffKrFile      = ' '
329          viscAhDfile     = ' '
330          viscAhZfile     = ' '
331          viscA4Dfile     = ' '
332          viscA4Zfile     = ' '
333        zonalWindFile   = ' '        zonalWindFile   = ' '
334        meridWindFile   = ' '        meridWindFile   = ' '
335        thetaClimFile   = ' '        thetaClimFile   = ' '
# Line 304  C--   Input files Line 344  C--   Input files
344        pSurfInitFile   = ' '        pSurfInitFile   = ' '
345        dQdTFile        = ' '        dQdTFile        = ' '
346        ploadFile       = ' '        ploadFile       = ' '
347        eddyTauxFile    = ' '        eddyPsiXFile    = ' '
348        eddyTauyFile    = ' '        eddyPsiYFile    = ' '
349        lambdaThetaFile = ' '        lambdaThetaFile = ' '
350        lambdaSaltFile  = ' '        lambdaSaltFile  = ' '
351        mdsioLocalDir   = ' '        mdsioLocalDir   = ' '
352          adTapeDir       = ' '
353          the_run_name    = ' '
354    
355        RETURN        RETURN
356        END        END

Legend:
Removed from v.1.116  
changed lines
  Added in v.1.155

  ViewVC Help
Powered by ViewVC 1.1.22