/[MITgcm]/MITgcm/pkg/mom_vecinv/mom_vecinv.F
ViewVC logotype

Diff of /MITgcm/pkg/mom_vecinv/mom_vecinv.F

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.31 by jmc, Wed Nov 10 03:05:04 2004 UTC revision 1.46 by jmc, Sun Sep 4 19:29:03 2005 UTC
# Line 5  C $Name$ Line 5  C $Name$
5    
6        SUBROUTINE MOM_VECINV(        SUBROUTINE MOM_VECINV(
7       I        bi,bj,iMin,iMax,jMin,jMax,k,kUp,kDown,       I        bi,bj,iMin,iMax,jMin,jMax,k,kUp,kDown,
8       I        dPhiHydX,dPhiHydY,KappaRU,KappaRV,       I        KappaRU, KappaRV,
9       U        fVerU, fVerV,       U        fVerU, fVerV,
10       O        guDiss, gvDiss,       O        guDiss, gvDiss,
11       I        myTime, myIter, myThid)       I        myTime, myIter, myThid)
# Line 42  C     == Global variables == Line 42  C     == Global variables ==
42  C     == Routine arguments ==  C     == Routine arguments ==
43  C     fVerU  :: Flux of momentum in the vertical direction, out of the upper  C     fVerU  :: Flux of momentum in the vertical direction, out of the upper
44  C     fVerV  :: face of a cell K ( flux into the cell above ).  C     fVerV  :: face of a cell K ( flux into the cell above ).
 C     dPhiHydX,Y :: Gradient (X & Y dir.) of Hydrostatic Potential  
45  C     guDiss :: dissipation tendency (all explicit terms), u component  C     guDiss :: dissipation tendency (all explicit terms), u component
46  C     gvDiss :: dissipation tendency (all explicit terms), v component  C     gvDiss :: dissipation tendency (all explicit terms), v component
47  C     bi, bj, iMin, iMax, jMin, jMax - Range of points for which calculation  C     bi, bj, iMin, iMax, jMin, jMax - Range of points for which calculation
48  C                                      results will be set.  C                                      results will be set.
49  C     kUp, kDown                     - Index for upper and lower layers.  C     kUp, kDown                     - Index for upper and lower layers.
50  C     myThid - Instance number for this innvocation of CALC_MOM_RHS  C     myThid - Instance number for this innvocation of CALC_MOM_RHS
       _RL dPhiHydX(1-Olx:sNx+Olx,1-Oly:sNy+Oly)  
       _RL dPhiHydY(1-Olx:sNx+Olx,1-Oly:sNy+Oly)  
51        _RL KappaRU(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr)        _RL KappaRU(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr)
52        _RL KappaRV(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr)        _RL KappaRV(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr)
53        _RL fVerU(1-OLx:sNx+OLx,1-OLy:sNy+OLy,2)        _RL fVerU(1-OLx:sNx+OLx,1-OLy:sNy+OLy,2)
# Line 89  C     I,J,K - Loop counters Line 86  C     I,J,K - Loop counters
86        INTEGER i,j,k        INTEGER i,j,k
87  C     xxxFac - On-off tracer parameters used for switching terms off.  C     xxxFac - On-off tracer parameters used for switching terms off.
88        _RL  ArDudrFac        _RL  ArDudrFac
       _RL  phxFac  
89  c     _RL  mtFacU  c     _RL  mtFacU
90        _RL  ArDvdrFac        _RL  ArDvdrFac
       _RL  phyFac  
91  c     _RL  mtFacV  c     _RL  mtFacV
92        LOGICAL bottomDragTerms        LOGICAL bottomDragTerms
93        LOGICAL writeDiag        LOGICAL writeDiag
# Line 114  C--   (at least in part) Line 109  C--   (at least in part)
109        fVerV(1,1,kUp) = fVerV(1,1,kUp)        fVerV(1,1,kUp) = fVerV(1,1,kUp)
110  #endif  #endif
111    
112        writeDiag = DIFFERENT_MULTIPLE(diagFreq, myTime,        writeDiag = DIFFERENT_MULTIPLE(diagFreq, myTime, deltaTClock)
      &                                         myTime-deltaTClock)  
