/[MITgcm]/MITgcm/pkg/shap_filt/shap_filt_relvort3.F
ViewVC logotype

Contents of /MITgcm/pkg/shap_filt/shap_filt_relvort3.F

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


Revision 1.2 - (show annotations) (download)
Thu Oct 9 04:19:20 2003 UTC (20 years, 11 months ago) by edhill
Branch: MAIN
CVS Tags: checkpoint51k_post, checkpoint52e_pre, hrcube4, checkpoint52j_post, checkpoint51o_pre, checkpoint52e_post, checkpoint51n_pre, checkpoint51l_post, checkpoint51q_post, hrcube_1, branch-netcdf, checkpoint52d_pre, checkpoint51r_post, checkpoint52k_post, checkpoint52b_pre, checkpoint51o_post, checkpoint51p_post, checkpoint52a_pre, checkpoint51i_post, checkpoint52, checkpoint52d_post, checkpoint52a_post, checkpoint52b_post, checkpoint52f_post, checkpoint52c_post, checkpoint51l_pre, ecco_c52_e35, checkpoint52i_post, checkpoint52j_pre, checkpoint51t_post, checkpoint51n_post, checkpoint52i_pre, checkpoint51u_post, checkpoint52h_pre, checkpoint52f_pre, hrcube_2, hrcube_3, checkpoint51m_post, checkpoint51s_post
Branch point for: branch-nonh, tg2-branch, checkpoint51n_branch, netcdf-sm0
Changes since 1.1: +2 -2 lines
 o first check-in for the "branch-genmake2" merge
 o verification suite as run on shelley (gcc 3.2.2):

Wed Oct  8 23:42:29 EDT 2003
                T           S           U           V
G D M    c        m  s        m  s        m  s        m  s
E p a R  g  m  m  e  .  m  m  e  .  m  m  e  .  m  m  e  .
N n k u  2  i  a  a  d  i  a  a  d  i  a  a  d  i  a  a  d
2 d e n  d  n  x  n  .  n  x  n  .  n  x  n  .  n  x  n  .

OPTFILE=NONE

Y Y Y Y 13 16 16 16  0 16 16 16 16 16 16 16 16 13 12  0  0 pass  adjustment.128x64x1
Y Y Y Y 16 16 16 16  0 16 16 16 16 16 16  0  0 16 16  0  0 pass  adjustment.cs-32x32x1
Y Y Y Y 16 16 16 16  0 16 16 16 16 16 16 22  0 16 16 22  0 pass  adjust_nlfs.cs-32x32x1
Y Y Y Y -- 13 13 16 16 13 13 13 13 16 16 16 16 16 16 16 16 N/O   advect_cs
Y Y Y Y -- 22 16 16 16 16 16 16 13 16 16 16 16 16 16 16 16 N/O   advect_xy
Y Y Y Y -- 13 16 13 16 16 16 16 16 16 16 22 16 16 16 16 16 N/O   advect_xz
Y Y Y Y 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 pass  aim.5l_cs
Y Y Y Y 14 16 16 16 16 16 16 16 16 13 16 16 16 16 16 13 16 pass  aim.5l_Equatorial_Channel
Y Y Y Y 16 16 16 16 16 16 16 16 16 16 16 13 16 16 13 13 16 pass  aim.5l_LatLon
Y Y Y Y 13 16 16 16 16 16 16 16 16 16 13 12 13 13 16 13 16 pass  exp0
Y Y Y Y 14 16 16 16 16 16 16 16 22 16 16 16 13 16 16 22 16 pass  exp1
Y Y Y Y 13 13 16 13 16 16 16 16 16 13 13 16 16 13 13 13 13 pass  exp2
Y Y Y Y 16 16 16 16 16 16 16 16 22 16 16 16 16 16 16 16 16 pass  exp4
Y Y Y Y 16 16 16 16 16 16 16 16 16 16 16 22 16 16 16 22 16 pass  exp5
Y Y Y Y 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 pass  front_relax
Y Y Y Y 14 16 16 13 13 16 16 13 13 16 13 13 16 12 13 13 16 pass  global_ocean.90x40x15
Y Y Y Y 10 16 16 13 13 16 13 16 16 13 13 13 13 16 16 13 16 FAIL  global_ocean.cs32x15
Y Y Y Y  6 11 12 13 13 12 13 16 13  9  9  9  9 10  9  9 11 FAIL  global_ocean_pressure
Y Y Y Y 14 16 16 13 16 16 16 13 13 13 13 13 16 12 16 13 16 pass  global_with_exf
Y Y Y Y 14 16 16 16 16 16 16 16 16 11 13 22 13 16 16  9 16 pass  hs94.128x64x5
Y Y Y Y 13 16 16 16 16 16 16 16 16 11 16 16 16 13 16 22 13 pass  hs94.1x64x5
Y Y Y Y 14 16 16 16 16 16 16 16 16 13 16 13 13 16 16 22 13 pass  hs94.cs-32x32x5
Y Y Y Y 10 10 16 13 13 16 16 16 22 16 13 13 13 13 13 22 13 FAIL  ideal_2D_oce
Y Y Y Y  8 16 16 16 16 16 16 16 16 13 13  8 16 16 16 16 16 FAIL  internal_wave
Y Y Y Y 14 16 16 16 16 16 16 16 16 13 13 22 13 13 13 22 16 pass  inverted_barometer
Y Y Y Y 12 16 16 16 16 16 16 16 16 16 13 12 13 13 13 13 13 FAIL  lab_sea
Y Y Y Y 11 16 16 16 16 16 16 16 13 13 13 12 13 16 13 12 13 FAIL  natl_box
Y Y Y Y 16 16 16 16 16 16 16 16 22 16 16 16 16 16 16 16 16 pass  plume_on_slope
Y Y Y Y 13 16 16 16 16 13 16 16 16 16 16 16 16 13 16 16 16 pass  solid-body.cs-32x32x1

