/[MITgcm]/MITgcm/pkg/pp81/pp81_calc_visc.F
ViewVC logotype

Annotation of /MITgcm/pkg/pp81/pp81_calc_visc.F

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


Revision 1.3 - (hide annotations) (download)
Thu Oct 8 20:08:20 2009 UTC (14 years, 7 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint64y, checkpoint64x, checkpoint64z, checkpoint64q, checkpoint64p, checkpoint64s, checkpoint64r, checkpoint64u, checkpoint64t, checkpoint64w, checkpoint64v, checkpoint64i, checkpoint64h, checkpoint64k, checkpoint64j, checkpoint64m, checkpoint64l, checkpoint64o, checkpoint64n, checkpoint64a, checkpoint64c, checkpoint64b, checkpoint64e, checkpoint64d, checkpoint64g, checkpoint64f, checkpoint63p, checkpoint63q, checkpoint63r, checkpoint63s, checkpoint63l, checkpoint63m, checkpoint63n, checkpoint63o, checkpoint63h, checkpoint63i, checkpoint63j, checkpoint63k, checkpoint63d, checkpoint63e, checkpoint63f, checkpoint63g, checkpoint63a, checkpoint63b, checkpoint63c, checkpoint64, checkpoint65, checkpoint62, checkpoint63, checkpoint66g, checkpoint66f, checkpoint66e, checkpoint66d, checkpoint66c, checkpoint66b, checkpoint66a, checkpoint66o, checkpoint66n, checkpoint66m, checkpoint66l, checkpoint66k, checkpoint66j, checkpoint66i, checkpoint66h, checkpoint65z, checkpoint65x, checkpoint65y, checkpoint65r, checkpoint65s, checkpoint65p, checkpoint65q, checkpoint65v, checkpoint65w, checkpoint65t, checkpoint65u, checkpoint65j, checkpoint65k, checkpoint65h, checkpoint65i, checkpoint65n, checkpoint65o, checkpoint65l, checkpoint65m, checkpoint65b, checkpoint65c, checkpoint65a, checkpoint65f, checkpoint65g, checkpoint65d, checkpoint65e, checkpoint62c, checkpoint62b, checkpoint62a, checkpoint62g, checkpoint62f, checkpoint62e, checkpoint62d, checkpoint62k, checkpoint62j, checkpoint62i, checkpoint62h, checkpoint62o, checkpoint62n, checkpoint62m, checkpoint62l, checkpoint62s, checkpoint62r, checkpoint62q, checkpoint62p, checkpoint62w, checkpoint62v, checkpoint62u, checkpoint62t, checkpoint62z, checkpoint62y, checkpoint62x, checkpoint61w, checkpoint61z, checkpoint61x, checkpoint61y, HEAD
Changes since 1.2: +14 -14 lines
modif for vertical profile of background viscosity

1 jmc 1.3 C $Header: /u/gcmpack/MITgcm/pkg/pp81/pp81_calc_visc.F,v 1.2 2007/07/31 23:01:58 ce107 Exp $
2 ce107 1.2 C $Name: $
3 mlosch 1.1 #include "PP81_OPTIONS.h"
4    
5 jmc 1.3 SUBROUTINE PP81_CALC_VISC(
6     I bi,bj,iMin,iMax,jMin,jMax,k,
7 mlosch 1.1 U KappaRU,KappaRV,
8     I myThid)
9    
10     CBOP
11 jmc 1.3 C *==========================================================*
12 mlosch 1.1 C | SUBROUTINE PP81_CALC_VISC |
13     C | o Add contrubution to net viscosity from PP81 mixing |
14 jmc 1.3 C *==========================================================*
15 mlosch 1.1 IMPLICIT NONE
16    
17     C == GLobal variables ==
18     #include "SIZE.h"
19     #include "EEPARAMS.h"
20     #include "PARAMS.h"
21     #include "DYNVARS.h"
22     #include "GRID.h"
23 jmc 1.3 #include "PP81.h"
24 mlosch 1.1
25     C == Routine arguments ==
26 jmc 1.3 C bi, bj :: tile numbers
27     C iMin, iMax, jMin, jMax :: Range of points for which calculation
28     C maskUp :: land/water mask for Wvel points (above tracer level)
29     C myThid :: Instance number for this innvocation of PP81_CALC_VISC
30 mlosch 1.1 C
31 jmc 1.3 INTEGER bi,bj,iMin,iMax,jMin,jMax,k
32 mlosch 1.1 _RL KappaRU(1-Olx:sNx+Olx,1-Oly:sNy+Oly,Nr)
33     _RL KappaRV(1-Olx:sNx+Olx,1-Oly:sNy+Oly,Nr)
34     INTEGER myThid
35    
36     #ifdef ALLOW_PP81
37    
38     C == Local variables ==
39 jmc 1.3 C i, j :: Loop counters
40 mlosch 1.1 INTEGER i,j
41     CEOP
42     DO j=jMin,jMax
43     DO i=iMin,iMax
44     KappaRU(i,j,k) = max ( KappaRU(i,j,k),
45 jmc 1.3 & KappaRU(i,j,k) - viscArNr(k) + _maskW(i,j,k,bi,bj) *
46 mlosch 1.1 & 0.5*(PPviscAr(i,j,k,bi,bj)+PPviscAr(i-1,j,k,bi,bj)) )
47     ENDDO
48     ENDDO
49    
50     DO j=jMin,jMax
51     DO i=iMin,iMax
52     KappaRV(i,j,k) = max ( KappaRV(i,j,k),
53 jmc 1.3 & KappaRV(i,j,k) - viscArNr(k) + _maskS(i,j,k,bi,bj) *
54 mlosch 1.1 & 0.5*(PPviscAr(i,j,k,bi,bj)+PPviscAr(i,j-1,k,bi,bj)) )
55     ENDDO
56     ENDDO
57    
58     #endif /* ALLOW_PP81 */
59    
60     RETURN
61     END

  ViewVC Help
Powered by ViewVC 1.1.22