/[MITgcm]/MITgcm/pkg/generic_advdiff/gad_biharm_x.F
ViewVC logotype

Contents of /MITgcm/pkg/generic_advdiff/gad_biharm_x.F

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


Revision 1.1 - (show annotations) (download)
Wed May 30 19:34:48 2001 UTC (23 years ago) by adcroft
Branch: MAIN
CVS Tags: checkpoint40pre3, checkpoint40pre1, checkpoint40pre7, checkpoint40pre6, checkpoint40pre9, checkpoint40pre8, checkpoint40pre2, checkpoint40pre4, checkpoint40pre5, checkpoint40
Added "gad" package. Needs generalizing to allow selection
of advection schemes at run-time and different schemes for
each tracer.

1 C $Header: $
2 C $Name: $
3
4 #include "GAD_OPTIONS.h"
5
6 SUBROUTINE GAD_BIHARM_X(
7 I bi,bj,k,
8 I xA,del2T,diffK4,
9 O dfx,
10 I myThid )
11 IMPLICIT NONE
12
13 C == GLobal variables ==
14 #include "SIZE.h"
15 #include "GRID.h"
16
17 C == Routine arguments ==
18 INTEGER bi,bj,k
19 _RS xA (1-OLx:sNx+OLx,1-OLy:sNy+OLy)
20 _RL del2T(1-OLx:sNx+OLx,1-OLy:sNy+OLy)
21 _RL diffK4
22 _RL dfx (1-OLx:sNx+OLx,1-OLy:sNy+OLy)
23 INTEGER myThid
24
25 C == Local variables ==
26 INTEGER i,j
27
28 C Difference of zonal fluxes ...
29 DO j=1-Oly,sNy+Oly
30 dfx(1-Olx,j) = 0.
31 DO i=1-Olx+1,sNx+Olx
32 dfx(i,j) = diffK4
33 & *xA(i,j)
34 & *(del2T(i,j)-del2T(i-1,j))*_recip_dxC(i,j,bi,bj)
35 #ifdef COSINEMETH_III
36 & *sqCosFacU(j,bi,bj)
37 #else
38 & *CosFacU(j,bi,bj)
39 #endif
40 ENDDO
41 ENDDO
42
43 RETURN
44 END

  ViewVC Help
Powered by ViewVC 1.1.22