1 |
C $Header: /u/gcmpack/MITgcm/pkg/mom_vecinv/mom_vi_v_grad_ke.F,v 1.3 2004/07/20 17:46:38 adcroft Exp $ |
2 |
C $Name: $ |
3 |
|
4 |
#include "MOM_VECINV_OPTIONS.h" |
5 |
|
6 |
SUBROUTINE MOM_VI_V_GRAD_KE( |
7 |
I bi,bj,k, |
8 |
I KE, |
9 |
O dKEdy, |
10 |
I myThid) |
11 |
IMPLICIT NONE |
12 |
C /==========================================================\ |
13 |
C | S/R MOM_V_GRAD_KE | |
14 |
C |==========================================================| |
15 |
C \==========================================================/ |
16 |
|
17 |
C == Global variables == |
18 |
#include "SIZE.h" |
19 |
#include "EEPARAMS.h" |
20 |
#include "GRID.h" |
21 |
|
22 |
C == Routine arguments == |
23 |
INTEGER bi,bj,k |
24 |
_RL KE(1-OLx:sNx+OLx,1-OLy:sNy+OLy) |
25 |
_RL dKEdy(1-OLx:sNx+OLx,1-OLy:sNy+OLy) |
26 |
INTEGER myThid |
27 |
|
28 |
C == Local variables == |
29 |
INTEGER i,j |
30 |
|
31 |
DO j=2-OLy,sNy+OLy |
32 |
DO i=1-OLx,sNx+OLx |
33 |
dKEdy(i,j)=-_recip_dyC(i,j,bi,bj)*(KE(i,j)-KE(i,j-1)) |
34 |
& *_maskS(i,j,k,bi,bj)*recip_deepFacC(k) |
35 |
ENDDO |
36 |
ENDDO |
37 |
|
38 |
RETURN |
39 |
END |