/[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.120 by jmc, Mon Jul 11 19:30:42 2005 UTC revision 1.124 by jmc, Sun Sep 11 20:52:09 2005 UTC
# Line 30  C     | pressure such that the resulting Line 30  C     | pressure such that the resulting
30  C     | with the free-surface evolution or the rigid-lid:  C     | with the free-surface evolution or the rigid-lid:
31  C     |   U[n] = U* + dt x d/dx P  C     |   U[n] = U* + dt x d/dx P
32  C     |   V[n] = V* + dt x d/dy P  C     |   V[n] = V* + dt x d/dy P
33    C     |   W[n] = W* + dt x d/dz P  (NH mode)
34  C     |  C     |
35  C     | "Calculation of Gs"  C     | "Calculation of Gs"
36  C     | ===================  C     | ===================
# Line 90  C     == Global variables === Line 91  C     == Global variables ===
91  C     !CALLING SEQUENCE:  C     !CALLING SEQUENCE:
92  C     DYNAMICS()  C     DYNAMICS()
93  C      |  C      |
94    C      |-- CALC_EP_FORCING
95    C      |
96  C      |-- CALC_GRAD_PHI_SURF  C      |-- CALC_GRAD_PHI_SURF
97  C      |  C      |
98  C      |-- CALC_VISCOSITY  C      |-- CALC_VISCOSITY
# Line 104  C      |-- TIMESTEP Line 107  C      |-- TIMESTEP
107  C      |  C      |
108  C      |-- OBCS_APPLY_UV  C      |-- OBCS_APPLY_UV
109  C      |  C      |
110    C      |-- MOM_U_IMPLICIT_R      
111    C      |-- MOM_V_IMPLICIT_R      
112    C      |
113  C      |-- IMPLDIFF        C      |-- IMPLDIFF      
114  C      |  C      |
115  C      |-- OBCS_APPLY_UV  C      |-- OBCS_APPLY_UV
116  C      |  C      |
117  C      |-- CALL DEBUG_STATS_RL  C      |-- CALC_GW
118    C      |
119    C      |-- DIAGNOSTICS_FILL
120    C      |-- DEBUG_STATS_RL
121    
122  C     !INPUT/OUTPUT PARAMETERS:  C     !INPUT/OUTPUT PARAMETERS:
123  C     == Routine arguments ==  C     == Routine arguments ==
# Line 210  C         (1 + dt * K * d_zz) salt[n] = Line 219  C         (1 + dt * K * d_zz) salt[n] =
219  C---  C---
220  CEOP  CEOP
221    
222    #ifdef ALLOW_DEBUG
223          IF ( debugLevel .GE. debLevB )
224         &   CALL DEBUG_ENTER( 'DYNAMICS', myThid )
225    #endif
226    
227  C-- Call to routine for calculation of  C-- Call to routine for calculation of
228  C   Eliassen-Palm-flux-forced U-tendency,  C   Eliassen-Palm-flux-forced U-tendency,
229  C   if desired:  C   if desired:
# Line 262  C     uninitialised but inert locations. Line 276  C     uninitialised but inert locations.
276  cph(  cph(
277  c--   need some re-initialisation here to break dependencies  c--   need some re-initialisation here to break dependencies
278  cph)  cph)
279             gu(i,j,k,bi,bj) = 0. _d 0             gU(i,j,k,bi,bj) = 0. _d 0
280             gv(i,j,k,bi,bj) = 0. _d 0             gV(i,j,k,bi,bj) = 0. _d 0
281  #endif  #endif
282            ENDDO            ENDDO
283           ENDDO           ENDDO
# Line 370  C        and step forward storing the re Line 384  C        and step forward storing the re
384  #ifdef ALLOW_MOM_FLUXFORM  #ifdef ALLOW_MOM_FLUXFORM
385             IF (.NOT. vectorInvariantMomentum) CALL MOM_FLUXFORM(             IF (.NOT. vectorInvariantMomentum) CALL MOM_FLUXFORM(
386       I         bi,bj,iMin,iMax,jMin,jMax,k,kup,kDown,       I         bi,bj,iMin,iMax,jMin,jMax,k,kup,kDown,
387       I         dPhiHydX,dPhiHydY,KappaRU,KappaRV,       I         KappaRU, KappaRV,
388       U         fVerU, fVerV,       U         fVerU, fVerV,
389         O         guDissip, gvDissip,
390       I         myTime, myIter, myThid)       I         myTime, myIter, myThid)
391  #endif  #endif
392  #ifdef ALLOW_MOM_VECINV  #ifdef ALLOW_MOM_VECINV
393             IF (vectorInvariantMomentum) CALL MOM_VECINV(             IF (vectorInvariantMomentum) CALL MOM_VECINV(
394       I         bi,bj,iMin,iMax,jMin,jMax,k,kup,kDown,       I         bi,bj,iMin,iMax,jMin,jMax,k,kup,kDown,
395       I         dPhiHydX,dPhiHydY,KappaRU,KappaRV,       I         KappaRU, KappaRV,
396       U         fVerU, fVerV,       U         fVerU, fVerV,
397       O         guDissip, gvDissip,       O         guDissip, gvDissip,
398       I         myTime, myIter, myThid)       I         myTime, myIter, myThid)
# Line 418  CADJ STORE gU(:,:,:,bi,bj) = comlev1_bib Line 433  CADJ STORE gU(:,:,:,bi,bj) = comlev1_bib
433  #endif    /* ALLOW_AUTODIFF_TAMC */  #endif    /* ALLOW_AUTODIFF_TAMC */
434            CALL IMPLDIFF(            CALL IMPLDIFF(
435       I         bi, bj, iMin, iMax, jMin, jMax,       I         bi, bj, iMin, iMax, jMin, jMax,
436       I         0, KappaRU,recip_HFacW,       I         -1, KappaRU,recip_HFacW,
437       U         gU,       U         gU,
438       I         myThid )       I         myThid )
439  #ifdef    ALLOW_AUTODIFF_TAMC  #ifdef    ALLOW_AUTODIFF_TAMC
# Line 427  CADJ STORE gV(:,:,:,bi,bj) = comlev1_bib Line 442  CADJ STORE gV(:,:,:,bi,bj) = comlev1_bib
442  #endif    /* ALLOW_AUTODIFF_TAMC */  #endif    /* ALLOW_AUTODIFF_TAMC */
443            CALL IMPLDIFF(            CALL IMPLDIFF(
444       I         bi, bj, iMin, iMax, jMin, jMax,       I         bi, bj, iMin, iMax, jMin, jMax,
445       I         0, KappaRV,recip_HFacS,       I         -2, KappaRV,recip_HFacS,
446       U         gV,       U         gV,
447       I         myThid )       I         myThid )
448          ENDIF          ENDIF
# Line 474  C--     End implicit Vertical advection Line 489  C--     End implicit Vertical advection
489    
490  C---+----1----+----2----+----3----+----4----+----5----+----6----+----7-|--+----|  C---+----1----+----2----+----3----+----4----+----5----+----6----+----7-|--+----|
491    
492    #ifdef ALLOW_NONHYDROSTATIC
493    C--   Step forward W field in N-H algorithm
494          IF ( momStepping .AND. nonHydrostatic ) THEN
495    #ifdef ALLOW_DEBUG
496             IF ( debugLevel .GE. debLevB )
497         &     CALL DEBUG_CALL('CALC_GW', myThid )
498    #endif
499             CALL TIMER_START('CALC_GW          [DYNAMICS]',myThid)
500             CALL CALC_GW( myTime, myIter, myThid )
501             CALL TIMER_STOP ('CALC_GW          [DYNAMICS]',myThid)
502          ENDIF
503    #endif
504    
505    C---+----1----+----2----+----3----+----4----+----5----+----6----+----7-|--+----|
506    
507  Cml(  Cml(
508  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
509  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
# Line 519  Cml) Line 549  Cml)
549        ENDIF        ENDIF
550  #endif  #endif
551    
552    #ifdef ALLOW_DEBUG
553          IF ( debugLevel .GE. debLevB )
554         &   CALL DEBUG_LEAVE( 'DYNAMICS', myThid )
555    #endif
556    
557        RETURN        RETURN
558        END        END

Legend:
Removed from v.1.120  
changed lines
  Added in v.1.124

  ViewVC Help
Powered by ViewVC 1.1.22