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_DIFF_Y( | ||
7 | I bi,bj,k, | ||
8 | I yA, diffKh, | ||
9 | I tracer, | ||
10 | O dfy, | ||
11 | I myThid ) | ||
12 | IMPLICIT NONE | ||
13 | |||
14 | C == GLobal variables == | ||
15 | #include "SIZE.h" | ||
16 | #include "GRID.h" | ||
17 | |||
18 | C == Routine arguments == | ||
19 | INTEGER bi,bj,k | ||
20 | _RS yA (1-OLx:sNx+OLx,1-OLy:sNy+OLy) | ||
21 | _RL diffKh | ||
22 | _RL tracer(1-OLx:sNx+OLx,1-OLy:sNy+OLy) | ||
23 | _RL dfy (1-OLx:sNx+OLx,1-OLy:sNy+OLy) | ||
24 | INTEGER myThid | ||
25 | |||
26 | C == Local variables == | ||
27 | INTEGER i,j | ||
28 | |||
29 | DO i=1-Olx,sNx+Olx | ||
30 | dfy(i,1-Oly)=0. | ||
31 | ENDDO | ||
32 | DO j=1-Oly+1,sNy+Oly | ||
33 | DO i=1-Olx,sNx+Olx | ||
34 | dfy(i,j) = -diffKh*yA(i,j) | ||
35 | & *_recip_dyC(i,j,bi,bj) | ||
36 | & *(Tracer(i,j)-Tracer(i,j-1)) | ||
37 | #ifdef ISOTROPIC_COS_SCALING | ||
38 | & *CosFacV(j,bi,bj) | ||
39 | #endif | ||
40 | ENDDO | ||
41 | ENDDO | ||
42 | |||
43 | RETURN | ||
44 | END |
ViewVC Help | |
Powered by ViewVC 1.1.22 |