/[MITgcm]/MITgcm/model/src/calc_diffusivity.F
ViewVC logotype

Annotation of /MITgcm/model/src/calc_diffusivity.F

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


Revision 1.11 - (hide annotations) (download)
Mon Sep 11 22:59:45 2000 UTC (23 years, 8 months ago) by heimbach
Branch: MAIN
CVS Tags: branch-atmos-merge-freeze, branch-atmos-merge-start, branch-atmos-merge-shapiro, checkpoint33, checkpoint32, checkpoint31, checkpoint34, 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
Changes since 1.10: +3 -3 lines
Change variable name useKPP, useGMRedi.

1 heimbach 1.11 C $Header: /u/gcmpack/development/heimbach/ecco_env/model/src/calc_diffusivity.F,v 1.2 2000/08/31 20:47:05 heimbach Exp $
2 adcroft 1.1
3 cnh 1.7 #include "CPP_OPTIONS.h"
4 adcroft 1.1
5     CStartOfInterFace
6     SUBROUTINE CALC_DIFFUSIVITY(
7     I bi,bj,iMin,iMax,jMin,jMax,K,
8 adcroft 1.10 I maskC,maskUp,
9 adcroft 1.8 O KappaRT,KappaRS,KappaRU,KappaRV,
10 adcroft 1.1 I myThid)
11    
12     C /==========================================================\
13     C | SUBROUTINE CALC_DIFFUSIVITY |
14     C | o Calculate net diffusivity |
15     C \==========================================================/
16     IMPLICIT NONE
17    
18     C == GLobal variables ==
19     #include "SIZE.h"
20 cnh 1.2 #include "EEPARAMS.h"
21 adcroft 1.1 #include "PARAMS.h"
22     #include "DYNVARS.h"
23 adcroft 1.8 #include "GRID.h"
24 adcroft 1.1
25     C == Routine arguments ==
26     C bi, bj, iMin, iMax, jMin, jMax - Range of points for which calculation
27     C maskC - land/water mask for tracer points
28     C maskUp - land/water mask for Wvel points (above tracer level)
29     C myThid - Instance number for this innvocation of CALC_COMMON_FACTORS
30     C
31     INTEGER bi,bj,iMin,iMax,jMin,jMax,K
32 cnh 1.3 _RS maskC(1-Olx:sNx+Olx,1-Oly:sNy+Oly)
33     _RS maskUp(1-Olx:sNx+Olx,1-Oly:sNy+Oly)
34 cnh 1.6 _RL KappaRT(1-Olx:sNx+Olx,1-Oly:sNy+Oly,Nr)
35     _RL KappaRS(1-Olx:sNx+Olx,1-Oly:sNy+Oly,Nr)
36 adcroft 1.8 _RL KappaRU(1-Olx:sNx+Olx,1-Oly:sNy+Oly,Nr)
37     _RL KappaRV(1-Olx:sNx+Olx,1-Oly:sNy+Oly,Nr)
38 adcroft 1.1 INTEGER myThid
39     CEndOfInterface
40    
41     C == Local variables ==
42     C I, J, K - Loop counters
43     INTEGER i,j
44    
45     DO j=jMin,jMax
46     DO i=iMin,iMax
47 cnh 1.5 KappaRT(i,j,k) = maskC(i,j)*maskUp(i,j)*
48 adcroft 1.8 & (
49 adcroft 1.9 & KappaRT(i,j,k)
50     & + diffKrT
51 adcroft 1.8 & )
52 adcroft 1.4 ENDDO
53     ENDDO
54    
55     DO j=jMin,jMax
56     DO i=iMin,iMax
57 cnh 1.5 KappaRS(i,j,k) = maskC(i,j)*maskUp(i,j)*
58 adcroft 1.8 & (
59 adcroft 1.9 & KappaRS(i,j,k)
60     & + diffKrS
61 adcroft 1.8 & )
62     ENDDO
63     ENDDO
64    
65     DO j=jMin,jMax
66     DO i=iMin,iMax
67     KappaRU(i,j,k) = viscAr
68     ENDDO
69     ENDDO
70    
71     DO j=jMin,jMax
72     DO i=iMin,iMax
73     KappaRV(i,j,k) = viscAr
74 adcroft 1.1 ENDDO
75     ENDDO
76 adcroft 1.10
77     #ifdef ALLOW_GMREDI
78 heimbach 1.11 IF (useGMRedi) CALL GMREDI_CALC_DIFF(
79 adcroft 1.10 I bi,bj,iMin,iMax,jMin,jMax,K,
80     I maskUp,
81     O KappaRT,KappaRS,
82     I myThid)
83     #endif
84    
85     #ifdef ALLOW_KPP
86 heimbach 1.11 IF (useKPP) CALL KPP_CALC_DIFF(
87 adcroft 1.10 I bi,bj,iMin,iMax,jMin,jMax,K,
88     I maskUp,
89     O KappaRT,KappaRS,KappaRU,KappaRV,
90     I myThid)
91     #endif
92    
93 adcroft 1.1
94     RETURN
95     END

  ViewVC Help
Powered by ViewVC 1.1.22