/[MITgcm]/MITgcm/model/src/dynamics.F
ViewVC logotype

Diff of /MITgcm/model/src/dynamics.F

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

revision 1.106 by jmc, Sat Jan 3 01:01:34 2004 UTC revision 1.110 by jmc, Wed Nov 10 03:02:00 2004 UTC
# Line 77  C     == Global variables === Line 77  C     == Global variables ===
77  #include "CD_CODE_VARS.h"  #include "CD_CODE_VARS.h"
78  #endif  #endif
79  #include "GRID.h"  #include "GRID.h"
 #ifdef ALLOW_PASSIVE_TRACER  
 #include "TR1.h"  
 #endif  
80  #ifdef ALLOW_AUTODIFF_TAMC  #ifdef ALLOW_AUTODIFF_TAMC
81  # include "tamc.h"  # include "tamc.h"
82  # include "tamc_keys.h"  # include "tamc_keys.h"
# Line 137  C     phiHydF    :: hydrostatic potentia Line 134  C     phiHydF    :: hydrostatic potentia
134  C     dPhiHydX,Y :: Gradient (X & Y directions) of hydrostatic potential anom.  C     dPhiHydX,Y :: Gradient (X & Y directions) of hydrostatic potential anom.
135  C     phiSurfX,  ::  gradient of Surface potential (Pressure/rho, ocean)  C     phiSurfX,  ::  gradient of Surface potential (Pressure/rho, ocean)
136  C     phiSurfY             or geopotential (atmos) in X and Y direction  C     phiSurfY             or geopotential (atmos) in X and Y direction
137    C     guDissip   :: dissipation tendency (all explicit terms), u component
138    C     gvDissip   :: dissipation tendency (all explicit terms), v component
139  C     iMin, iMax     - Ranges and sub-block indices on which calculations  C     iMin, iMax     - Ranges and sub-block indices on which calculations
140  C     jMin, jMax       are applied.  C     jMin, jMax       are applied.
141  C     bi, bj  C     bi, bj
# Line 151  C                      index into fVerTe Line 150  C                      index into fVerTe
150        _RL dPhiHydY(1-Olx:sNx+Olx,1-Oly:sNy+Oly)        _RL dPhiHydY(1-Olx:sNx+Olx,1-Oly:sNy+Oly)
151        _RL phiSurfX(1-OLx:sNx+OLx,1-OLy:sNy+OLy)        _RL phiSurfX(1-OLx:sNx+OLx,1-OLy:sNy+OLy)
152        _RL phiSurfY(1-OLx:sNx+OLx,1-OLy:sNy+OLy)        _RL phiSurfY(1-OLx:sNx+OLx,1-OLy:sNy+OLy)
153          _RL guDissip(1-OLx:sNx+OLx,1-OLy:sNy+OLy)
154          _RL gvDissip(1-OLx:sNx+OLx,1-OLy:sNy+OLy)
155        _RL KappaRU (1-Olx:sNx+Olx,1-Oly:sNy+Oly,Nr)        _RL KappaRU (1-Olx:sNx+Olx,1-Oly:sNy+Oly,Nr)
156        _RL KappaRV (1-Olx:sNx+Olx,1-Oly:sNy+Oly,Nr)        _RL KappaRV (1-Olx:sNx+Olx,1-Oly:sNy+Oly,Nr)
157    
# Line 281  cph) Line 282  cph)
282            dPhiHydY(i,j)  = 0. _d 0            dPhiHydY(i,j)  = 0. _d 0
283            phiSurfX(i,j)  = 0. _d 0            phiSurfX(i,j)  = 0. _d 0
284            phiSurfY(i,j)  = 0. _d 0            phiSurfY(i,j)  = 0. _d 0
285              guDissip(i,j)  = 0. _d 0
286              gvDissip(i,j)  = 0. _d 0
287           ENDDO           ENDDO
288          ENDDO          ENDDO
289    
# Line 348  C--       kDown  Cycles through 2,1 to p Line 351  C--       kDown  Cycles through 2,1 to p
351  c  c
352  CADJ STORE totphihyd (:,:,k,bi,bj)  CADJ STORE totphihyd (:,:,k,bi,bj)
353  CADJ &     = comlev1_bibj_k, key=kkey, byte=isbyte  CADJ &     = comlev1_bibj_k, key=kkey, byte=isbyte
 CADJ STORE gt (:,:,k,bi,bj)  
 CADJ &     = comlev1_bibj_k, key=kkey, byte=isbyte  
 CADJ STORE gs (:,:,k,bi,bj)  
 CADJ &     = comlev1_bibj_k, key=kkey, byte=isbyte  
