1 |
C $Header: /u/gcmpack/models/MITgcmUV/pkg/mom_fluxform/Attic/mom_u_metric_sphere.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_METRIC_SPHERE( |
7 |
I bi,bj,k, |
8 |
I uFld, vFld, |
9 |
O uMetricTerms, |
10 |
I myThid) |
11 |
IMPLICIT NONE |
12 |
C |
13 |
C Calculate viscous flux in X direction for U eqn |
14 |
C - is not vector invariant ... |
15 |
C |
16 |
|
17 |
C == Global variables == |
18 |
#include "SIZE.h" |
19 |
#include "EEPARAMS.h" |
20 |
#include "PARAMS.h" |
21 |
#include "GRID.h" |
22 |
|
23 |
C == Routine arguments == |
24 |
INTEGER bi,bj,k |
25 |
_RL uFld(1-OLx:sNx+OLx,1-OLy:sNy+OLy) |
26 |
_RL vFld(1-OLx:sNx+OLx,1-OLy:sNy+OLy) |
27 |
_RL uMetricTerms(1-OLx:sNx+OLx,1-OLy:sNy+OLy) |
28 |
INTEGER myThid |
29 |
|
30 |
C == Local variables == |
31 |
INTEGER I,J |
32 |
|
33 |
DO j=1-Olx,sNy+Oly-1 |
34 |
DO i=1-Olx+1,sNx+Olx |
35 |
uMetricTerms(i,j) = |
36 |
& uFld(i,j)*recip_RSphere |
37 |
& *0.25*( vFld(i,j )+vFld(i-1,j ) |
38 |
& +vFld(i,j+1)+vFld(i-1,j+1) |
39 |
& )*_tanPhiAtU(i,j,bi,bj) |
40 |
ENDDO |
41 |
ENDDO |
42 |
|
43 |
RETURN |
44 |
END |