/[MITgcm]/MITgcm/pkg/cheapaml/gad_c2_2d_adv_x.F
ViewVC logotype

Contents of /MITgcm/pkg/cheapaml/gad_c2_2d_adv_x.F

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


Revision 1.1 - (show annotations) (download)
Tue Aug 5 21:49:31 2008 UTC (15 years, 10 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint62, checkpoint62c, checkpoint62b, checkpoint62a, checkpoint62g, checkpoint62f, checkpoint62e, checkpoint62d, checkpoint62k, checkpoint62j, checkpoint62i, checkpoint62h, checkpoint62o, checkpoint62n, checkpoint62m, checkpoint62l, checkpoint62r, checkpoint62q, checkpoint62p, checkpoint61f, checkpoint61g, checkpoint61d, checkpoint61e, checkpoint61c, checkpoint61n, checkpoint61o, checkpoint61l, checkpoint61m, checkpoint61j, checkpoint61k, checkpoint61h, checkpoint61i, checkpoint61v, checkpoint61w, checkpoint61t, checkpoint61u, checkpoint61r, checkpoint61s, checkpoint61p, checkpoint61q, checkpoint61z, checkpoint61x, checkpoint61y
From Nicolas: new package, (Cheap) Atmospheric Mixed Layer

1 C $Header: /u/gcmpack/MITgcm/pkg/generic_advdiff/gad_c2_adv_x.F,v 1.3 2001/09/21 13:11:43 adcroft Exp $
2 C $Name: $
3
4 #include "GAD_OPTIONS.h"
5
6 CBOP
7 C !ROUTINE: GAD_C2_2d_ADV_X
8
9 C !INTERFACE: ==========================================================
10 SUBROUTINE GAD_C2_2d_ADV_X(
11 I bi,bj,
12 I uVel,
13 I tracer,
14 O uT,
15 I myThid )
16
17 C !DESCRIPTION:
18 C Calculates the area integrated zonal flux due to advection of a tracer using
19 C centered second-order interpolation:
20 C \begin{equation*}
21 C F^x_{adv} = U \overline{\theta}^i
22 C \end{equation*}
23
24 C !USES: ===============================================================
25 IMPLICIT NONE
26 #include "SIZE.h"
27 #include "GRID.h"
28
29 C !INPUT PARAMETERS: ===================================================
30 C bi,bj :: tile indices
31 C uvel :: zonal velocity
32 C tracer :: tracer field
33 C myThid :: thread number
34 INTEGER bi,bj
35 _RL uvel(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
36 _RL tracer(1-OLx:sNx+OLx,1-OLy:sNy+OLy)
37 INTEGER myThid
38
39 C !OUTPUT PARAMETERS: ==================================================
40 C uT :: zonal advective flux
41 _RL uT (1-OLx:sNx+OLx,1-OLy:sNy+OLy)
42
43 C !LOCAL VARIABLES: ====================================================
44 C i,j :: loop indices
45 INTEGER i,j
46 CEOP
47
48 DO j=1-Oly,sNy+Oly
49 uT(1-Olx,j)=0.
50 DO i=1-Olx+1,sNx+Olx
51 uT(i,j) =
52 & uVel(i,j,bi,bj)*(Tracer(i,j)+Tracer(i-1,j))*0.5 _d 0
53 ENDDO
54 ENDDO
55
56 RETURN
57 END

  ViewVC Help
Powered by ViewVC 1.1.22