/[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 by heimbach, Thu Sep 27 20:12:10 2001 UTC
# Line 260  CHPF$&                  ) Line 260  CHPF$&                  )
260  #ifdef ALLOW_AUTODIFF_TAMC  #ifdef ALLOW_AUTODIFF_TAMC
261            act1 = bi - myBxLo(myThid)            act1 = bi - myBxLo(myThid)
262            max1 = myBxHi(myThid) - myBxLo(myThid) + 1            max1 = myBxHi(myThid) - myBxLo(myThid) + 1
   
263            act2 = bj - myByLo(myThid)            act2 = bj - myByLo(myThid)
264            max2 = myByHi(myThid) - myByLo(myThid) + 1            max2 = myByHi(myThid) - myByLo(myThid) + 1
   
265            act3 = myThid - 1            act3 = myThid - 1
266            max3 = nTx*nTy            max3 = nTx*nTy
   
267            act4 = ikey_dynamics - 1            act4 = ikey_dynamics - 1
   
268            ikey = (act1 + 1) + act2*max1            ikey = (act1 + 1) + act2*max1
269       &                      + act3*max1*max2       &                      + act3*max1*max2
270       &                      + act4*max1*max2*max3       &                      + act4*max1*max2*max3
# Line 291  C--     Start computation of dynamics Line 287  C--     Start computation of dynamics
287          jMax = sNy+OLy-1          jMax = sNy+OLy-1
288    
289  #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  
290  CADJ STORE wvel (:,:,:,bi,bj) = comlev1_bibj, key = ikey, byte = isbyte  CADJ STORE wvel (:,:,:,bi,bj) = comlev1_bibj, key = ikey, byte = isbyte
291  #endif /* ALLOW_AUTODIFF_TAMC */  #endif /* ALLOW_AUTODIFF_TAMC */
292    
# Line 306  C       (note: this loop will be replace Line 300  C       (note: this loop will be replace
300       I         myThid )                               I         myThid )                        
301          ENDIF          ENDIF
302    
303    #ifdef ALLOW_AUTODIFF_TAMC
304    CADJ STORE uvel (:,:,:,bi,bj) = comlev1_bibj, key=ikey, byte=isbyte
305    CADJ STORE vvel (:,:,:,bi,bj) = comlev1_bibj, key=ikey, byte=isbyte
306    #ifdef ALLOW_KPP
307    CADJ STORE KPPviscAz (:,:,:,bi,bj)
308    CADJ &                 = comlev1_bibj, key=ikey, byte=isbyte
309    #endif /* ALLOW_KPP */
310    #endif /* ALLOW_AUTODIFF_TAMC */
311    
312  #ifdef  INCLUDE_CALC_DIFFUSIVITY_CALL  #ifdef  INCLUDE_CALC_DIFFUSIVITY_CALL
313  C--      Calculate the total vertical diffusivity  C--      Calculate the total vertical diffusivity
314          DO k=1,Nr          DO k=1,Nr

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

  ViewVC Help
Powered by ViewVC 1.1.22