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

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

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


Revision 1.7 - (hide annotations) (download)
Tue Dec 5 05:30:38 2006 UTC (17 years, 5 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint62v, checkpoint62u, checkpoint62t, checkpoint62c, checkpoint59, checkpoint62s, checkpoint62r, checkpoint62q, checkpoint62p, checkpoint62a, checkpoint62g, checkpoint62f, checkpoint62e, checkpoint62d, checkpoint62k, checkpoint62j, checkpoint62i, checkpoint62h, checkpoint62o, checkpoint62n, checkpoint62m, checkpoint62l, checkpoint58y_post, checkpoint58t_post, checkpoint60, checkpoint61, checkpoint62, checkpoint58w_post, mitgcm_mapl_00, checkpoint59q, checkpoint59p, checkpoint59r, checkpoint59e, checkpoint59d, checkpoint59g, checkpoint59f, checkpoint59a, checkpoint59c, checkpoint59b, checkpoint59m, checkpoint59l, checkpoint59o, checkpoint59n, checkpoint59i, checkpoint59h, checkpoint59k, checkpoint62b, checkpoint58v_post, checkpoint61f, checkpoint58x_post, checkpoint61n, checkpoint59j, checkpoint61q, checkpoint61e, checkpoint58u_post, checkpoint58s_post, checkpoint61g, checkpoint61d, checkpoint61b, checkpoint61c, checkpoint61a, checkpoint61o, checkpoint61l, checkpoint61m, checkpoint61j, checkpoint61k, checkpoint61h, checkpoint61i, checkpoint61v, checkpoint61w, checkpoint61t, checkpoint61u, checkpoint61r, checkpoint61s, checkpoint61p, checkpoint61z, checkpoint61x, checkpoint61y
Changes since 1.6: +12 -7 lines
start to implement deep-atmosphere and/or anelastic formulation

1 jmc 1.7 C $Header: /u/gcmpack/MITgcm/pkg/mom_fluxform/mom_v_del2v.F,v 1.6 2006/04/05 15:43:15 mlosch Exp $
2 adcroft 1.3 C $Name: $
3 adcroft 1.2
4 edhill 1.5 #include "MOM_FLUXFORM_OPTIONS.h"
5 adcroft 1.2
6 adcroft 1.3 CBOP
7     C !ROUTINE: MOM_V_DEL2V
8    
9     C !INTERFACE: ==========================================================
10 adcroft 1.2 SUBROUTINE MOM_V_DEL2V(
11     I bi,bj,k,
12     I vFld, hFacZ,
13     O del2v,
14     I myThid)
15 adcroft 1.3
16     C !DESCRIPTION:
17     C Calculates the Laplacian of meridional flow
18    
19     C !USES: ===============================================================
20 adcroft 1.2 IMPLICIT NONE
21     #include "SIZE.h"
22     #include "EEPARAMS.h"
23     #include "PARAMS.h"
24     #include "GRID.h"
25    
26 adcroft 1.3 C !INPUT PARAMETERS: ===================================================
27     C bi,bj :: tile indices
28     C k :: vertical level
29     C vFld :: meridional flow
30     C hFacZ :: fractional thickness at vorticity points
31     C myThid :: thread number`
32 adcroft 1.2 INTEGER bi,bj,k
33     _RL vFld(1-OLx:sNx+OLx,1-OLy:sNy+OLy)
34     _RS hFacZ(1-OLx:sNx+OLx,1-OLy:sNy+OLy)
35 adcroft 1.3 INTEGER myThid
36     C !OUTPUT PARAMETERS: ==================================================
37     C del2v :: Laplacian
38 adcroft 1.2 _RL del2v(1-OLx:sNx+OLx,1-OLy:sNy+OLy)
39    
40 adcroft 1.3 C !LOCAL VARIABLES: ====================================================
41     C i,j :: loop indices
42 adcroft 1.2 INTEGER I,J
43     _RL fZon(1-OLx:sNx+OLx,1-OLy:sNy+OLy)
44     _RL fMer(1-OLx:sNx+OLx,1-OLy:sNy+OLy)
45     _RS hFacZClosedE,hFacZClosedW
46 adcroft 1.3 CEOP
47 adcroft 1.2
48     C Zonal flux d/dx V
49 jmc 1.4 DO j=1-Oly+1,sNy+Oly-1
50 adcroft 1.2 DO i=1-Olx+1,sNx+Olx
51     fZon(i,j) = drF(k)*hFacZ(i,j)
52     & *_dyU(i,j,bi,bj)
53     & *_recip_dxV(i,j,bi,bj)
54     & *(vFld(i,j)-vFld(i-1,j))
55     #ifdef COSINEMETH_III
56 jmc 1.7 & *sqCosFacV(J,bi,bj)
57 adcroft 1.2 #endif
58 jmc 1.7 c & *deepFacC(k) ! dyU scaling factor
59     c & *recip_deepFacC(k) ! recip_dxV scaling factor
60 adcroft 1.2 ENDDO
61     ENDDO
62    
63     C Meridional flux d/dy V
64     DO j=1-Oly,sNy+Oly-1
65 jmc 1.4 DO i=1-Olx+1,sNx+Olx-1
66 adcroft 1.2 fMer(i,j) = drF(k)*_hFacC(i,j,k,bi,bj)
67     & *_dxF(i,j,bi,bj)
68     & *_recip_dyF(i,j,bi,bj)
69     & *(vFld(i,j+1)-vFld(i,j))
70 mlosch 1.6 #if (defined (ISOTROPIC_COS_SCALING) && defined (COSINEMETH_III))
71 jmc 1.7 & *sqCosFacU(J,bi,bj)
72 mlosch 1.6 #endif
73 jmc 1.7 c & *deepFacC(k) ! dxF scaling factor
74     c & *recip_deepFacC(k) ! recip_dyF scaling factor
75 adcroft 1.2 ENDDO
76     ENDDO
77    
78 jmc 1.4 C del^2 V
79     DO j=1-Oly+1,sNy+Oly-1
80     DO i=1-Olx+1,sNx+Olx-1
81 jmc 1.7 del2v(i,j) =
82     & recip_drF(k)*_recip_hFacS(i,j,k,bi,bj)
83     & *recip_rAs(i,j,bi,bj)*recip_deepFac2C(k)
84 adcroft 1.2 & *( fZon(i+1,j) - fZon(i, j )
85     & +fMer( i ,j) - fMer(i,j-1)
86     & )*_maskS(i,j,k,bi,bj)
87     ENDDO
88     ENDDO
89    
90     IF (no_slip_sides) THEN
91     C-- No-slip BCs impose a drag at walls...
92 jmc 1.4 DO j=1-Oly+1,sNy+Oly-1
93     DO i=1-Olx+1,sNx+Olx-1
94 adcroft 1.2 hFacZClosedW = _hFacS(i,j,k,bi,bj) - hFacZ(i,j)
95     hFacZClosedE = _hFacS(i,j,k,bi,bj) - hFacZ(i+1,j)
96     del2v(i,j) = del2v(i,j)
97     & -_recip_hFacS(i,j,k,bi,bj)*recip_drF(k)
98 jmc 1.7 & *recip_rAs(i,j,bi,bj)*recip_deepFac2C(k)
99 adcroft 1.2 & *( hFacZClosedW*dyU( i ,j,bi,bj)
100     & *_recip_dxV( i ,j,bi,bj)
101     & +hFacZClosedE*dyU(i+1,j,bi,bj)
102     & *_recip_dxV(i+1,j,bi,bj)
103     & )*drF(k)*2.*vFld(i,j)
104 jmc 1.7 & *_maskS(i,j,k,bi,bj)
105 adcroft 1.2 ENDDO
106     ENDDO
107     ENDIF
108    
109     RETURN
110     END

  ViewVC Help
Powered by ViewVC 1.1.22