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

Diff of /MITgcm/pkg/mom_fluxform/mom_u_adv_uu.F

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

revision 1.1 by adcroft, Wed Mar 28 19:51:14 2001 UTC revision 1.2 by adcroft, Tue May 29 14:01:38 2001 UTC
# Line 0  Line 1 
1    C $Header$
2    C $Name$
3    
4    #include "CPP_OPTIONS.h"
5    
6          SUBROUTINE MOM_U_ADV_UU(
7         I        bi,bj,k,
8         I        uTrans, uFld,
9         O        AdvectFluxUU,
10         I        myThid)
11          IMPLICIT NONE
12    C
13    C     Calculate zonal advective flux of U using centered second order diff.
14    C       - is not vector invariant ...
15    C
16    
17    C     == Global variables ==
18    #include "SIZE.h"
19    #include "EEPARAMS.h"
20    #include "PARAMS.h"
21    
22    C     == Routine arguments ==
23          INTEGER bi,bj,k
24          _RL uTrans(1-OLx:sNx+OLx,1-OLy:sNy+OLy)
25          _RL uFld(1-OLx:sNx+OLx,1-OLy:sNy+OLy)
26          _RL AdvectFluxUU(1-OLx:sNx+OLx,1-OLy:sNy+OLy)
27          INTEGER myThid
28    
29    C     == Local variables ==
30          INTEGER I,J
31    
32          DO j=1-Oly,sNy+Oly-1
33           DO i=1-Olx,sNx+Olx-1
34            AdvectFluxUU(i,j) =
35         &  0.25*( uTrans(i,j) + uTrans(i+1,j) )
36         &      *(   uFld(i,j) +   uFld(i+1,j) )
37           ENDDO
38          ENDDO
39    
40          RETURN
41          END

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

  ViewVC Help
Powered by ViewVC 1.1.22