/[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.96 by jmc, Thu Apr 17 13:41:34 2003 UTC revision 1.97 by heimbach, Mon Jun 23 22:32:02 2003 UTC
# Line 204  C         (1 + dt * K * d_zz) salt[n] = Line 204  C         (1 + dt * K * d_zz) salt[n] =
204  C---  C---
205  CEOP  CEOP
206    
 C--   Set up work arrays with valid (i.e. not NaN) values  
 C     These inital values do not alter the numerical results. They  
 C     just ensure that all memory references are to valid floating  
 C     point numbers. This prevents spurious hardware signals due to  
 C     uninitialised but inert locations.  
       DO j=1-OLy,sNy+OLy  
        DO i=1-OLx,sNx+OLx  
         phiSurfX(i,j) = 0. _d 0  
         phiSurfY(i,j) = 0. _d 0  
        ENDDO  
       ENDDO  
   
207  C-- Call to routine for calculation of  C-- Call to routine for calculation of
208  C   Eliassen-Palm-flux-forced U-tendency,  C   Eliassen-Palm-flux-forced U-tendency,
209  C   if desired:  C   if desired:
# Line 253  CHPF$&                  ) Line 241  CHPF$&                  )
241       &                      + act4*max1*max2*max3       &                      + act4*max1*max2*max3
242  #endif /* ALLOW_AUTODIFF_TAMC */  #endif /* ALLOW_AUTODIFF_TAMC */
243    
244  C--     Set up work arrays that need valid initial values  C--   Set up work arrays with valid (i.e. not NaN) values
245    C     These inital values do not alter the numerical results. They
246    C     just ensure that all memory references are to valid floating
247    C     point numbers. This prevents spurious hardware signals due to
248    C     uninitialised but inert locations.
249    
250          DO k=1,Nr          DO k=1,Nr
251           DO j=1-OLy,sNy+OLy           DO j=1-OLy,sNy+OLy
252            DO i=1-OLx,sNx+OLx            DO i=1-OLx,sNx+OLx
253             KappaRU(i,j,k) = 0. _d 0             KappaRU(i,j,k) = 0. _d 0
254             KappaRV(i,j,k) = 0. _d 0             KappaRV(i,j,k) = 0. _d 0
255    #ifdef ALLOW_AUTODIFF_TAMC
256    cph(
257    c--   need some re-initialisation here to break dependencies
258    c--   totphihyd is assumed zero from ini_pressure, i.e.
259    c--   avoiding iterate pressure p = integral of (g*rho(p)*dz)
260    cph)
261               totPhiHyd(i,j,k,bi,bj) = 0. _d 0
262               gu(i,j,k,bi,bj) = 0. _d 0
263               gv(i,j,k,bi,bj) = 0. _d 0
264    #endif
265            ENDDO            ENDDO
266           ENDDO           ENDDO
267          ENDDO          ENDDO
# Line 272  C--     Set up work arrays that need val Line 275  C--     Set up work arrays that need val
275            phiHydC (i,j)  = 0. _d 0            phiHydC (i,j)  = 0. _d 0
276            dPhiHydX(i,j)  = 0. _d 0            dPhiHydX(i,j)  = 0. _d 0
277            dPhiHydY(i,j)  = 0. _d 0            dPhiHydY(i,j)  = 0. _d 0
278              phiSurfX(i,j)  = 0. _d 0
279              phiSurfY(i,j)  = 0. _d 0
280           ENDDO           ENDDO
281          ENDDO          ENDDO
282    
# Line 398  CADJ STORE gU(:,:,:,bi,bj) = comlev1_bib Line 403  CADJ STORE gU(:,:,:,bi,bj) = comlev1_bib
403       U         gU,       U         gU,
404       I         myThid )       I         myThid )
405  #ifdef    ALLOW_AUTODIFF_TAMC  #ifdef    ALLOW_AUTODIFF_TAMC
406  CADJ STORE gVNm1(:,:,:,bi,bj) = comlev1_bibj , key=idynkey, byte=isbyte  CADJ STORE gV(:,:,:,bi,bj) = comlev1_bibj , key=idynkey, byte=isbyte
407  #endif    /* ALLOW_AUTODIFF_TAMC */  #endif    /* ALLOW_AUTODIFF_TAMC */
408            CALL IMPLDIFF(            CALL IMPLDIFF(
409       I         bi, bj, iMin, iMax, jMin, jMax,       I         bi, bj, iMin, iMax, jMin, jMax,

Legend:
Removed from v.1.96  
changed lines
  Added in v.1.97

  ViewVC Help
Powered by ViewVC 1.1.22