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

Contents of /MITgcm/pkg/generic_advdiff/gad_biharm_y.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_Y(
7 I bi,bj,k,
8 I yA,del2T,diffK4,
9 O dfy,
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 yA (1-OLx:sNx+OLx,1-OLy:sNy+OLy)
20 _RL del2T(1-OLx:sNx+OLx,1-OLy:sNy+OLy)
21 _RL diffK4
22 _RL dfy (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 meridional fluxes ...
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) = diffK4
35 & *yA(i,j)
36 & *(del2T(i,j)-del2T(i,j-1))*_recip_dyC(i,j,bi,bj)
37 #ifdef ISOTROPIC_COS_SCALING
38 #ifdef COSINEMETH_III
39 & *sqCosFacV(j,bi,bj)
40 #else
41 & *CosFacV(j,bi,bj)
42 #endif
43 #endif
44 ENDDO
45 ENDDO
46
47 RETURN
48 END

  ViewVC Help
Powered by ViewVC 1.1.22