354  CADJ STORE theta (:,:,k,bi,bj)  CADJ STORE theta (:,:,k,bi,bj)
355  CADJ &     = comlev1_bibj_k, key=kkey, byte=isbyte  CADJ &     = comlev1_bibj_k, key=kkey, byte=isbyte
356  CADJ STORE salt  (:,:,k,bi,bj)  CADJ STORE salt  (:,:,k,bi,bj)
# Line 360  CADJ &     = comlev1_bibj_k, key=kkey, b Line 359  CADJ &     = comlev1_bibj_k, key=kkey, b
359    
360  C--      Integrate hydrostatic balance for phiHyd with BC of  C--      Integrate hydrostatic balance for phiHyd with BC of
361  C        phiHyd(z=0)=0  C        phiHyd(z=0)=0
362  C        distinguishe between Stagger and Non Stagger time stepping           CALL CALC_PHI_HYD(
          IF (staggerTimeStep) THEN  
            CALL CALC_PHI_HYD(  
      I        bi,bj,iMin,iMax,jMin,jMax,k,  
      I        gT, gS,  
      U        phiHydF,  
      O        phiHydC, dPhiHydX, dPhiHydY,  
      I        myTime, myIter, myThid )  
          ELSE  
            CALL CALC_PHI_HYD(  
363       I        bi,bj,iMin,iMax,jMin,jMax,k,       I        bi,bj,iMin,iMax,jMin,jMax,k,
364       I        theta, salt,       I        theta, salt,
365       U        phiHydF,       U        phiHydF,
366       O        phiHydC, dPhiHydX, dPhiHydY,       O        phiHydC, dPhiHydX, dPhiHydY,
367       I        myTime, myIter, myThid )       I        myTime, myIter, myThid )
          ENDIF  
368    
369  C--      Calculate accelerations in the momentum equations (gU, gV, ...)  C--      Calculate accelerations in the momentum equations (gU, gV, ...)
370  C        and step forward storing the result in gU, gV, etc...  C        and step forward storing the result in gU, gV, etc...
# Line 392  C        and step forward storing the re Line 381  C        and step forward storing the re
381       I         bi,bj,iMin,iMax,jMin,jMax,k,kup,kDown,       I         bi,bj,iMin,iMax,jMin,jMax,k,kup,kDown,
382       I         dPhiHydX,dPhiHydY,KappaRU,KappaRV,       I         dPhiHydX,dPhiHydY,KappaRU,KappaRV,
383       U         fVerU, fVerV,       U         fVerU, fVerV,
384         O         guDissip, gvDissip,
385       I         myTime, myIter, myThid)       I         myTime, myIter, myThid)
386  #endif  #endif
387             CALL TIMESTEP(             CALL TIMESTEP(
388       I         bi,bj,iMin,iMax,jMin,jMax,k,       I         bi,bj,iMin,iMax,jMin,jMax,k,
389       I         dPhiHydX,dPhiHydY, phiSurfX, phiSurfY,       I         dPhiHydX,dPhiHydY, phiSurfX, phiSurfY,
390         I         guDissip, gvDissip,
391       I         myTime, myIter, myThid)       I         myTime, myIter, myThid)
392    
393  #ifdef   ALLOW_OBCS  #ifdef   ALLOW_OBCS
# Line 477  C--     End implicit Vertical advection Line 468  C--     End implicit Vertical advection
468         ENDDO         ENDDO
469        ENDDO        ENDDO
470    
471    #ifdef ALLOW_OBCS
472          IF (useOBCS) THEN
473           CALL OBCS_PRESCRIBE_EXCHANGES(myThid)
474          ENDIF
475    #endif
476    
477  Cml(  Cml(
478  C     In order to compare the variance of phiHydLow of a p/z-coordinate  C     In order to compare the variance of phiHydLow of a p/z-coordinate
479  C     run with etaH of a z/p-coordinate run the drift of phiHydLow  C     run with etaH of a z/p-coordinate run the drift of phiHydLow

Legend:
Removed from v.1.106  
changed lines
  Added in v.1.110

  ViewVC Help
Powered by ViewVC 1.1.22