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

Annotation of /MITgcm/pkg/generic_advdiff/gad_diff_y.F

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


Revision 1.1 - (hide annotations) (download)
Wed May 30 19:34:48 2001 UTC (22 years, 11 months 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 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