/[MITgcm]/MITgcm/pkg/mom_fluxform/mom_v_rviscflux.F
ViewVC logotype

Contents of /MITgcm/pkg/mom_fluxform/mom_v_rviscflux.F

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


Revision 1.2 - (show annotations) (download)
Tue May 29 14:01:38 2001 UTC (23 years ago) by adcroft
Branch: MAIN
CVS Tags: checkpoint40pre1, checkpoint40pre9, checkpoint40pre2, checkpoint40pre5, checkpoint40pre6, checkpoint40pre8, checkpoint40pre4, checkpoint40pre3, checkpoint40pre7, checkpoint40
Changes since 1.1: +50 -0 lines
Merge from branch pre38:
 o essential mods for cubed sphere
 o debugged atmosphere, dynamcis + physics (aim)
 o new packages (mom_vecinv, mom_fluxform, ...)

1 C $Header: /u/gcmpack/models/MITgcmUV/pkg/mom_fluxform/Attic/mom_v_rviscflux.F,v 1.1.2.1 2001/03/28 19:51:14 adcroft Exp $
2 C $Name: pre38-close $
3
4 #include "CPP_OPTIONS.h"
5
6 SUBROUTINE MOM_V_RVISCFLUX(
7 I bi,bj,k,
8 I vFld, KappaRV,
9 O rViscFluxV,
10 I myThid)
11 IMPLICIT NONE
12 C
13 C Calculate viscous flux in R direction for V eqn
14 C This only calculates interior fluxes and assumes zero
15 C flux at solid boundaries. "no-slip" fluxes are added
16 C as a drag (mom_u_bottomdrag.F).
17 C
18
19 C == Global variables ==
20 #include "SIZE.h"
21 #include "EEPARAMS.h"
22 #include "PARAMS.h"
23 #include "GRID.h"
24
25 C == Routine arguments ==
26 INTEGER bi,bj,k
27 _RL vFld(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy)
28 _RL KappaRV(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr)
29 _RL rViscFluxV(1-OLx:sNx+OLx,1-OLy:sNy+OLy)
30 INTEGER myThid
31
32 C == Local variables ==
33 INTEGER I,J,Kp1
34
35 Kp1=min(K+1,Nr)
36
37 C - Laplacian and bi-harmonic terms
38 DO j=1-Oly,sNy+Oly-1
39 DO i=1-Olx,sNx+Olx-1
40 rViscFluxV(i,j) =
41 & -KappaRV(i,j,kp1)
42 & *rAs(i,j,bi,bj)
43 & *( vFld(i,j,k,bi,bj)-vFld(i,j,kp1,bi,bj)
44 & )*rkFac*recip_drC(kp1)
45 & *_maskS(i,j,kp1,bi,bj)
46 ENDDO
47 ENDDO
48
49 RETURN
50 END

  ViewVC Help
Powered by ViewVC 1.1.22