1 |
adcroft |
1.2 |
C $Header: /u/gcmpack/models/MITgcmUV/pkg/mom_fluxform/Attic/mom_v_coriolis.F,v 1.1.2.1 2001/03/28 19:51:14 adcroft Exp $ |
2 |
|
|
C $Name: pre38-close $ |
3 |
|
|
|
4 |
|
|
#include "CPP_OPTIONS.h" |
5 |
|
|
|
6 |
|
|
SUBROUTINE MOM_V_CORIOLIS( |
7 |
|
|
I bi,bj,k,uFld, |
8 |
|
|
U vCoriolisTerm, |
9 |
|
|
I myThid) |
10 |
|
|
IMPLICIT NONE |
11 |
|
|
|
12 |
|
|
C Calculates Coriolis term, f*U, in V equation |
13 |
|
|
|
14 |
|
|
C == Global variables == |
15 |
|
|
#include "SIZE.h" |
16 |
|
|
#include "DYNVARS.h" |
17 |
|
|
#include "EEPARAMS.h" |
18 |
|
|
#include "PARAMS.h" |
19 |
|
|
#include "GRID.h" |
20 |
|
|
#include "SURFACE.h" |
21 |
|
|
|
22 |
|
|
C == Routine arguments == |
23 |
|
|
C myThid - Instance number for this innvocation of CALC_MOM_RHS |
24 |
|
|
INTEGER bi,bj,K |
25 |
|
|
_RL uFld(1-OLx:sNx+OLx,1-OLy:sNy+OLy) |
26 |
|
|
_RL vCoriolisTerm(1-OLx:sNx+OLx,1-OLy:sNy+OLy) |
27 |
|
|
INTEGER myThid |
28 |
|
|
|
29 |
|
|
C == Local variables == |
30 |
|
|
INTEGER i,j |
31 |
|
|
|
32 |
|
|
DO j=1-Oly+1,sNy+Oly |
33 |
|
|
DO i=1-Olx,sNx+Olx-1 |
34 |
|
|
vCoriolisTerm(i,j) = |
35 |
|
|
& -0.5*(_fCori(i, j ,bi,bj)+_fCori(i,j-1,bi,bj)) |
36 |
|
|
& *0.25*( uFld(i, j )+uFld(i+1, j ) |
37 |
|
|
& +uFld(i,j-1)+uFld(i+1,j-1) |
38 |
|
|
& ) |
39 |
|
|
ENDDO |
40 |
|
|
ENDDO |
41 |
|
|
|
42 |
|
|
RETURN |
43 |
|
|
END |