/[MITgcm]/MITgcm/pkg/gmredi/gmredi_calc_diff.F
ViewVC logotype

Annotation of /MITgcm/pkg/gmredi/gmredi_calc_diff.F

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


Revision 1.1 - (hide annotations) (download)
Wed Jun 21 19:42:54 2000 UTC (23 years, 11 months ago) by adcroft
Branch: MAIN
CVS Tags: checkpoint29, branch-atmos-merge-freeze, branch-atmos-merge-start, branch-atmos-merge-shapiro, checkpoint33, checkpoint32, checkpoint31, checkpoint30, branch-atmos-merge-zonalfilt, branch-atmos-merge-phase5, branch-atmos-merge-phase4, branch-atmos-merge-phase7, branch-atmos-merge-phase6, branch-atmos-merge-phase1, branch-atmos-merge-phase3, branch-atmos-merge-phase2
Branch point for: branch-atmos-merge
Packaged GM/Redi routines.

1 adcroft 1.1 C $Header: /u/gcmpack/models/MITgcmUV/model/src/calc_diffusivity.F,v 1.9 1999/08/26 17:47:37 adcroft Exp $
2    
3     #include "GMREDI_OPTIONS.h"
4    
5     SUBROUTINE GMREDI_CALC_DIFF(
6     I bi,bj,iMin,iMax,jMin,jMax,K,
7     I maskUp,
8     O KappaRT,KappaRS,
9     I myThid)
10    
11     C /==========================================================\
12     C | SUBROUTINE GMREDI_CALC_DIFF |
13     C | o Add contrubution to net diffusivity from GM/Redi |
14     C \==========================================================/
15     IMPLICIT NONE
16    
17     C == GLobal variables ==
18     #include "SIZE.h"
19     #include "EEPARAMS.h"
20     #include "PARAMS.h"
21     #include "GRID.h"
22    
23     C == Routine arguments ==
24     C bi, bj, iMin, iMax, jMin, jMax - Range of points for which calculation
25     C maskUp - land/water mask for Wvel points (above tracer level)
26     C myThid - Instance number for this innvocation of CALC_COMMON_FACTORS
27     C
28     INTEGER bi,bj,iMin,iMax,jMin,jMax,K
29     _RS maskUp(1-Olx:sNx+Olx,1-Oly:sNy+Oly)
30     _RL KappaRT(1-Olx:sNx+Olx,1-Oly:sNy+Oly,Nr)
31     _RL KappaRS(1-Olx:sNx+Olx,1-Oly:sNy+Oly,Nr)
32     INTEGER myThid
33    
34     #ifdef ALLOW_GMREDI
35     #include "GMREDI.h"
36    
37     C == Local variables ==
38     C I, J, K - Loop counters
39     INTEGER i,j
40    
41     DO j=jMin,jMax
42     DO i=iMin,iMax
43     KappaRT(i,j,k) = KappaRT(i,j,k)+maskUp(i,j)*
44     & ( GM_background_K
45     #ifdef GM_VISBECK_VARIABLE_K
46     & + VisbeckK(i,j,myThid)
47     #endif
48     & )*Kwz(i,j,k,myThid)
49     ENDDO
50     ENDDO
51    
52     DO j=jMin,jMax
53     DO i=iMin,iMax
54     KappaRS(i,j,k) = KappaRS(i,j,k)+maskUp(i,j)*
55     & ( GM_background_K
56     #ifdef GM_VISBECK_VARIABLE_K
57     & + VisbeckK(i,j,myThid)
58     #endif
59     & )*Kwz(i,j,k,myThid)
60     ENDDO
61     ENDDO
62    
63     #endif /* ALLOW_GMREDI */
64    
65     RETURN
66     END

  ViewVC Help
Powered by ViewVC 1.1.22