1 |
adcroft |
1.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 |