1 |
C $Header: /u/gcmpack/models/MITgcmUV/pkg/mom_fluxform/Attic/mom_u_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_U_CORIOLIS( |
7 |
I bi,bj,k,vFld, |
8 |
U uCoriolisTerm, |
9 |
I myThid) |
10 |
IMPLICIT NONE |
11 |
|
12 |
C Calculates Coriolis term, f*V, in U 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 vFld(1-OLx:sNx+OLx,1-OLy:sNy+OLy) |
26 |
_RL uCoriolisTerm(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,sNy+Oly-1 |
33 |
DO i=1-Olx+1,sNx+Olx |
34 |
uCoriolisTerm(i,j) = |
35 |
& 0.5*( _fCori( i ,j,bi,bj) + |
36 |
& _fCori(i-1,j,bi,bj) ) |
37 |
& *0.25*( |
38 |
& vFld( i ,j)+vFld( i ,j+1) |
39 |
& +vFld(i-1,j)+vFld(i-1,j+1) |
40 |
& ) |
41 |
ENDDO |
42 |
ENDDO |
43 |
|
44 |
RETURN |
45 |
END |