1 C $Header: /u/u3/gcmpack/MITgcm/pkg/shap_filt/shap_filt_relvort3.F,v 1.1.2.1 2003/10/02 18:18:34 adcroft Exp $
2 C $Name: $
3
4 #include "SHAP_FILT_OPTIONS.h"
5
6 SUBROUTINE SHAP_FILT_RELVORT3(
7 I bi,bj,k,
8 I uFld, vFld, hFacZ,
9 O vort3,
10 I myThid)
11 IMPLICIT NONE
12 C *==========================================================*
13 C | S/R SHAP_FILT_RELVORT3
14 C *==========================================================*
15 C | copy of S/R MOM_VI_CALC_RELVORT3 (keep pkgs independent)
16 C *==========================================================*
17
18 C == Global variables ==
19 #include "SIZE.h"
20 #include "EEPARAMS.h"
21 #include "PARAMS.h"
22 #include "GRID.h"
23 C == Routine arguments ==
24 C myThid - Instance number for this innvocation of CALC_MOM_RHS
25 INTEGER bi,bj,k
26 _RL uFld(1-OLx:sNx+OLx,1-OLy:sNy+OLy)
27 _RL vFld(1-OLx:sNx+OLx,1-OLy:sNy+OLy)
28 _RS hFacZ(1-OLx:sNx+OLx,1-OLy:sNy+OLy)
29 _RL vort3(1-OLx:sNx+OLx,1-OLy:sNy+OLy)
30 INTEGER myThid
31
32 #ifdef ALLOW_SHAP_FILT
33 C == Local variables ==
34 INTEGER i,j
35
36 DO J=2-Oly,sNy+Oly
37 DO I=2-Olx,sNx+Olx
38
39 C Horizontal curl of flow field - ignoring lopping factors
40 vort3(I,J)=
41 & recip_rAz(I,J,bi,bj)*(
42 & vFld(I,J)*dyc(I,J,bi,bj)
43 & -vFld(I-1,J)*dyc(I-1,J,bi,bj)
44 & -uFld(I,J)*dxc(I,J,bi,bj)
45 & +uFld(I,J-1)*dxc(I,J-1,bi,bj)
46 & )
47
48 C Horizontal curl of flow field - including lopping factors
49 IF (hFacZ(i,j).NE.0.) THEN
50 c vort3(I,J)=
51 c & recip_rAz(I,J,bi,bj)*(
52 c & vFld(I,J)*dyc(I,J,bi,bj)*_hFacW(i,j,k,bi,bj)
53 c & -vFld(I-1,J)*dyc(I-1,J,bi,bj)*_hFacW(i-1,j,k,bi,bj)
54 c & -uFld(I,J)*dxc(I,J,bi,bj)*_hFacS(i,j,k,bi,bj)
55 c & +uFld(I,J-1)*dxc(I,J-1,bi,bj)*_hFacS(i,j-1,k,bi,bj)
56 c & )
57 c & /hFacZ(i,j)
58 ELSE
59 vort3(I,J)=0.
60 ENDIF
61
62 ENDDO
63 ENDDO
64
65 C Special stuff for Cubed Sphere
66 IF (useCubedSphereExchange) THEN
67 I=1
68 J=1
69 vort3(I,J)=
70 & +recip_rAz(I,J,bi,bj)*(
71 & vFld(I,J)*dyc(I,J,bi,bj)
72 & -uFld(I,J)*dxc(I,J,bi,bj)
73 & +uFld(I,J-1)*dxc(I,J-1,bi,bj)
74 & )
75 cph & -vFld(I-1,J)*dyc(I-1,J,bi,bj)
76 I=sNx+1
77 J=1
78 vort3(I,J)=
79 & +recip_rAz(I,J,bi,bj)*(
80 & -vFld(I-1,J)*dyc(I-1,J,bi,bj)
81 & -uFld(I,J)*dxc(I,J,bi,bj)
82 & +uFld(I,J-1)*dxc(I,J-1,bi,bj)
83 & )
84 cph & vFld(I,J)*dyc(I,J,bi,bj)
85 I=1
86 J=sNy+1
87 vort3(I,J)=
88 & +recip_rAz(I,J,bi,bj)*(
89 & vFld(I,J)*dyc(I,J,bi,bj)
90 & -uFld(I,J)*dxc(I,J,bi,bj)
91 & +uFld(I,J-1)*dxc(I,J-1,bi,bj)
92 & )
93 cph & -vFld(I-1,J)*dyc(I-1,J,bi,bj)
94 I=sNx+1
95 J=sNy+1
96 vort3(I,J)=
97 & +recip_rAz(I,J,bi,bj)*(
98 & -vFld(I-1,J)*dyc(I-1,J,bi,bj)
99 & -uFld(I,J)*dxc(I,J,bi,bj)
100 & +uFld(I,J-1)*dxc(I,J-1,bi,bj)
101 & )
102 cph & vFld(I,J)*dyc(I,J,bi,bj)
103 ENDIF
104
105 #endif /* ALLOW_SHAP_FILT */
106
107 RETURN
108 END

  ViewVC Help
Powered by ViewVC 1.1.22