/[MITgcm]/MITgcm/pkg/ggl90/ggl90_calc_visc.F
ViewVC logotype

Contents of /MITgcm/pkg/ggl90/ggl90_calc_visc.F

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


Revision 1.6 - (show annotations) (download)
Fri Aug 6 18:37:05 2010 UTC (13 years, 8 months ago) by gforget
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, 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, checkpoint62k, checkpoint62j, checkpoint62o, checkpoint62n, checkpoint62m, checkpoint62l, checkpoint62s, checkpoint62r, checkpoint62q, checkpoint62p, checkpoint62w, checkpoint62v, checkpoint62u, checkpoint62t, checkpoint62z, checkpoint62y, checkpoint62x, HEAD
Changes since 1.5: +3 -47 lines
Minor changes in pkg/ggl90:
 o GGL90diffKrS was removed --> always use GGL90diffKr
 o GGL90viscAr was removed --> replaced with GGL90viscArU, GGL90viscArV
 o hack of mxlMaxFlag=2 --> ensure mixing between first and second level (commented out for now)
 o change in max/min operations to ensure that smoothing is ok
 o smoothing of GGL90viscAr was moved to ggl90_calc.F (as done for GGL90diffKr)
 o always use diffKrNrT as background profile (i.e. never use diffKr field)

1 C $Header: /u/gcmpack/MITgcm/pkg/ggl90/ggl90_calc_visc.F,v 1.5 2009/10/08 20:07:18 jmc Exp $
2 C $Name: $
3
4 #include "GGL90_OPTIONS.h"
5
6 SUBROUTINE GGL90_CALC_VISC(
7 I bi,bj,iMin,iMax,jMin,jMax,K,
8 U KappaRU,KappaRV,
9 I myThid)
10
11 CBOP
12 C *==========================================================*
13 C | SUBROUTINE GGL90_CALC_VISC |
14 C | o Add contrubution to net viscosity from GGL90 mixing |
15 C *==========================================================*
16 IMPLICIT NONE
17
18 C == GLobal variables ==
19 #include "SIZE.h"
20 #include "EEPARAMS.h"
21 #include "PARAMS.h"
22 #include "DYNVARS.h"
23 #include "GRID.h"
24 #include "GGL90.h"
25
26 C == Routine arguments ==
27 C bi, bj, iMin, iMax, jMin, jMax - Range of points for which calculation
28 C myThid - Instance number for this innvocation of GGL90_CALC_VISC
29 C
30 INTEGER bi,bj,iMin,iMax,jMin,jMax,K
31 _RL KappaRU(1-Olx:sNx+Olx,1-Oly:sNy+Oly,Nr)
32 _RL KappaRV(1-Olx:sNx+Olx,1-Oly:sNy+Oly,Nr)
33 INTEGER myThid
34 CEOP
35
36 #ifdef ALLOW_GGL90
37
38 C == Local variables ==
39 C I, J, K - Loop counters
40 INTEGER i,j
41 _RL p4, p8, p16
42
43 p4=0.25 _d 0
44 p8=0.125 _d 0
45 p16=0.0625 _d 0
46
47 DO j=jMin,jMax
48 DO i=iMin,iMax
49 KappaRU(i,j,k) = KappaRU(i,j,k) +
50 & (GGL90viscArU(i,j,k,bi,bj) - viscArNr(k) )
51 ENDDO
52 ENDDO
53
54 DO j=jMin,jMax
55 DO i=iMin,iMax
56 KappaRV(i,j,k) = KappaRV(i,j,k) + _maskS(i,j,k,bi,bj) *
57 & (GGL90viscArV(i,j,k,bi,bj) - viscArNr(k) )
58 ENDDO
59 ENDDO
60
61 #endif /* ALLOW_GGL90 */
62
63 RETURN
64 END

  ViewVC Help
Powered by ViewVC 1.1.22