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

Contents of /MITgcm/pkg/cheapaml/gad_diff_2d_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, 9 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_diff_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_DIFF_2d_X
8
9 C !INTERFACE: ==========================================================
10 SUBROUTINE GAD_DIFF_2d_X(
11 I bi,bj,
12 I diffKh,
13 I tracer,
14 O dfx,
15 I myThid )
16
17 C !DESCRIPTION:
18 C Calculates the area integrated zonal flux due to down-gradient diffusion
19 C of a tracer:
20 C \begin{equation*}
21 C F^x_{diff} = - A^x \kappa_h \frac{1}{\Delta x_c} \delta_i \theta
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 k :: vertical level
32 C diffKh :: horizontal diffusivity
33 C tracer :: tracer field
34 C myThid :: thread number
35 INTEGER bi,bj,k
36 _RL diffKh
37 _RL tracer(1-OLx:sNx+OLx,1-OLy:sNy+OLy)
38 INTEGER myThid
39
40 C !OUTPUT PARAMETERS: ==================================================
41 C dfx :: zonal diffusive flux
42 _RL dfx (1-OLx:sNx+OLx,1-OLy:sNy+OLy)
43
44 C !LOCAL VARIABLES: ====================================================
45 C i,j :: loop indices
46 INTEGER i,j
47 CEOP
48
49 DO j=1-Oly,sNy+Oly
50 dfx(1-Olx,j)=0.
51 DO i=1-Olx+1,sNx+Olx
52 dfx(i,j) = -diffKh
53 & *_recip_dxC(i,j,bi,bj)
54 & *(Tracer(i,j)-Tracer(i-1,j))
55 & *CosFacU(j,bi,bj)
56 ENDDO
57 ENDDO
58
59 RETURN
60 END

  ViewVC Help
Powered by ViewVC 1.1.22