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

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

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


Revision 1.6 - (hide annotations) (download)
Fri Aug 6 18:37:05 2010 UTC (13 years, 9 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 gforget 1.6 C $Header: /u/gcmpack/MITgcm/pkg/ggl90/ggl90_calc_visc.F,v 1.5 2009/10/08 20:07:18 jmc Exp $
2 ce107 1.2 C $Name: $
3 dfer 1.4
4 mlosch 1.1 #include "GGL90_OPTIONS.h"
5    
6 jmc 1.5 SUBROUTINE GGL90_CALC_VISC(
7 mlosch 1.1 I bi,bj,iMin,iMax,jMin,jMax,K,
8     U KappaRU,KappaRV,
9     I myThid)
10    
11     CBOP
12 jmc 1.5 C *==========================================================*
13 mlosch 1.1 C | SUBROUTINE GGL90_CALC_VISC |
14     C | o Add contrubution to net viscosity from GGL90 mixing |
15 jmc 1.5 C *==========================================================*
16 mlosch 1.1 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 jmc 1.5 #include "GGL90.h"
25 mlosch 1.1
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 jmc 1.5 CEOP
35 mlosch 1.1
36     #ifdef ALLOW_GGL90
37    
38     C == Local variables ==
39     C I, J, K - Loop counters
40     INTEGER i,j
41 dfer 1.4 _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 mlosch 1.1 DO j=jMin,jMax
48     DO i=iMin,iMax
49 dfer 1.4 KappaRU(i,j,k) = KappaRU(i,j,k) +
50 gforget 1.6 & (GGL90viscArU(i,j,k,bi,bj) - viscArNr(k) )
51 mlosch 1.1 ENDDO
52     ENDDO
53    
54     DO j=jMin,jMax
55     DO i=iMin,iMax
56 dfer 1.3 KappaRV(i,j,k) = KappaRV(i,j,k) + _maskS(i,j,k,bi,bj) *
57 gforget 1.6 & (GGL90viscArV(i,j,k,bi,bj) - viscArNr(k) )
58 mlosch 1.1 ENDDO
59     ENDDO
60    
61     #endif /* ALLOW_GGL90 */
62    
63     RETURN
64     END

  ViewVC Help
Powered by ViewVC 1.1.22