/[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.62 by jmc, Wed Feb 14 22:51:27 2001 UTC revision 1.63 by jmc, Tue Feb 20 15:06:21 2001 UTC
# Line 72  C                      pressure anomaly Line 72  C                      pressure anomaly
72  C                      In p coords phiHydiHyd is the geopotential  C                      In p coords phiHydiHyd is the geopotential
73  C                      surface height  C                      surface height
74  C                      anomaly.  C                      anomaly.
75  C     etaSurfX,      - Holds surface elevation gradient in X and Y.  C     phiSurfX, - gradient of Surface potentiel (Pressure/rho, ocean)
76  C     etaSurfY  C     phiSurfY             or geopotentiel (atmos) in X and Y direction
77  C     KappaRT,       - Total diffusion in vertical for T and S.  C     KappaRT,       - Total diffusion in vertical for T and S.
78  C     KappaRS          (background + spatially varying, isopycnal term).  C     KappaRS          (background + spatially varying, isopycnal term).
79  C     iMin, iMax     - Ranges and sub-block indices on which calculations  C     iMin, iMax     - Ranges and sub-block indices on which calculations
# Line 96  C                      index into fVerTe Line 96  C                      index into fVerTe
96        _RL phiHyd  (1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr)        _RL phiHyd  (1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr)
97        _RL rhokm1  (1-OLx:sNx+OLx,1-OLy:sNy+OLy)        _RL rhokm1  (1-OLx:sNx+OLx,1-OLy:sNy+OLy)
98        _RL rhok    (1-OLx:sNx+OLx,1-OLy:sNy+OLy)        _RL rhok    (1-OLx:sNx+OLx,1-OLy:sNy+OLy)
99          _RL phiSurfX(1-OLx:sNx+OLx,1-OLy:sNy+OLy)
100          _RL phiSurfY(1-OLx:sNx+OLx,1-OLy:sNy+OLy)
101        _RL KappaRT (1-Olx:sNx+Olx,1-Oly:sNy+Oly,Nr)        _RL KappaRT (1-Olx:sNx+Olx,1-Oly:sNy+Oly,Nr)
102        _RL KappaRS (1-Olx:sNx+Olx,1-Oly:sNy+Oly,Nr)        _RL KappaRS (1-Olx:sNx+Olx,1-Oly:sNy+Oly,Nr)
103        _RL KappaRU (1-Olx:sNx+Olx,1-Oly:sNy+Oly,Nr)        _RL KappaRU (1-Olx:sNx+Olx,1-Oly:sNy+Oly,Nr)
# Line 200  C     uninitialised but inert locations. Line 202  C     uninitialised but inert locations.
202          rhoKM1 (i,j) = 0. _d 0          rhoKM1 (i,j) = 0. _d 0
203          rhok   (i,j) = 0. _d 0          rhok   (i,j) = 0. _d 0
204          maskC  (i,j) = 0. _d 0          maskC  (i,j) = 0. _d 0
205            phiSurfX(i,j) = 0. _d 0
206            phiSurfY(i,j) = 0. _d 0
207         ENDDO         ENDDO
208        ENDDO        ENDDO
209    
# Line 523  C--      Apply open boundary conditions Line 527  C--      Apply open boundary conditions
527  C--     End If implicitDiffusion  C--     End If implicitDiffusion
528          ENDIF          ENDIF
529    
530    C--     Start computation of dynamics
531            iMin = 1-OLx+2
532            iMax = sNx+OLx-1
533            jMin = 1-OLy+2
534            jMax = sNy+OLy-1
535    
536    C--     Explicit part of the Surface Pressure Gradient (add in TIMESTEP)
537    C       (note: this loop will be replaced by CALL CALC_GRAD_ETA)
538            IF (implicSurfPress.NE.1.) THEN
539              DO j=jMin,jMax
540                DO i=iMin,iMax
541                  phiSurfX(i,j) = _recip_dxC(i,j,bi,bj)*gBaro
542         &           *(cg2d_x(i,j,bi,bj)-cg2d_x(i-1,j,bi,bj))
543                  phiSurfY(i,j) = _recip_dyC(i,j,bi,bj)*gBaro
544         &           *(cg2d_x(i,j,bi,bj)-cg2d_x(i,j-1,bi,bj))
545                ENDDO
546              ENDDO
547            ENDIF
548    
549  C--     Start of dynamics loop  C--     Start of dynamics loop
550          DO k=1,Nr          DO k=1,Nr
# Line 536  C--       kDown  Cycles through 2,1 to p Line 557  C--       kDown  Cycles through 2,1 to p
557            kup  = 1+MOD(k+1,2)            kup  = 1+MOD(k+1,2)
558            kDown= 1+MOD(k,2)            kDown= 1+MOD(k,2)
559    
           iMin = 1-OLx+2  
           iMax = sNx+OLx-1  
           jMin = 1-OLy+2  
           jMax = sNy+OLy-1  
   
560  C--      Integrate hydrostatic balance for phiHyd with BC of  C--      Integrate hydrostatic balance for phiHyd with BC of
561  C        phiHyd(z=0)=0  C        phiHyd(z=0)=0
562  C        distinguishe between Stagger and Non Stagger time stepping  C        distinguishe between Stagger and Non Stagger time stepping
# Line 567  C        and step forward storing the re Line 583  C        and step forward storing the re
583       U         fVerU, fVerV,       U         fVerU, fVerV,
584       I         myTime, myThid)       I         myTime, myThid)
585             CALL TIMESTEP(             CALL TIMESTEP(
586       I         bi,bj,iMin,iMax,jMin,jMax,k,phiHyd,       I         bi,bj,iMin,iMax,jMin,jMax,k,
587         I         phiHyd, phiSurfX, phiSurfY,
588       I         myIter, myThid)       I         myIter, myThid)
589    
590  #ifdef   ALLOW_OBCS  #ifdef   ALLOW_OBCS

Legend:
Removed from v.1.62  
changed lines
  Added in v.1.63

  ViewVC Help
Powered by ViewVC 1.1.22