/[MITgcm]/MITgcm/model/inc/PARAMS.h
ViewVC logotype

Diff of /MITgcm/model/inc/PARAMS.h

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.71 by jmc, Sat Jun 15 03:26:30 2002 UTC revision 1.85 by dimitri, Tue Feb 18 05:33:53 2003 UTC
# Line 69  C     surfQfile       :: File containing Line 69  C     surfQfile       :: File containing
69  C     surfQswfile     :: File containing surface shortwave radiation  C     surfQswfile     :: File containing surface shortwave radiation
70  C     dQdTfile        :: File containing thermal relaxation coefficient  C     dQdTfile        :: File containing thermal relaxation coefficient
71  C     EmPmRfile       :: File containing surface fresh water flux  C     EmPmRfile       :: File containing surface fresh water flux
72    C     pLoadFile       :: File containing pressure loading
73  C     buoyancyRelation :: Flag used to indicate which relation to use to  C     buoyancyRelation :: Flag used to indicate which relation to use to
74  C                        get buoyancy.  C                        get buoyancy.
75    C     eosType         :: choose the equation of state:
76    C                        LINEAR, POLY3, UNESCO, JMD95Z, JMD95P
77        COMMON /PARM_C/ checkPtSuff,        COMMON /PARM_C/ checkPtSuff,
78       &                bathyFile, topoFile,       &                bathyFile, topoFile,
79       &                hydrogThetaFile, hydrogSaltFile,       &                hydrogThetaFile, hydrogSaltFile,
# Line 78  C                        get buoyancy. Line 81  C                        get buoyancy.
81       &                saltClimFile, buoyancyRelation,       &                saltClimFile, buoyancyRelation,
82       &                EmPmRfile, surfQfile, surfQswfile,       &                EmPmRfile, surfQfile, surfQswfile,
83       &                uVelInitFile, vVelInitFile, pSurfInitFile,       &                uVelInitFile, vVelInitFile, pSurfInitFile,
84       &                dQdTfile       &                dQdTfile, ploadFile,
85         &                eosType
86        CHARACTER*(5) checkPtSuff(maxNoChkptLev)        CHARACTER*(5) checkPtSuff(maxNoChkptLev)
87        CHARACTER*(MAX_LEN_FNAM) bathyFile, topoFile        CHARACTER*(MAX_LEN_FNAM) bathyFile, topoFile
88        CHARACTER*(MAX_LEN_FNAM) hydrogThetaFile        CHARACTER*(MAX_LEN_FNAM) hydrogThetaFile
# Line 95  C                        get buoyancy. Line 99  C                        get buoyancy.
99        CHARACTER*(MAX_LEN_FNAM) vVelInitFile        CHARACTER*(MAX_LEN_FNAM) vVelInitFile
100        CHARACTER*(MAX_LEN_FNAM) pSurfInitFile        CHARACTER*(MAX_LEN_FNAM) pSurfInitFile
101        CHARACTER*(MAX_LEN_FNAM) dQdTfile        CHARACTER*(MAX_LEN_FNAM) dQdTfile
102          CHARACTER*(MAX_LEN_FNAM) ploadFile
103          CHARACTER*(6) eosType
104    
105  C--   COMMON /PARM_I/ Integer valued parameters used by the model.  C--   COMMON /PARM_I/ Integer valued parameters used by the model.
106  C     cg2dMaxIters        :: Maximum number of iterations in the  C     cg2dMaxIters        :: Maximum number of iterations in the
# Line 115  C     readBinaryPrec      :: Precision u Line 121  C     readBinaryPrec      :: Precision u
121  C     nCheckLev           :: Holds current checkpoint level  C     nCheckLev           :: Holds current checkpoint level
122  C     nonlinFreeSurf      :: option related to non-linear free surface  C     nonlinFreeSurf      :: option related to non-linear free surface
123  C                           =0 Linear free surface ; >0 Non-linear  C                           =0 Linear free surface ; >0 Non-linear
124    C     select_rStar        :: option related to r* vertical coordinate
125    C                           =0 (default) use r coord. ; > 0 use r*
126    
127        COMMON /PARM_I/        COMMON /PARM_I/
128       &        cg2dMaxIters,       &        cg2dMaxIters,
# Line 125  C                           =0 Linear fr Line 133  C                           =0 Linear fr
133       &        numStepsPerPickup,       &        numStepsPerPickup,
134       &        writeStatePrec, nCheckLev,       &        writeStatePrec, nCheckLev,
135       &        writeBinaryPrec, readBinaryPrec,       &        writeBinaryPrec, readBinaryPrec,
136       &        nonlinFreeSurf,       &        nonlinFreeSurf, select_rStar,
137       &        tempAdvScheme, saltAdvScheme, tracerAdvScheme       &        tempAdvScheme, saltAdvScheme, tracerAdvScheme
138        INTEGER cg2dMaxIters        INTEGER cg2dMaxIters
139        INTEGER cg2dChkResFreq        INTEGER cg2dChkResFreq
# Line 140  C                           =0 Linear fr Line 148  C                           =0 Linear fr
148        INTEGER readBinaryPrec        INTEGER readBinaryPrec
149        INTEGER nCheckLev        INTEGER nCheckLev
150        INTEGER nonlinFreeSurf        INTEGER nonlinFreeSurf
151          INTEGER select_rStar
152        INTEGER tempAdvScheme        INTEGER tempAdvScheme
153        INTEGER saltAdvScheme        INTEGER saltAdvScheme
154        INTEGER tracerAdvScheme        INTEGER tracerAdvScheme
# Line 160  C     momPressureForcing :: Flag which t Line 169  C     momPressureForcing :: Flag which t
169  C                          on and off.  C                          on and off.
170  C     metricTerms   :: Flag which turns metric terms on or off.  C     metricTerms   :: Flag which turns metric terms on or off.
171  C     usingSphericalPolarMTerms :: If TRUE use spherical polar metric terms.  C     usingSphericalPolarMTerms :: If TRUE use spherical polar metric terms.
172    C     useNHMTerms :: If TRUE use non-hydrostatic metric terms.
173  C     useCoriolis   :: Flag which turns the coriolis terms on and off.  C     useCoriolis   :: Flag which turns the coriolis terms on and off.
174  C     tempDiffusion :: Flag which turns diffusion of temperature on  C     tempDiffusion :: Flag which turns diffusion of temperature on
175  C                     and off.  C                     and off.
# Line 205  C     usingZCoords     :: Set to indicat Line 215  C     usingZCoords     :: Set to indicat
215  C                        coords.  C                        coords.
216  C     setCenterDr    :: set cell Center depth and put Interface at the middle  C     setCenterDr    :: set cell Center depth and put Interface at the middle
217  C     nonHydrostatic :: Using non-hydrostatic terms  C     nonHydrostatic :: Using non-hydrostatic terms
218    C     quasiHydrostatic :: Using non-hydrostatic terms in hydrostatic algorithm
219  C     globalFiles    :: Selects between "global" and "tiled" files  C     globalFiles    :: Selects between "global" and "tiled" files
220    C     useSingleCpuIO :: On SGI platforms, option globalFiles is either
221    C                       slow (f77) or does not work (f90).  When
222    C                       useSingleCpuIO is set, mdsio_writefield.F
223    C                       outputs from master mpi process only.
224  C     allowFreezing  :: Allows water to freeze and form ice  C     allowFreezing  :: Allows water to freeze and form ice
225  C     groundAtK1  :: put the surface(k=1) at the Lower Boundary (=ground)  C     groundAtK1  :: put the surface(k=1) at the Lower Boundary (=ground)
226        COMMON /PARM_L/ usingCartesianGrid, usingSphericalPolarGrid,        COMMON /PARM_L/ usingCartesianGrid, usingSphericalPolarGrid,
# Line 219  C     groundAtK1  :: put the surface(k=1 Line 234  C     groundAtK1  :: put the surface(k=1
234       & useRealFreshWaterFlux,       & useRealFreshWaterFlux,
235       & rigidLid, implicitFreeSurface, exactConserv, uniformLin_PhiSurf,       & rigidLid, implicitFreeSurface, exactConserv, uniformLin_PhiSurf,
236       & momStepping, tempStepping, saltStepping, tr1Stepping,       & momStepping, tempStepping, saltStepping, tr1Stepping,
237       & metricTerms, usingSphericalPolarMTerms,       & metricTerms, usingSphericalPolarMTerms, useNHMTerms,
238       & useConstantF, useBetaPlaneF, useSphereF,       & useConstantF, useBetaPlaneF, useSphereF,
239       & useEnergyConservingCoriolis, useJamartWetPoints,       & useEnergyConservingCoriolis, useJamartWetPoints,
240       & implicitDiffusion, implicitViscosity,       & implicitDiffusion, implicitViscosity,
# Line 227  C     groundAtK1  :: put the surface(k=1 Line 242  C     groundAtK1  :: put the surface(k=1
242       & doThetaClimRelax, doSaltClimRelax, doTr1ClimRelax,       & doThetaClimRelax, doSaltClimRelax, doTr1ClimRelax,
243       & periodicExternalForcing,       & periodicExternalForcing,
244       & usingPCoords, usingZCoords, setCenterDr,       & usingPCoords, usingZCoords, setCenterDr,
245       & nonHydrostatic, globalFiles,       & nonHydrostatic, quasiHydrostatic, globalFiles, useSingleCpuIO,
246       & allowFreezing, groundAtK1,       & allowFreezing, groundAtK1,
247       & usePickupBeforeC35, debugMode,       & usePickupBeforeC35, debugMode,
248       & readPickupWithTracer, writePickupWithTracer       & readPickupWithTracer, writePickupWithTracer
# Line 235  C     groundAtK1  :: put the surface(k=1 Line 250  C     groundAtK1  :: put the surface(k=1
250        LOGICAL usingSphericalPolarGrid        LOGICAL usingSphericalPolarGrid
251        LOGICAL usingCurvilinearGrid        LOGICAL usingCurvilinearGrid
252        LOGICAL usingSphericalPolarMTerms        LOGICAL usingSphericalPolarMTerms
253          LOGICAL useNHMTerms
254        LOGICAL no_slip_sides        LOGICAL no_slip_sides
255        LOGICAL no_slip_bottom        LOGICAL no_slip_bottom
256        LOGICAL staggerTimeStep        LOGICAL staggerTimeStep
# Line 277  C     groundAtK1  :: put the surface(k=1 Line 293  C     groundAtK1  :: put the surface(k=1
293        LOGICAL usingZCoords        LOGICAL usingZCoords
294        LOGICAL setCenterDr        LOGICAL setCenterDr
295        LOGICAL nonHydrostatic        LOGICAL nonHydrostatic
296          LOGICAL quasiHydrostatic
297        LOGICAL globalFiles        LOGICAL globalFiles
298          LOGICAL useSingleCpuIO
299        LOGICAL allowFreezing        LOGICAL allowFreezing
300        LOGICAL groundAtK1        LOGICAL groundAtK1
301        LOGICAL usePickupBeforeC35        LOGICAL usePickupBeforeC35
# Line 315  C     delY        on input flags. Line 333  C     delY        on input flags.
333  C     gravity   :: Accel. due to gravity ( m/s^2 )  C     gravity   :: Accel. due to gravity ( m/s^2 )
334  C     recip_gravity and its inverse  C     recip_gravity and its inverse
335  C     gBaro     :: Accel. due to gravity used in barotropic equation ( m/s^2 )  C     gBaro     :: Accel. due to gravity used in barotropic equation ( m/s^2 )
336  C     ronil     :: Reference density  C     rhoNil    :: Reference density for the linear equation of state
337  C     rhoConst  :: Vertically constant reference density  C     rhoConst  :: Vertically constant reference density
338    C     rhoConstFresh :: Constant reference density for fresh water (rain)
339  C     startTime :: Start time for model ( s )  C     startTime :: Start time for model ( s )
340  C     phiMin    :: Latitude of southern most cell face.  C     phiMin    :: Latitude of southern most cell face.
341  C     thetaMin  :: Longitude of western most cell face (this  C     thetaMin  :: Longitude of western most cell face (this
# Line 367  C                    Frequency of checkp Line 386  C                    Frequency of checkp
386  C                    are referenced to this clock. ( s )  C                    are referenced to this clock. ( s )
387  C     deltaTMom    :: Timestep for momemtum equations ( s )  C     deltaTMom    :: Timestep for momemtum equations ( s )
388  C     deltaTtracer :: Timestep for tracer equations ( s )  C     deltaTtracer :: Timestep for tracer equations ( s )
389    C     deltaTfreesurf :: Timestep for free-surface equation ( s )
390  C     freesurfFac  :: Parameter to turn implicit free surface term on or off  C     freesurfFac  :: Parameter to turn implicit free surface term on or off
391  C                    freesurfac = 1. uses implicit free surface  C                    freesurfac = 1. uses implicit free surface
392  C                    freesurfac = 0. uses rigid lid  C                    freesurfac = 0. uses rigid lid
# Line 399  C     mtFacMom      :: Metric terms trac Line 419  C     mtFacMom      :: Metric terms trac
419  C     cosPower      :: Power of cosine of latitude to multiply viscosity  C     cosPower      :: Power of cosine of latitude to multiply viscosity
420  C     cAdjFreq      :: Frequency of convective adjustment  C     cAdjFreq      :: Frequency of convective adjustment
421  C  C
422  C     taveFreq      :: Frequency with which time-averaged model state is written to  C     taveFreq      :: Frequency with which time-averaged model state
423  C                     post-processing files ( s ).  C                      is written to post-processing files ( s ).
424    C     tave_lastIter :: (for state variable only) fraction of the last time
425    C                      step (of each taveFreq period) put in the time average.
426    C                      (fraction for 1rst iter = 1 - tave_lastIter)
427  C     tauThetaClimRelax :: Relaxation to climatology time scale ( s ).  C     tauThetaClimRelax :: Relaxation to climatology time scale ( s ).
428  C     lambdaThetaClimRelax :: Inverse time scale for relaxation ( 1/s ).  C     lambdaThetaClimRelax :: Inverse time scale for relaxation ( 1/s ).
429  C     tauSaltClimRelax :: Relaxation to climatology time scale ( s ).  C     tauSaltClimRelax :: Relaxation to climatology time scale ( s ).
# Line 427  C      --"-"--  Quadratic  ( linear: 1/s Line 450  C      --"-"--  Quadratic  ( linear: 1/s
450        COMMON /PARM_R/ cg2dTargetResidual, cg2dTargetResWunit,        COMMON /PARM_R/ cg2dTargetResidual, cg2dTargetResWunit,
451       & cg2dpcOffDFac, cg3dTargetResidual,       & cg2dpcOffDFac, cg3dTargetResidual,
452       & delP, delZ, delR, delRc, delX, delY,       & delP, delZ, delR, delRc, delX, delY,
453       & deltaT,deltaTmom, deltaTtracer, deltaTClock,abeps, startTime,       & deltaT, deltaTmom, deltaTtracer, deltaTfreesurf, deltaTClock,
454         & abeps, startTime,
455       & phiMin, thetaMin, rSphere, recip_RSphere, f0, beta,       & phiMin, thetaMin, rSphere, recip_RSphere, f0, beta,
456       & fCori, fCoriG,       & fCori, fCoriG, fCoriCos,
457       & viscAh,  viscAz,  viscA4,  viscAr, viscAstrain, viscAtension,       & viscAh,  viscAz,  viscA4,  viscAr, viscAstrain, viscAtension,
458       & diffKhT, diffKzT, diffK4T, diffKrT,       & diffKhT, diffKzT, diffK4T, diffKrT,
459       & diffKhS, diffKzS, diffK4S, diffKrS,       & diffKhS, diffKzS, diffK4S, diffKrS,
460       & delT, tauCD, rCD, freeSurfFac, implicSurfPress, implicDiv2Dflow,       & delT, tauCD, rCD, freeSurfFac, implicSurfPress, implicDiv2Dflow,
461       & hFacMin, hFacMinDz, hFacInf, hFacSup,       & hFacMin, hFacMinDz, hFacInf, hFacSup,
462       & gravity, recip_Gravity, gBaro, rhonil, recip_rhonil,       & gravity, recip_Gravity, gBaro, rhonil, recip_rhonil,
463       & recip_rhoConst, rhoConst, tRef, sRef,       & recip_rhoConst, rhoConst,
464         & rhoConstFresh, convertEmP2rUnit, tRef, sRef,
465       & endTime, chkPtFreq, pchkPtFreq, dumpFreq,       & endTime, chkPtFreq, pchkPtFreq, dumpFreq,
466       & diagFreq, taveFreq, monitorFreq,       & diagFreq, taveFreq, tave_lastIter, monitorFreq,
467       & afFacMom, vfFacMom, pfFacMom, cfFacMom, foFacMom, mtFacMom,       & afFacMom, vfFacMom, pfFacMom, cfFacMom, foFacMom, mtFacMom,
468       & cosPower, cAdjFreq, omega,       & cosPower, cAdjFreq, omega,
469       & tauThetaClimRelax, lambdaThetaClimRelax,       & tauThetaClimRelax, lambdaThetaClimRelax,
# Line 465  C      --"-"--  Quadratic  ( linear: 1/s Line 490  C      --"-"--  Quadratic  ( linear: 1/s
490        _RL deltaTClock        _RL deltaTClock
491        _RL deltaTmom        _RL deltaTmom
492        _RL deltaTtracer        _RL deltaTtracer
493          _RL deltaTfreesurf
494        _RL abeps        _RL abeps
495        _RL phiMin        _RL phiMin
496        _RL thetaMin        _RL thetaMin
# Line 508  C      --"-"--  Quadratic  ( linear: 1/s Line 534  C      --"-"--  Quadratic  ( linear: 1/s
534        _RL recip_rhonil        _RL recip_rhonil
535        _RL rhoConst        _RL rhoConst
536        _RL recip_rhoConst        _RL recip_rhoConst
537          _RL rhoConstFresh
538          _RL convertEmP2rUnit
539        _RL tRef(Nr)        _RL tRef(Nr)
540        _RL sRef(Nr)        _RL sRef(Nr)
541        _RS fCori(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)        _RS fCori(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
542        _RS fCoriG(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)        _RS fCoriG(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
543          _RS fCoriCos(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
544        _RL startTime        _RL startTime
545        _RL endTime        _RL endTime
546        _RL chkPtFreq        _RL chkPtFreq
# Line 519  C      --"-"--  Quadratic  ( linear: 1/s Line 548  C      --"-"--  Quadratic  ( linear: 1/s
548        _RL dumpFreq        _RL dumpFreq
549        _RL diagFreq        _RL diagFreq
550        _RL taveFreq        _RL taveFreq
551          _RL tave_lastIter
552        _RL monitorFreq        _RL monitorFreq
553        _RL afFacMom        _RL afFacMom
554        _RL vfFacMom        _RL vfFacMom
# Line 554  C      --"-"--  Quadratic  ( linear: 1/s Line 584  C      --"-"--  Quadratic  ( linear: 1/s
584        _RL Lamba_theta        _RL Lamba_theta
585        _RL recip_Cp        _RL recip_Cp
586    
587  C Equation of State (polynomial coeffients)  CmlC Equation of State (polynomial coeffients)
588        COMMON /PARM_EOS_NL/ eosC,eosSig0,eosRefT,eosRefS  Cml      COMMON /PARM_EOS_NL/ eosC,eosSig0,eosRefT,eosRefS
589        _RL eosC(9,Nr+1),eosSig0(Nr+1),eosRefT(Nr+1),eosRefS(Nr+1)  Cml      _RL eosC(9,Nr+1),eosSig0(Nr+1),eosRefT(Nr+1),eosRefS(Nr+1)
590  C Linear equation of state  CmlC Linear equation of state
591  C     tAlpha    :: Linear EOS thermal expansion coefficient ( 1/degree ).  CmlC     tAlpha    :: Linear EOS thermal expansion coefficient ( 1/degree ).
592  C     sBeta     :: Linear EOS haline contraction coefficient.  CmlC     sBeta     :: Linear EOS haline contraction coefficient.
593        COMMON /PARM_EOS_LIN/ tAlpha,sBeta,eosType  Cml      COMMON /PARM_EOS_LIN/ tAlpha,sBeta,eosType
594        _RL tAlpha  Cml      _RL tAlpha
595        _RL sBeta  Cml      _RL sBeta
       character*(6) eosType  
596    
597  C Atmospheric physical parameters (Ideal Gas EOS, ...)  C Atmospheric physical parameters (Ideal Gas EOS, ...)
598  C     atm_po    :: standard reference pressure  C     atm_Po    :: standard reference pressure
599  C     atm_cp    :: specific heat (Cp) of the (dry) air at constant pressure  C     atm_Cp    :: specific heat (Cp) of the (dry) air at constant pressure
600    C     atm_Rd    :: gas constant for dry air
601  C     atm_kappa :: kappa = R/Cp (R: constant of Ideal Gas EOS)  C     atm_kappa :: kappa = R/Cp (R: constant of Ideal Gas EOS)
602  C     Integr_GeoPot :: option to select the way we integrate the geopotential  C     integr_GeoPot :: option to select the way we integrate the geopotential
603  C                     (still a subject of discussions ...)  C                     (still a subject of discussions ...)
604        COMMON /PARM_ATM/ atm_cp, atm_kappa, atm_po,  C     selectFindRoSurf :: select the way surf. ref. pressure (=Ro_surf) is
605       &                  Integr_GeoPot  C             derived from the orography. Implemented: 0,1 (see INI_P_GROUND)
606        _RL atm_cp, atm_kappa, atm_po        COMMON /PARM_ATM/ atm_Cp, atm_Rd, atm_kappa, atm_Po,
607        INTEGER Integr_GeoPot       &                  integr_GeoPot, selectFindRoSurf
608          _RL atm_Po, atm_Cp, atm_Rd, atm_kappa
609          INTEGER integr_GeoPot, selectFindRoSurf
610    
611  C Logical flags for selecting packages  C Logical flags for selecting packages
612        LOGICAL useKPP        LOGICAL useKPP
# Line 587  C Logical flags for selecting packages Line 619  C Logical flags for selecting packages
619        LOGICAL useZONAL_FILT        LOGICAL useZONAL_FILT
620        LOGICAL useFLT        LOGICAL useFLT
621        LOGICAL usePTRACERS        LOGICAL usePTRACERS
622          LOGICAL useSEAICE
623    cswdblk -- add ---
624          LOGICAL useBulkforce
625          LOGICAL useThermSEAICE
626    cswdblk --- end add ---
627        COMMON /PARM_PACKAGES/        COMMON /PARM_PACKAGES/
628       &        useKPP, useGMRedi, useOBCS, useAIM, useECCO,       &        useKPP, useGMRedi, useOBCS, useAIM, useECCO,
629       &        useSHAP_FILT, useZONAL_FILT, useGrdchk, useFLT,       &        useSHAP_FILT, useZONAL_FILT, useGrdchk, useFLT,
630       &        usePTRACERS       &        usePTRACERS, useSEAICE,
631    cswdblk -- add ---
632         &        useThermSEAICE, useBulkforce
633    cswdblk --- end add ---

Legend:
Removed from v.1.71  
changed lines
  Added in v.1.85

  ViewVC Help
Powered by ViewVC 1.1.22