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

Annotation of /MITgcm/pkg/mom_fluxform/mom_v_metric_sphere.F

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


Revision 1.2 - (hide annotations) (download)
Tue May 29 14:01:38 2001 UTC (22 years, 11 months ago) by adcroft
Branch: MAIN
CVS Tags: checkpoint40pre3, checkpoint40pre1, checkpoint40pre7, checkpoint40pre6, checkpoint40pre9, checkpoint40pre8, checkpoint40pre2, checkpoint40pre4, checkpoint40pre5, checkpoint40
Changes since 1.1: +46 -0 lines
Merge from branch pre38:
 o essential mods for cubed sphere
 o debugged atmosphere, dynamcis + physics (aim)
 o new packages (mom_vecinv, mom_fluxform, ...)

1 adcroft 1.2 C $Header: /u/gcmpack/models/MITgcmUV/pkg/mom_fluxform/Attic/mom_v_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_V_METRIC_SPHERE(
7     I bi,bj,k,
8     I uFld,
9     O vMetricTerms,
10     I myThid)
11     IMPLICIT NONE
12     C
13     C Calculate spherical metric terms in V equation
14     C - is obviously 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 vMetricTerms(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-Olx+1,sNy+Oly
33     DO i=1-Olx,sNx+Olx-1
34     vMetricTerms(i,j) = -recip_RSphere
35     & *0.25*( uFld(i,j )+uFld(i+1,j )
36     & +uFld(i,j-1)+uFld(i+1,j-1)
37     & )
38     & *0.25*( uFld(i,j )+uFld(i+1,j )
39     & +uFld(i,j-1)+uFld(i+1,j-1)
40     & )
41     & *_tanPhiAtV(i,j,bi,bj)
42     ENDDO
43     ENDDO
44    
45     RETURN
46     END

  ViewVC Help
Powered by ViewVC 1.1.22