113    
114  #ifdef ALLOW_MNC  #ifdef ALLOW_MNC
115        IF (useMNC .AND. snapshot_mnc .AND. writeDiag) THEN        IF (useMNC .AND. snapshot_mnc .AND. writeDiag) THEN
116          IF ((bi .EQ. 1).AND.(bj .EQ. 1).AND.(k .EQ. 1)) THEN          IF ((bi .EQ. 1).AND.(bj .EQ. 1).AND.(k .EQ. 1)) THEN
117            CALL MNC_CW_SET_UDIM('mom_vi', -1, myThid)            CALL MNC_CW_SET_UDIM('mom_vi', -1, myThid)
118            CALL MNC_CW_I_W_S('I','mom_vi',0,0,'iter',myIter,myThid)            CALL MNC_CW_RL_W_S('D','mom_vi',0,0,'T',myTime,myThid)
119            CALL MNC_CW_SET_UDIM('mom_vi', 0, myThid)            CALL MNC_CW_SET_UDIM('mom_vi', 0, myThid)
120              CALL MNC_CW_I_W_S('I','mom_vi',0,0,'iter',myIter,myThid)
121          ENDIF          ENDIF
122          DO i = 1,9          DO i = 1,9
123            offsets(i) = 0            offsets(i) = 0
# Line 160  C--   Term by term tracer parmeters Line 155  C--   Term by term tracer parmeters
155  C     o U momentum equation  C     o U momentum equation
156        ArDudrFac    = vfFacMom*1.        ArDudrFac    = vfFacMom*1.
157  c     mTFacU       = mtFacMom*1.  c     mTFacU       = mtFacMom*1.
       phxFac       = pfFacMom*1.  
158  C     o V momentum equation  C     o V momentum equation
159        ArDvdrFac    = vfFacMom*1.        ArDvdrFac    = vfFacMom*1.
160  c     mTFacV       = mtFacMom*1.  c     mTFacV       = mtFacMom*1.
       phyFac       = pfFacMom*1.  
