/[MITgcm]/MITgcm/pkg/mom_vecinv/mom_vi_del2uv.F
ViewVC logotype

Contents of /MITgcm/pkg/mom_vecinv/mom_vi_del2uv.F

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


Revision 1.3 - (show annotations) (download)
Sat Oct 27 02:04:43 2001 UTC (22 years, 6 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint46n_post, checkpoint51k_post, checkpoint47e_post, checkpoint44e_post, checkpoint46l_post, checkpoint46g_pre, checkpoint47c_post, checkpoint50c_post, checkpoint46f_post, checkpoint52d_pre, checkpoint48e_post, checkpoint50c_pre, checkpoint44f_post, checkpoint46b_post, checkpoint43a-release1mods, checkpoint51o_pre, checkpoint51l_post, checkpoint48i_post, checkpoint46l_pre, chkpt44d_post, checkpoint51, checkpoint50, checkpoint52, checkpoint50d_post, checkpoint52f_post, checkpoint50b_pre, checkpoint44e_pre, checkpoint51f_post, checkpoint48b_post, checkpoint51d_post, checkpoint48c_pre, checkpoint47d_pre, checkpoint51t_post, checkpoint51n_post, checkpoint52i_pre, hrcube_1, checkpoint51s_post, checkpoint47a_post, checkpoint48d_pre, checkpoint51j_post, checkpoint47i_post, checkpoint52e_pre, checkpoint52e_post, checkpoint51n_pre, checkpoint47d_post, checkpoint46d_pre, checkpoint48d_post, release1-branch_tutorials, checkpoint48f_post, checkpoint45d_post, checkpoint52b_pre, checkpoint46j_pre, checkpoint51l_pre, chkpt44a_post, checkpoint44h_pre, checkpoint48h_post, checkpoint51q_post, checkpoint51b_pre, checkpoint46a_post, checkpoint47g_post, checkpoint52b_post, checkpoint52c_post, checkpoint46j_post, checkpoint51h_pre, checkpoint46k_post, chkpt44c_pre, checkpoint48a_post, checkpoint45a_post, checkpoint50f_post, checkpoint50a_post, checkpoint50f_pre, checkpoint52f_pre, checkpoint47j_post, branch-exfmods-tag, checkpoint44g_post, branchpoint-genmake2, checkpoint46e_pre, checkpoint51r_post, checkpoint48c_post, checkpoint45b_post, checkpoint46b_pre, checkpoint51i_post, release1-branch-end, release1_final_v1, checkpoint51b_post, checkpoint51c_post, checkpoint46c_pre, checkpoint46, checkpoint47b_post, checkpoint44b_post, checkpoint46h_pre, checkpoint52d_post, checkpoint46m_post, checkpoint46a_pre, checkpoint50g_post, checkpoint45c_post, checkpoint44h_post, checkpoint46g_post, checkpoint52a_pre, checkpoint50h_post, checkpoint52i_post, checkpoint50e_pre, checkpoint50i_post, checkpoint51i_pre, checkpoint52h_pre, checkpoint47f_post, checkpoint50e_post, chkpt44a_pre, checkpoint46i_post, checkpoint46c_post, branch-netcdf, checkpoint50d_pre, checkpoint46e_post, checkpoint51e_post, checkpoint44b_pre, checkpoint47, checkpoint44, checkpoint45, checkpoint48, checkpoint49, checkpoint46h_post, checkpoint51o_post, checkpoint51f_pre, chkpt44c_post, checkpoint48g_post, checkpoint47h_post, checkpoint52a_post, checkpoint44f_pre, checkpoint51g_post, ecco_c52_e35, checkpoint46d_post, checkpoint50b_post, release1-branch_branchpoint, checkpoint51m_post, checkpoint51a_post, checkpoint51p_post, checkpoint51u_post
Branch point for: branch-exfmods-curt, release1_final, release1-branch, branch-genmake2, branch-nonh, tg2-branch, netcdf-sm0, checkpoint51n_branch
Changes since 1.2: +4 -4 lines
use the correct recip_dx & dy.

1 C $Header: /u/gcmpack/models/MITgcmUV/pkg/mom_vecinv/mom_vi_del2uv.F,v 1.2 2001/05/29 14:01:39 adcroft Exp $
2 C $Name: $
3
4 #include "CPP_OPTIONS.h"
5
6 SUBROUTINE MOM_VI_DEL2UV(
7 I bi,bj,k,
8 I hDiv,vort3,hFacZ,
9 O del2u,del2v,
10 I myThid)
11 IMPLICIT NONE
12 C
13 C Calculate del^2 of (u,v) in terms of hDiv and vort3
14 C
15
16 C == Global variables ==
17 #include "SIZE.h"
18 #include "GRID.h"
19
20 C == Routine arguments ==
21 INTEGER bi,bj,k
22 _RL hDiv(1-OLx:sNx+OLx,1-OLy:sNy+OLy)
23 _RL vort3(1-OLx:sNx+OLx,1-OLy:sNy+OLy)
24 _RS hFacZ(1-OLx:sNx+OLx,1-OLy:sNy+OLy)
25 _RL del2u(1-OLx:sNx+OLx,1-OLy:sNy+OLy)
26 _RL del2v(1-OLx:sNx+OLx,1-OLy:sNy+OLy)
27 INTEGER myThid
28
29 C == Local variables ==
30 INTEGER I,J
31 _RL Zip,Zij,Zpj,Dim,Dij,Dmj
32
33 C - Laplacian and bi-harmonic terms
34 DO j=2-Oly,sNy+Oly-1
35 DO i=2-Olx,sNx+Olx-1
36
37 c Dim=dyF( i ,j-1,bi,bj)*hFacC( i ,j-1,k,bi,bj)*hDiv( i ,j-1)
38 c Dij=dyF( i , j ,bi,bj)*hFacC( i , j ,k,bi,bj)*hDiv( i , j )
39 c Dmj=dyF(i-1, j ,bi,bj)*hFacC(i-1, j ,k,bi,bj)*hDiv(i-1, j )
40 c Dim=dyF( i ,j-1,bi,bj)* hDiv( i ,j-1)
41 c Dij=dyF( i , j ,bi,bj)* hDiv( i , j )
42 c Dmj=dyF(i-1, j ,bi,bj)* hDiv(i-1, j )
43 Dim= hDiv( i ,j-1)
44 Dij= hDiv( i , j )
45 Dmj= hDiv(i-1, j )
46
47 c Zip=dxV( i ,j+1,bi,bj)*hFacZ( i ,j+1)*vort3( i ,j+1)
48 c Zij=dxV( i , j ,bi,bj)*hFacZ( i , j )*vort3( i , j )
49 c Zpj=dxV(i+1, j ,bi,bj)*hFacZ(i+1, j )*vort3(i+1, j )
50 Zip= hFacZ( i ,j+1)*vort3( i ,j+1)
51 Zij= hFacZ( i , j )*vort3( i , j )
52 Zpj= hFacZ(i+1, j )*vort3(i+1, j )
53
54 c del2u(i,j) = recip_rAw(i,j,bi,bj)*(
55 c & +recip_hFacW(i,j,k,bi,bj)*( Dij-Dmj )
56 c & -recip_hFacW(i,j,k,bi,bj)*( Zip-Zij ) )
57 c del2u(i,j) = recip_rAw(i,j,bi,bj)*(
58 c & + ( Dij-Dmj )
59 c & -recip_hFacW(i,j,k,bi,bj)*( Zip-Zij ) )
60 del2u(i,j) =
61 & + ( Dij-Dmj )*recip_DXC(i,j,bi,bj)
62 & -recip_hFacW(i,j,k,bi,bj)*( Zip-Zij )*recip_DYG(i,j,bi,bj)
63
64 c del2v(i,j) = recip_rAs(i,j,bi,bj)*(
65 c & recip_hFacS(i,j,k,bi,bj)*( Zpj-Zij )
66 c & +recip_hFacS(i,j,k,bi,bj)*( Dij-Dim ) )
67 c del2v(i,j) = recip_rAs(i,j,bi,bj)*(
68 c & recip_hFacS(i,j,k,bi,bj)*( Zpj-Zij )
69 c & + ( Dij-Dim ) )
70 del2v(i,j) =
71 & recip_hFacS(i,j,k,bi,bj)*( Zpj-Zij )*recip_DXG(i,j,bi,bj)
72 & + ( Dij-Dim )*recip_DYC(i,j,bi,bj)
73
74 ENDDO
75 ENDDO
76
77 RETURN
78 END

  ViewVC Help
Powered by ViewVC 1.1.22