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

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

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


Revision 1.3 - (show annotations) (download)
Thu Oct 8 20:08:20 2009 UTC (14 years, 6 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 C $Header: /u/gcmpack/MITgcm/pkg/pp81/pp81_calc_visc.F,v 1.2 2007/07/31 23:01:58 ce107 Exp $
2 C $Name: $
3 #include "PP81_OPTIONS.h"
4
5 SUBROUTINE PP81_CALC_VISC(
6 I bi,bj,iMin,iMax,jMin,jMax,k,
7 U KappaRU,KappaRV,
8 I myThid)
9
10 CBOP
11 C *==========================================================*
12 C | SUBROUTINE PP81_CALC_VISC |
13 C | o Add contrubution to net viscosity from PP81 mixing |
14 C *==========================================================*
15 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 #include "PP81.h"
24
25 C == Routine arguments ==
26 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 C
31 INTEGER bi,bj,iMin,iMax,jMin,jMax,k
32 _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 C i, j :: Loop counters
40 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 & KappaRU(i,j,k) - viscArNr(k) + _maskW(i,j,k,bi,bj) *
46 & 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 & KappaRV(i,j,k) - viscArNr(k) + _maskS(i,j,k,bi,bj) *
54 & 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