/[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 - (hide annotations) (download)
Wed Sep 26 18:09:14 2001 UTC (22 years, 8 months ago) by cnh
Branch: MAIN
CVS Tags: checkpoint44e_post, checkpoint44f_post, checkpoint43a-release1mods, chkpt44d_post, release1_p1, checkpoint44e_pre, release1_b1, checkpoint43, release1_chkpt44d_post, release1-branch_tutorials, chkpt44a_post, checkpoint44h_pre, chkpt44c_pre, checkpoint45a_post, ecco_c44_e19, ecco_c44_e18, ecco_c44_e17, ecco_c44_e16, checkpoint44g_post, release1-branch-end, release1_final_v1, checkpoint44b_post, checkpoint44h_post, ecco_c44_e22, chkpt44a_pre, ecco_c44_e20, ecco_c44_e21, ecco-branch-mod1, ecco-branch-mod2, ecco-branch-mod3, ecco-branch-mod4, ecco-branch-mod5, release1_beta1, checkpoint44b_pre, checkpoint42, checkpoint41, checkpoint44, checkpoint45, chkpt44c_post, checkpoint44f_pre, release1-branch_branchpoint
Branch point for: release1_final, release1-branch, release1, ecco-branch, release1_coupled
Changes since 1.2: +18 -8 lines
Bringing comments up to data and formatting for document extraction.

1 cnh 1.3 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     DO j=jMin,jMax
48     DO i=iMin,iMax
49     KappaRU(i,j,k) = viscAr
50     ENDDO
51     ENDDO
52    
53     DO j=jMin,jMax
54     DO i=iMin,iMax
55     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