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

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

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


Revision 1.3.6.1 - (hide annotations) (download)
Wed Apr 17 14:05:34 2002 UTC (22 years, 1 month ago) by heimbach
Branch: ecco-branch
CVS Tags: icebear5, icebear4, icebear3, icebear2, ecco_ice2, ecco_ice1, ecco_c44_e25, ecco_c44_e23, ecco_c44_e26, ecco_c44_e27, ecco_c44_e24
Branch point for: c24_e25_ice, icebear
Changes since 1.3: +6 -6 lines
Merging patches between release1_p1 and release1_p2:
o fixed array boundary problem for adjoint
  (related to partial recomputation within subroutine
  related to dynamics -> calc_viscosity -> mom_...
o fixed recomputation in thermodynamics
o prepare (but not complete) recomputation problem in impldiff
o fixed problem for adjoint of global_max
o switched off sponge layer code in external_forcing
Bug fix in ctrl_mask_set_yz (spotted by G. Gebbie)

1 heimbach 1.3.6.1 C $Header$
2     C $Name$
3 heimbach 1.1
4     #include "CPP_OPTIONS.h"
5    
6 cnh 1.3 CBOP
7     C !ROUTINE: CALC_VISCOSITY
8     C !INTERFACE:
9 heimbach 1.1 SUBROUTINE CALC_VISCOSITY(
10     I bi,bj,iMin,iMax,jMin,jMax,K,
11     O KappaRU,KappaRV,
12     I myThid)
13    
14 cnh 1.3 C !DESCRIPTION: \bv
15     C *==========================================================*
16     C | SUBROUTINE CALC_VISCOSITY
17     C | o Calculate net vertical viscosity
18     C *==========================================================*
19     C \ev
20    
21     C !USES:
22 heimbach 1.1 IMPLICIT NONE
23     C == GLobal variables ==
24     #include "SIZE.h"
25     #include "EEPARAMS.h"
26     #include "PARAMS.h"
27     #include "DYNVARS.h"
28     #include "GRID.h"
29    
30 cnh 1.3 C !INPUT/OUTPUT PARAMETERS:
31 heimbach 1.1 C == Routine arguments ==
32     C bi, bj, iMin, iMax, jMin, jMax - Range of points for which calculation
33     C myThid - Instance number for this innvocation of CALC_COMMON_FACTORS
34 cnh 1.3 C KappaRU :: Total vertical viscosity for zonal flow.
35     C KappaRV :: Total vertical viscosity for meridional flow.
36 heimbach 1.1 INTEGER bi,bj,iMin,iMax,jMin,jMax,K
37     _RL KappaRU(1-Olx:sNx+Olx,1-Oly:sNy+Oly,Nr)
38     _RL KappaRV(1-Olx:sNx+Olx,1-Oly:sNy+Oly,Nr)
39     INTEGER myThid
40    
41 cnh 1.3 C !LOCAL VARIABLES:
42 heimbach 1.1 C == Local variables ==
43     C I, J, K - Loop counters
44     INTEGER i,j
45 cnh 1.3 CEOP
46 heimbach 1.1
47 heimbach 1.3.6.1 DO j = 1-Oly, sNy+Oly
48     DO i = 1-Olx, sNx+Olx
49 heimbach 1.1 KappaRU(i,j,k) = viscAr
50     ENDDO
51     ENDDO
52    
53 heimbach 1.3.6.1 DO j = 1-Oly, sNy+Oly
54     DO i = 1-Olx, sNx+Olx
55 heimbach 1.1 KappaRV(i,j,k) = viscAr
56     ENDDO
57     ENDDO
58    
59     #ifdef ALLOW_KPP
60     IF (useKPP) CALL KPP_CALC_VISC(
61     I bi,bj,iMin+1,iMax,jMin+1,jMax,K,
62     O KappaRU,KappaRV,
63     I myThid)
64     #endif
65    
66    
67     RETURN
68     END

  ViewVC Help
Powered by ViewVC 1.1.22