/[MITgcm]/MITgcm/verification/aim.5l_cs/code/mom_vi_hfacz_diss.F
ViewVC logotype

Contents of /MITgcm/verification/aim.5l_cs/code/mom_vi_hfacz_diss.F

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


Revision 1.1 - (show annotations) (download)
Wed Jan 9 00:28:56 2002 UTC (22 years, 3 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint46n_post, checkpoint47e_post, checkpoint46l_post, checkpoint46g_pre, checkpoint47c_post, checkpoint50c_post, checkpoint46f_post, checkpoint48e_post, checkpoint50c_pre, checkpoint44f_post, checkpoint46b_post, checkpoint43a-release1mods, checkpoint48i_post, checkpoint46l_pre, checkpoint50d_pre, chkpt44d_post, checkpoint51, checkpoint50, checkpoint50d_post, checkpoint50b_pre, checkpoint44e_pre, checkpoint48b_post, checkpoint51d_post, checkpoint48c_pre, checkpoint47d_pre, checkpoint47a_post, checkpoint48d_pre, checkpoint47i_post, checkpoint47d_post, checkpoint46d_pre, checkpoint48d_post, release1-branch_tutorials, checkpoint48f_post, checkpoint45d_post, checkpoint46j_pre, chkpt44a_post, checkpoint44h_pre, checkpoint48h_post, checkpoint51b_pre, checkpoint46a_post, checkpoint47g_post, checkpoint46j_post, checkpoint46k_post, checkpoint46b_pre, chkpt44c_pre, checkpoint48a_post, checkpoint45a_post, checkpoint50f_post, checkpoint50a_post, checkpoint50f_pre, checkpoint44e_post, checkpoint47j_post, branch-exfmods-tag, checkpoint44g_post, checkpoint46e_pre, checkpoint48c_post, checkpoint45b_post, release1-branch-end, release1_final_v1, checkpoint51b_post, checkpoint46c_pre, checkpoint46, checkpoint47b_post, checkpoint44b_post, checkpoint46h_pre, checkpoint46m_post, checkpoint46a_pre, checkpoint50g_post, checkpoint45c_post, checkpoint44h_post, checkpoint46g_post, checkpoint51c_post, checkpoint50e_pre, checkpoint50i_post, checkpoint47f_post, checkpoint50e_post, chkpt44a_pre, checkpoint46i_post, checkpoint46c_post, checkpoint46e_post, checkpoint44b_pre, checkpoint47, checkpoint44, checkpoint45, checkpoint48, checkpoint49, checkpoint46h_post, chkpt44c_post, checkpoint47h_post, checkpoint44f_pre, checkpoint46d_post, checkpoint50b_post, release1-branch_branchpoint, checkpoint51a_post, checkpoint48g_post
Branch point for: branch-exfmods-curt, release1_final, release1-branch, release1
modified momentum_VI and Shapiro S/R :
 enable AIM to run on Cube Sphere with partial cell.

1 C $Header: /u/gcmpack/models/MITgcmUV/pkg/mom_vecinv/mom_calc_hfacz.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_HFACZ_DISS(
7 I bi,bj,k,
8 O hFacZ,r_hFacZ,
9 I myThid)
10 IMPLICIT NONE
11 C
12 C Compute hFactor (and reciprol) at the corner (Z-point)
13 C used for vorticity,divergence form of viscous term
14 C (also in Shap_S2 formulation)
15 C
16
17 C == Global variables ==
18 #include "SIZE.h"
19 #include "GRID.h"
20
21 C == Routine arguments ==
22 INTEGER bi,bj,k
23 _RS hFacZ(1-OLx:sNx+OLx,1-OLy:sNy+OLy)
24 _RS r_hFacZ(1-OLx:sNx+OLx,1-OLy:sNy+OLy)
25 _RS hFacZOpen
26 INTEGER myThid
27
28 C == Local variables ==
29 INTEGER I,J
30
31 C-- Calculate open water fraction at vorticity points
32
33 DO i=1-Olx,sNx+Olx
34 hFacZ(i,1-Oly)=0.
35 r_hFacZ(i,1-Oly)=0.
36 ENDDO
37
38 DO j=2-Oly,sNy+Oly
39 hFacZ(1-Olx,j)=0.
40 r_hFacZ(1-Olx,j)=0.
41 DO i=2-Olx,sNx+Olx
42 hFacZOpen=MIN(_hFacW(i,j,k,bi,bj)
43 & + _hFacW(i,j-1,k,bi,bj)
44 & , _hFacS(i,j,k,bi,bj)
45 & + _hFacS(i-1,j,k,bi,bj)
46 & )
47 hFacZ(i,j)=0.5*hFacZOpen
48 IF (hFacZ(i,j).EQ.0.) THEN
49 r_hFacZ(i,j)=0.
50 ELSE
51 r_hFacZ(i,j)=1./hFacZ(i,j)
52 ENDIF
53 ENDDO
54 ENDDO
55
56 RETURN
57 END

  ViewVC Help
Powered by ViewVC 1.1.22