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

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

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


Revision 1.3.20.1 - (hide annotations) (download)
Thu Oct 2 18:30:08 2003 UTC (20 years, 7 months ago) by adcroft
Branch: branch-genmake2
Changes since 1.3: +2 -2 lines
Mis-type CONFIG as CONF !!!

1 adcroft 1.3.20.1 C $Header: /home/ubuntu/mnt/e9_copy/MITgcm/pkg/mom_fluxform/mom_u_adv_uu.F,v 1.3.20.1 2003/10/02 18:30:08 adcroft Exp $
2 adcroft 1.3 C $Name: $
3 adcroft 1.2
4 adcroft 1.3.20.1 #include "MOM_FLUXFORM_OPTIONS.h"
5 adcroft 1.2
6 adcroft 1.3 CBOP
7     C !ROUTINE: MOM_U_ADV_UU
8    
9     C !INTERFACE: ==========================================================
10 adcroft 1.2 SUBROUTINE MOM_U_ADV_UU(
11     I bi,bj,k,
12     I uTrans, uFld,
13     O AdvectFluxUU,
14     I myThid)
15 adcroft 1.3
16     C !DESCRIPTION:
17     C Calculates the zonal advective flux of zonal momentum:
18     C \begin{equation*}
19     C F^x = \overline{U}^i \overline{u}^{i}
20     C \end{equation*}
21    
22     C !USES: ===============================================================
23 adcroft 1.2 IMPLICIT NONE
24     #include "SIZE.h"
25     #include "EEPARAMS.h"
26     #include "PARAMS.h"
27    
28 adcroft 1.3 C !INPUT PARAMETERS: ===================================================
29     C bi,bj :: tile indices
30     C k :: vertical level
31     C uTrans :: zonal transport
32     C uFld :: zonal flow
33     C myThid :: thread number
34 adcroft 1.2 INTEGER bi,bj,k
35     _RL uTrans(1-OLx:sNx+OLx,1-OLy:sNy+OLy)
36     _RL uFld(1-OLx:sNx+OLx,1-OLy:sNy+OLy)
37 adcroft 1.3 INTEGER myThid
38    
39     C !OUTPUT PARAMETERS: ==================================================
40     C AdvectFluxUU :: advective flux
41 adcroft 1.2 _RL AdvectFluxUU(1-OLx:sNx+OLx,1-OLy:sNy+OLy)
42    
43 adcroft 1.3 C !LOCAL VARIABLES: ====================================================
44     C i,j :: loop indices
45 adcroft 1.2 INTEGER I,J
46 adcroft 1.3 CEOP
47 adcroft 1.2
48     DO j=1-Oly,sNy+Oly-1
49     DO i=1-Olx,sNx+Olx-1
50     AdvectFluxUU(i,j) =
51     & 0.25*( uTrans(i,j) + uTrans(i+1,j) )
52     & *( uFld(i,j) + uFld(i+1,j) )
53     ENDDO
54     ENDDO
55    
56     RETURN
57     END

  ViewVC Help
Powered by ViewVC 1.1.22