/[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.82 by cnh, Wed Sep 26 18:09:14 2001 UTC revision 1.83.2.1 by adcroft, Tue Feb 26 16:04:47 2002 UTC
# Line 113  C      | Line 113  C      |
113  C      |-- OBCS_APPLY_UV  C      |-- OBCS_APPLY_UV
114  C      |  C      |
115  C      |-- CALL TIMEAVE_CUMUL_1T  C      |-- CALL TIMEAVE_CUMUL_1T
 C      |-- CALL TIMEAVE_CUMULATE  
116  C      |-- CALL DEBUG_STATS_RL  C      |-- CALL DEBUG_STATS_RL
117    
118  C     !INPUT/OUTPUT PARAMETERS:  C     !INPUT/OUTPUT PARAMETERS:
# Line 158  C                      index into fVerTe Line 157  C                      index into fVerTe
157        _RL sigmaY  (1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr)        _RL sigmaY  (1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr)
158        _RL sigmaR  (1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr)        _RL sigmaR  (1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr)
159    
 C This is currently used by IVDC and Diagnostics  
       _RL ConvectCount (1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr)  
   
160        INTEGER iMin, iMax        INTEGER iMin, iMax
161        INTEGER jMin, jMax        INTEGER jMin, jMax
162        INTEGER bi, bj        INTEGER bi, bj
# Line 260  CHPF$&                  ) Line 256  CHPF$&                  )
256  #ifdef ALLOW_AUTODIFF_TAMC  #ifdef ALLOW_AUTODIFF_TAMC
257            act1 = bi - myBxLo(myThid)            act1 = bi - myBxLo(myThid)
258            max1 = myBxHi(myThid) - myBxLo(myThid) + 1            max1 = myBxHi(myThid) - myBxLo(myThid) + 1
   
259            act2 = bj - myByLo(myThid)            act2 = bj - myByLo(myThid)
260            max2 = myByHi(myThid) - myByLo(myThid) + 1            max2 = myByHi(myThid) - myByLo(myThid) + 1
   
261            act3 = myThid - 1            act3 = myThid - 1
262            max3 = nTx*nTy            max3 = nTx*nTy
   
263            act4 = ikey_dynamics - 1            act4 = ikey_dynamics - 1
   
264            ikey = (act1 + 1) + act2*max1            ikey = (act1 + 1) + act2*max1
265       &                      + act3*max1*max2       &                      + act3*max1*max2
266       &                      + act4*max1*max2*max3       &                      + act4*max1*max2*max3
# Line 291  C--     Start computation of dynamics Line 283  C--     Start computation of dynamics
283          jMax = sNy+OLy-1          jMax = sNy+OLy-1
284    
285  #ifdef ALLOW_AUTODIFF_TAMC  #ifdef ALLOW_AUTODIFF_TAMC
 CADJ STORE uvel (:,:,:,bi,bj) = comlev1_bibj, key = ikey, byte = isbyte  
 CADJ STORE vvel (:,:,:,bi,bj) = comlev1_bibj, key = ikey, byte = isbyte  
286  CADJ STORE wvel (:,:,:,bi,bj) = comlev1_bibj, key = ikey, byte = isbyte  CADJ STORE wvel (:,:,:,bi,bj) = comlev1_bibj, key = ikey, byte = isbyte
287  #endif /* ALLOW_AUTODIFF_TAMC */  #endif /* ALLOW_AUTODIFF_TAMC */
288    
# Line 306  C       (note: this loop will be replace Line 296  C       (note: this loop will be replace
296       I         myThid )                               I         myThid )                        
297          ENDIF          ENDIF
298    
299    #ifdef ALLOW_AUTODIFF_TAMC
300    CADJ STORE uvel (:,:,:,bi,bj) = comlev1_bibj, key=ikey, byte=isbyte
301    CADJ STORE vvel (:,:,:,bi,bj) = comlev1_bibj, key=ikey, byte=isbyte
302    #ifdef ALLOW_KPP
303    CADJ STORE KPPviscAz (:,:,:,bi,bj)
304    CADJ &                 = comlev1_bibj, key=ikey, byte=isbyte
305    #endif /* ALLOW_KPP */
306    #endif /* ALLOW_AUTODIFF_TAMC */
307    
308  #ifdef  INCLUDE_CALC_DIFFUSIVITY_CALL  #ifdef  INCLUDE_CALC_DIFFUSIVITY_CALL
309  C--      Calculate the total vertical diffusivity  C--      Calculate the total vertical diffusivity
310          DO k=1,Nr          DO k=1,Nr
# Line 462  Cjmc(end) Line 461  Cjmc(end)
461          IF (taveFreq.GT.0.) THEN          IF (taveFreq.GT.0.) THEN
462            CALL TIMEAVE_CUMUL_1T(phiHydtave, phiHyd, Nr,            CALL TIMEAVE_CUMUL_1T(phiHydtave, phiHyd, Nr,
463       I                              deltaTclock, bi, bj, myThid)       I                              deltaTclock, bi, bj, myThid)
           IF (ivdc_kappa.NE.0.) THEN  
             CALL TIMEAVE_CUMULATE(ConvectCountTave, ConvectCount, Nr,  
      I                              deltaTclock, bi, bj, myThid)  
           ENDIF  
464          ENDIF          ENDIF
465  #endif /* ALLOW_TIMEAVE */  #endif /* ALLOW_TIMEAVE */
466    

Legend:
Removed from v.1.82  
changed lines
  Added in v.1.83.2.1

  ViewVC Help
Powered by ViewVC 1.1.22