Parent Directory | Revision Log | Revision Graph
Added "gad" package. Needs generalizing to allow selection of advection schemes at run-time and different schemes for each tracer.
1 | adcroft | 1.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 |