/[MITgcm]/MITgcm/pkg/mom_fluxform/mom_u_metric_cylinder.F
ViewVC logotype

Contents of /MITgcm/pkg/mom_fluxform/mom_u_metric_cylinder.F

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.4 - (show annotations) (download)
Sat Aug 11 19:01:35 2012 UTC (11 years, 9 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint64y, checkpoint64x, checkpoint64z, checkpoint64q, checkpoint64p, checkpoint64s, checkpoint64r, checkpoint64u, checkpoint64t, checkpoint64w, checkpoint64v, checkpoint64i, checkpoint64h, checkpoint64k, checkpoint64j, checkpoint64m, checkpoint64l, checkpoint64o, checkpoint64n, checkpoint64a, checkpoint64c, checkpoint64b, checkpoint64e, checkpoint64d, checkpoint64g, checkpoint64f, checkpoint63r, checkpoint63s, checkpoint64, checkpoint65, checkpoint66g, checkpoint66f, checkpoint66e, checkpoint66d, checkpoint66c, checkpoint66b, checkpoint66a, checkpoint66o, checkpoint66n, checkpoint66m, checkpoint66l, checkpoint66k, checkpoint66j, checkpoint66i, checkpoint66h, checkpoint65z, checkpoint65x, checkpoint65y, checkpoint65r, checkpoint65s, checkpoint65p, checkpoint65q, checkpoint65v, checkpoint65w, checkpoint65t, checkpoint65u, checkpoint65j, checkpoint65k, checkpoint65h, checkpoint65i, checkpoint65n, checkpoint65o, checkpoint65l, checkpoint65m, checkpoint65b, checkpoint65c, checkpoint65a, checkpoint65f, checkpoint65g, checkpoint65d, checkpoint65e, HEAD
Changes since 1.3: +9 -9 lines
- replace CPP_OPTIONS.h by MOM_FLUXFORM_OPTIONS.h
- fix description

1 C $Header: /u/gcmpack/MITgcm/pkg/mom_fluxform/mom_u_metric_cylinder.F,v 1.3 2005/07/12 00:38:31 jmc Exp $
2 C $Name: $
3
4 #include "MOM_FLUXFORM_OPTIONS.h"
5
6 CBOP
7 C !ROUTINE: MOM_U_METRIC_CYLINDER
8
9 C !INTERFACE: ==========================================================
10 SUBROUTINE MOM_U_METRIC_CYLINDER(
11 I bi,bj,k,
12 I uFld, vFld,
13 O uMetricTerms,
14 I myThid )
15
16 C !DESCRIPTION:
17 C Calculates the zonal metric term due to cylinder curvature:
18 C \begin{equation}
19 C +\frac{u v}{r}
20 C \end{equation}
21
22 C !USES: ===============================================================
23 IMPLICIT NONE
24 #include "SIZE.h"
25 #include "EEPARAMS.h"
26 #include "PARAMS.h"
27 #include "GRID.h"
28
29 C !INPUT PARAMETERS: ===================================================
30 C bi,bj :: tile indices
31 C k :: vertical level
32 C uFld :: zonal flow
33 C vFld :: meridional flow
34 C myThid :: thread number
35 INTEGER bi,bj,k
36 _RL uFld(1-OLx:sNx+OLx,1-OLy:sNy+OLy)
37 _RL vFld(1-OLx:sNx+OLx,1-OLy:sNy+OLy)
38 INTEGER myThid
39
40 C !OUTPUT PARAMETERS: ==================================================
41 C uMetricTerms :: metric term
42 _RL uMetricTerms(1-OLx:sNx+OLx,1-OLy:sNy+OLy)
43
44 C !LOCAL VARIABLES: ====================================================
45 C i,j :: loop indices
46 INTEGER i,j
47 _RL radius
48 CEOP
49
50 DO j=1-OLy,sNy+OLy-1
51 DO i=1-OLx+1,sNx+OLx
52 radius = (yG(i,j,bi,bj)+yG(i,j+1,bi,bj))*0.5 _d 0
53 C- to get the same results as before:
54 c radius = yC(i,j,bi,bj)
55 IF ( radius.GT.0. ) THEN
56 uMetricTerms(i,j) =
57 & uFld(i,j)
58 & *0.25*(vFld(i,j) + vFld(i-1,j) +
59 & vFld(i,j+1)+vFld(i-1,j+1))/radius
60 ELSE
61 uMetricTerms(i,j) = 0.
62 ENDIF
63
64 ENDDO
65 ENDDO
66
67 RETURN
68 END

  ViewVC Help
Powered by ViewVC 1.1.22