161    
162        IF (     no_slip_bottom        IF (     no_slip_bottom
163       &    .OR. bottomDragQuadratic.NE.0.       &    .OR. bottomDragQuadratic.NE.0.
# Line 174  c     mTFacV       = mtFacMom*1. Line 167  c     mTFacV       = mtFacMom*1.
167         bottomDragTerms=.FALSE.         bottomDragTerms=.FALSE.
168        ENDIF        ENDIF
169    
 C-- with stagger time stepping, grad Phi_Hyp is directly incoporated in TIMESTEP  
       IF (staggerTimeStep) THEN  
         phxFac = 0.  
         phyFac = 0.  
       ENDIF  
   
170  C--   Calculate open water fraction at vorticity points  C--   Calculate open water fraction at vorticity points
171        CALL MOM_CALC_HFACZ(bi,bj,k,hFacZ,r_hFacZ,myThid)        CALL MOM_CALC_HFACZ(bi,bj,k,hFacZ,r_hFacZ,myThid)
172    
# Line 210  C      Calculate del^2 u and del^2 v for Line 197  C      Calculate del^2 u and del^2 v for
197       &     .OR. viscA4D.NE.0. .OR. viscA4Z.NE.0.       &     .OR. viscA4D.NE.0. .OR. viscA4Z.NE.0.
198       &     .OR. viscA4Grid.NE.0.       &     .OR. viscA4Grid.NE.0.
199       &     .OR. viscC4leith.NE.0.       &     .OR. viscC4leith.NE.0.
200         &     .OR. viscC4leithD.NE.0.
201       &    ) THEN       &    ) THEN
202           CALL MOM_VI_DEL2UV(bi,bj,k,hDiv,vort3,hFacZ,           CALL MOM_VI_DEL2UV(bi,bj,k,hDiv,vort3,hFacZ,
203       O                      del2u,del2v,       O                      del2u,del2v,
# Line 220  C      Calculate del^2 u and del^2 v for Line 208  C      Calculate del^2 u and del^2 v for
208         ENDIF         ENDIF
209  C      Calculate dissipation terms for U and V equations  C      Calculate dissipation terms for U and V equations
210  C      in terms of vorticity and divergence  C      in terms of vorticity and divergence
211         IF (    viscAhD.NE.0. .OR. viscAhZ.NE.0.         IF (    viscAhD.NE.0. .OR. viscAhZ.NE.0.
212       &    .OR. viscA4D.NE.0. .OR. viscA4Z.NE.0.       &    .OR. viscA4D.NE.0. .OR. viscA4Z.NE.0.
213       &    .OR. viscAhGrid.NE.0. .OR. viscA4Grid.NE.0.       &    .OR. viscAhGrid.NE.0. .OR. viscA4Grid.NE.0.
214       &    .OR. viscC2leith.NE.0. .OR. viscC4leith.NE.0.       &    .OR. viscC2leith.NE.0. .OR. viscC4leith.NE.0.
215         &    .OR. viscC2leithD.NE.0. .OR. viscC4leithD.NE.0.
216       &    ) THEN       &    ) THEN
217           CALL MOM_VI_HDISSIP(bi,bj,k,hDiv,vort3,hFacZ,dStar,zStar,           CALL MOM_VI_HDISSIP(bi,bj,k,hDiv,vort3,hFacZ,dStar,zStar,
218       O                       guDiss,gvDiss,       O                       guDiss,gvDiss,
219       &                       myThid)       &                       myThid)
220         ENDIF         ENDIF
221  C      or in terms of tension and strain  C      or in terms of tension and strain
222         IF (viscAstrain.NE.0. .OR. viscAtension.NE.0.) THEN         IF (viscAstrain.NE.0. .OR. viscAtension.NE.0.
223         O      .OR. viscC2smag.ne.0) THEN
224           CALL MOM_CALC_TENSION(bi,bj,k,uFld,vFld,           CALL MOM_CALC_TENSION(bi,bj,k,uFld,vFld,
225       O                         tension,       O                         tension,
226       I                         myThid)       I                         myThid)
# Line 253  C--   Vertical flux (fVer is at upper fa Line 243  C--   Vertical flux (fVer is at upper fa
243    
244  C     Eddy component of vertical flux (interior component only) -> vrF  C     Eddy component of vertical flux (interior component only) -> vrF
245        IF (momViscosity.AND..NOT.implicitViscosity) THEN        IF (momViscosity.AND..NOT.implicitViscosity) THEN
246         CALL MOM_U_RVISCFLUX(bi,bj,k,uVel,KappaRU,vrF,myThid)         CALL MOM_U_RVISCFLUX(bi,bj,k+1,uVel,KappaRU,vrF,myThid)
247    
248  C     Combine fluxes  C     Combine fluxes
249         DO j=jMin,jMax         DO j=jMin,jMax
# Line 269  C--   Tendency is minus divergence of th Line 259  C--   Tendency is minus divergence of th
259       &   -_recip_hFacW(i,j,k,bi,bj)*recip_drF(k)       &   -_recip_hFacW(i,j,k,bi,bj)*recip_drF(k)
260       &   *recip_rAw(i,j,bi,bj)       &   *recip_rAw(i,j,bi,bj)
261       &  *(       &  *(
262       &   +fVerU(i,j,kUp)*rkFac - fVerU(i,j,kDown)*rkFac       &    fVerU(i,j,kDown) - fVerU(i,j,kUp)
263       &   )       &   )*rkSign
264          ENDDO          ENDDO
265         ENDDO         ENDDO
266        ENDIF        ENDIF
# Line 313  C--   Vertical flux (fVer is at upper fa Line 303  C--   Vertical flux (fVer is at upper fa
303    
304  C     Eddy component of vertical flux (interior component only) -> vrF  C     Eddy component of vertical flux (interior component only) -> vrF
305        IF (momViscosity.AND..NOT.implicitViscosity) THEN        IF (momViscosity.AND..NOT.implicitViscosity) THEN
306         CALL MOM_V_RVISCFLUX(bi,bj,k,vVel,KappaRV,vrf,myThid)         CALL MOM_V_RVISCFLUX(bi,bj,k+1,vVel,KappaRV,vrF,myThid)
307    
308  C     Combine fluxes -> fVerV  C     Combine fluxes -> fVerV
309         DO j=jMin,jMax         DO j=jMin,jMax
# Line 329  C--   Tendency is minus divergence of th Line 319  C--   Tendency is minus divergence of th
319       &   -_recip_hFacS(i,j,k,bi,bj)*recip_drF(k)       &   -_recip_hFacS(i,j,k,bi,bj)*recip_drF(k)
320       &    *recip_rAs(i,j,bi,bj)       &    *recip_rAs(i,j,bi,bj)
321       &  *(       &  *(
322       &   +fVerV(i,j,kUp)*rkFac - fVerV(i,j,kDown)*rkFac       &    fVerV(i,j,kDown) - fVerV(i,j,kUp)
323       &   )       &   )*rkSign
324          ENDDO          ENDDO
325         ENDDO         ENDDO
326        ENDIF        ENDIF
# Line 367  c      ENDDO Line 357  c      ENDDO
357  c     ENDIF  c     ENDIF
358    
359  C--   Horizontal Coriolis terms  C--   Horizontal Coriolis terms
360        IF (useCoriolis .AND. .NOT.useCDscheme  c     IF (useCoriolis .AND. .NOT.useCDscheme
361       &    .AND. .NOT. useAbsVorticity) THEN  c    &    .AND. .NOT. useAbsVorticity) THEN
362         CALL MOM_VI_CORIOLIS(bi,bj,k,uFld,vFld,hFacZ,r_hFacZ,  C- jmc: change it to keep the Coriolis terms when useAbsVorticity=T & momAdvection=F
363       &                      uCf,vCf,myThid)        IF ( useCoriolis .AND.
364         &     .NOT.( useCDscheme .OR. useAbsVorticity.AND.momAdvection )
365         &   ) THEN
366           IF (useAbsVorticity) THEN
367            CALL MOM_VI_U_CORIOLIS(bi,bj,K,vFld,omega3,hFacZ,r_hFacZ,
368         &                         uCf,myThid)
369            CALL MOM_VI_V_CORIOLIS(bi,bj,K,uFld,omega3,hFacZ,r_hFacZ,
370         &                         vCf,myThid)
371           ELSE
372            CALL MOM_VI_CORIOLIS(bi,bj,k,uFld,vFld,hFacZ,r_hFacZ,
373         &                       uCf,vCf,myThid)
374           ENDIF
375         DO j=jMin,jMax         DO j=jMin,jMax
376          DO i=iMin,iMax          DO i=iMin,iMax
377           gU(i,j,k,bi,bj) = uCf(i,j) - phxFac*dPhiHydX(i,j)           gU(i,j,k,bi,bj) = uCf(i,j)
378           gV(i,j,k,bi,bj) = vCf(i,j) - phyFac*dPhiHydY(i,j)           gV(i,j,k,bi,bj) = vCf(i,j)
379          ENDDO          ENDDO
380         ENDDO         ENDDO
381    
382         IF ( writeDiag ) THEN         IF ( writeDiag ) THEN
383           IF (snapshot_mdsio) THEN           IF (snapshot_mdsio) THEN
384             CALL WRITE_LOCAL_RL('fV','I10',1,uCf,bi,bj,k,myIter,myThid)             CALL WRITE_LOCAL_RL('fV','I10',1,uCf,bi,bj,k,myIter,myThid)
# Line 391  C--   Horizontal Coriolis terms Line 393  C--   Horizontal Coriolis terms
393           ENDIF           ENDIF
394  #endif /*  ALLOW_MNC  */  #endif /*  ALLOW_MNC  */
395         ENDIF         ENDIF
396    #ifdef ALLOW_DIAGNOSTICS
397           IF ( useDiagnostics ) THEN
398             CALL DIAGNOSTICS_FILL(uCf,'Um_Cori ',k,1,2,bi,bj,myThid)
399             CALL DIAGNOSTICS_FILL(vCf,'Vm_Cori ',k,1,2,bi,bj,myThid)
400           ENDIF
401    #endif /* ALLOW_DIAGNOSTICS */
402    
403        ELSE        ELSE
404         DO j=jMin,jMax         DO j=jMin,jMax
405          DO i=iMin,iMax          DO i=iMin,iMax
406           gU(i,j,k,bi,bj) = -phxFac*dPhiHydX(i,j)           gU(i,j,k,bi,bj) = 0. _d 0
407           gV(i,j,k,bi,bj) = -phyFac*dPhiHydY(i,j)           gV(i,j,k,bi,bj) = 0. _d 0
408          ENDDO          ENDDO
409         ENDDO         ENDDO
410        ENDIF        ENDIF
411    
412        IF (momAdvection) THEN        IF (momAdvection) THEN
413  C--   Horizontal advection of relative vorticity  C--   Horizontal advection of relative (or absolute) vorticity
414         IF (useAbsVorticity) THEN         IF (highOrderVorticity.AND.useAbsVorticity) THEN
415            CALL MOM_VI_U_CORIOLIS_C4(bi,bj,k,vFld,omega3,r_hFacZ,
416         &                         uCf,myThid)
417           ELSEIF (highOrderVorticity) THEN
418            CALL MOM_VI_U_CORIOLIS_C4(bi,bj,k,vFld,vort3, r_hFacZ,
419         &                         uCf,myThid)
420           ELSEIF (useAbsVorticity) THEN
421          CALL MOM_VI_U_CORIOLIS(bi,bj,K,vFld,omega3,hFacZ,r_hFacZ,          CALL MOM_VI_U_CORIOLIS(bi,bj,K,vFld,omega3,hFacZ,r_hFacZ,
422       &                         uCf,myThid)       &                         uCf,myThid)
423         ELSE         ELSE
424          CALL MOM_VI_U_CORIOLIS(bi,bj,k,vFld,vort3,hFacZ,r_hFacZ,          CALL MOM_VI_U_CORIOLIS(bi,bj,k,vFld,vort3, hFacZ,r_hFacZ,
425       &                         uCf,myThid)       &                         uCf,myThid)
426         ENDIF         ENDIF
 c      CALL MOM_VI_U_CORIOLIS_C4(bi,bj,K,vFld,vort3,r_hFacZ,uCf,myThid)  
427         DO j=jMin,jMax         DO j=jMin,jMax
428          DO i=iMin,iMax          DO i=iMin,iMax
429           gU(i,j,k,bi,bj) = gU(i,j,k,bi,bj)+uCf(i,j)           gU(i,j,k,bi,bj) = gU(i,j,k,bi,bj)+uCf(i,j)
430          ENDDO          ENDDO
431         ENDDO         ENDDO
432         IF (useAbsVorticity) THEN         IF (highOrderVorticity.AND.useAbsVorticity) THEN
433            CALL MOM_VI_V_CORIOLIS_C4(bi,bj,K,uFld,omega3,r_hFacZ,
434         &                         vCf,myThid)
435           ELSEIF (highOrderVorticity) THEN
436            CALL MOM_VI_V_CORIOLIS_C4(bi,bj,K,uFld,vort3, r_hFacZ,
437         &                         vCf,myThid)
438           ELSEIF (useAbsVorticity) THEN
439          CALL MOM_VI_V_CORIOLIS(bi,bj,K,uFld,omega3,hFacZ,r_hFacZ,          CALL MOM_VI_V_CORIOLIS(bi,bj,K,uFld,omega3,hFacZ,r_hFacZ,
440       &                         vCf,myThid)       &                         vCf,myThid)
441         ELSE         ELSE
442          CALL MOM_VI_V_CORIOLIS(bi,bj,k,uFld,vort3,hFacZ,r_hFacZ,          CALL MOM_VI_V_CORIOLIS(bi,bj,k,uFld,vort3, hFacZ,r_hFacZ,
443       &                         vCf,myThid)       &                         vCf,myThid)
444         ENDIF         ENDIF
 c      CALL MOM_VI_V_CORIOLIS_C4(bi,bj,K,uFld,vort3,r_hFacZ,vCf,myThid)  
445         DO j=jMin,jMax         DO j=jMin,jMax
446          DO i=iMin,iMax          DO i=iMin,iMax
447           gV(i,j,k,bi,bj) = gV(i,j,k,bi,bj)+vCf(i,j)           gV(i,j,k,bi,bj) = gV(i,j,k,bi,bj)+vCf(i,j)
# Line 445  c      CALL MOM_VI_V_CORIOLIS_C4(bi,bj,K Line 464  c      CALL MOM_VI_V_CORIOLIS_C4(bi,bj,K
464         ENDIF         ENDIF
465    
466  #ifdef ALLOW_TIMEAVE  #ifdef ALLOW_TIMEAVE
 #ifndef HRCUBE  
467         IF (taveFreq.GT.0.) THEN         IF (taveFreq.GT.0.) THEN
468           CALL TIMEAVE_CUMUL_1K1T(uZetatave,vCf,deltaTClock,           CALL TIMEAVE_CUMUL_1K1T(uZetatave,vCf,deltaTClock,
469       &                           Nr, k, bi, bj, myThid)       &                           Nr, k, bi, bj, myThid)
470           CALL TIMEAVE_CUMUL_1K1T(vZetatave,uCf,deltaTClock,           CALL TIMEAVE_CUMUL_1K1T(vZetatave,uCf,deltaTClock,
471       &                           Nr, k, bi, bj, myThid)       &                           Nr, k, bi, bj, myThid)
472         ENDIF         ENDIF
 #endif /* ndef HRCUBE */  
473  #endif /* ALLOW_TIMEAVE */  #endif /* ALLOW_TIMEAVE */
474    #ifdef ALLOW_DIAGNOSTICS
475           IF ( useDiagnostics ) THEN
476             CALL DIAGNOSTICS_FILL(uCf,'Um_AdvZ3',k,1,2,bi,bj,myThid)
477             CALL DIAGNOSTICS_FILL(vCf,'Vm_AdvZ3',k,1,2,bi,bj,myThid)
478           ENDIF
479    #endif /* ALLOW_DIAGNOSTICS */
480    
481  C--   Vertical shear terms (-w*du/dr & -w*dv/dr)  C--   Vertical shear terms (-w*du/dr & -w*dv/dr)
482         IF ( .NOT. momImplVertAdv ) THEN         IF ( .NOT. momImplVertAdv ) THEN
# Line 469  C--   Vertical shear terms (-w*du/dr & - Line 492  C--   Vertical shear terms (-w*du/dr & -
492            gV(i,j,k,bi,bj) = gV(i,j,k,bi,bj)+vCf(i,j)            gV(i,j,k,bi,bj) = gV(i,j,k,bi,bj)+vCf(i,j)
493           ENDDO           ENDDO
494          ENDDO          ENDDO
495    #ifdef ALLOW_DIAGNOSTICS
496            IF ( useDiagnostics ) THEN
497             CALL DIAGNOSTICS_FILL(uCf,'Um_AdvRe',k,1,2,bi,bj,myThid)
498             CALL DIAGNOSTICS_FILL(vCf,'Vm_AdvRe',k,1,2,bi,bj,myThid)
499            ENDIF
500    #endif /* ALLOW_DIAGNOSTICS */
501         ENDIF         ENDIF
502    
503  C--   Bernoulli term  C--   Bernoulli term
# Line 530  C--   Set du/dt & dv/dt on boundaries to Line 559  C--   Set du/dt & dv/dt on boundaries to
559            CALL WRITE_LOCAL_RL('Z3','I10',1,vort3,bi,bj,k,myIter,myThid)            CALL WRITE_LOCAL_RL('Z3','I10',1,vort3,bi,bj,k,myIter,myThid)
560            CALL WRITE_LOCAL_RL('W3','I10',1,omega3,bi,bj,k,myIter,myThid)            CALL WRITE_LOCAL_RL('W3','I10',1,omega3,bi,bj,k,myIter,myThid)
561            CALL WRITE_LOCAL_RL('KE','I10',1,KE,bi,bj,k,myIter,myThid)            CALL WRITE_LOCAL_RL('KE','I10',1,KE,bi,bj,k,myIter,myThid)
562            CALL WRITE_LOCAL_RL('D','I10',1,hdiv,bi,bj,k,myIter,myThid)            CALL WRITE_LOCAL_RL('D','I10',1,hDiv,bi,bj,k,myIter,myThid)
563          ENDIF          ENDIF
564  #ifdef ALLOW_MNC  #ifdef ALLOW_MNC
565          IF (useMNC .AND. snapshot_mnc) THEN          IF (useMNC .AND. snapshot_mnc) THEN
# Line 548  C--   Set du/dt & dv/dt on boundaries to Line 577  C--   Set du/dt & dv/dt on boundaries to
577       &          offsets, myThid)       &          offsets, myThid)
578            CALL MNC_CW_RL_W_OFFSET('D','mom_vi',bi,bj,'KE',KE,            CALL MNC_CW_RL_W_OFFSET('D','mom_vi',bi,bj,'KE',KE,
579       &          offsets, myThid)       &          offsets, myThid)
580            CALL MNC_CW_RL_W_OFFSET('D','mom_vi',bi,bj,'D', hdiv,            CALL MNC_CW_RL_W_OFFSET('D','mom_vi',bi,bj,'D', hDiv,
581       &          offsets, myThid)       &          offsets, myThid)
582          ENDIF          ENDIF
583  #endif /*  ALLOW_MNC  */  #endif /*  ALLOW_MNC  */
584        ENDIF        ENDIF
585          
586    #ifdef ALLOW_DIAGNOSTICS
587          IF ( useDiagnostics ) THEN
588            CALL DIAGNOSTICS_FILL(KE,    'momKE   ',k,1,2,bi,bj,myThid)
589            CALL DIAGNOSTICS_FILL(hDiv,  'momHDiv ',k,1,2,bi,bj,myThid)
590            CALL DIAGNOSTICS_FILL(vort3, 'momVort3',k,1,2,bi,bj,myThid)
591            CALL DIAGNOSTICS_FILL(gU(1-Olx,1-Oly,k,bi,bj),
592         &                               'Um_Advec',k,1,2,bi,bj,myThid)
593            CALL DIAGNOSTICS_FILL(gV(1-Olx,1-Oly,k,bi,bj),
594         &                               'Vm_Advec',k,1,2,bi,bj,myThid)
595           IF (momViscosity) THEN
596            CALL DIAGNOSTICS_FILL(guDiss,'Um_Diss ',k,1,2,bi,bj,myThid)
597            CALL DIAGNOSTICS_FILL(gvDiss,'Vm_Diss ',k,1,2,bi,bj,myThid)
598           ENDIF
599          ENDIF
600    #endif /* ALLOW_DIAGNOSTICS */
601    
602  #endif /* ALLOW_MOM_VECINV */  #endif /* ALLOW_MOM_VECINV */
603    
604        RETURN        RETURN

Legend:
Removed from v.1.31  
changed lines
  Added in v.1.46

  ViewVC Help
Powered by ViewVC 1.1.22