/[MITgcm]/MITgcm/model/src/update_surf_dr.F
ViewVC logotype

Contents of /MITgcm/model/src/update_surf_dr.F

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


Revision 1.5 - (show annotations) (download)
Fri Nov 4 01:19:24 2005 UTC (18 years, 6 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint58b_post, checkpoint57y_post, checkpoint58, checkpoint58f_post, checkpoint58d_post, checkpoint58a_post, checkpoint57z_post, checkpoint58t_post, checkpoint58m_post, checkpoint57y_pre, checkpoint58o_post, checkpoint58p_post, checkpoint58q_post, checkpoint58e_post, mitgcm_mapl_00, checkpoint58r_post, checkpoint58n_post, checkpoint58k_post, checkpoint58l_post, checkpoint58g_post, checkpoint58h_post, checkpoint58j_post, checkpoint58i_post, checkpoint57x_post, checkpoint58c_post, checkpoint58u_post, checkpoint58s_post
Changes since 1.4: +3 -3 lines
remove unused variables (reduces number of compiler warning)

1 C $Header: /u/gcmpack/MITgcm/model/src/update_surf_dr.F,v 1.4 2003/10/09 04:19:18 edhill Exp $
2 C $Name: $
3
4 #include "PACKAGES_CONFIG.h"
5 #include "CPP_OPTIONS.h"
6
7 CBOP
8 C !ROUTINE: UPDATE_SURF_DR
9 C !INTERFACE:
10 SUBROUTINE UPDATE_SURF_DR( myTime, myIter, myThid )
11 C !DESCRIPTION: \bv
12 C *==========================================================*
13 C | SUBROUTINE UPDATE_SURF_DR
14 C | o Update the surface-level thickness fraction (hFacC,W,S)
15 C | according to the surface r-position = Non-Linear FrSurf
16 C *==========================================================*
17 C \ev
18
19 C !USES:
20 IMPLICIT NONE
21 C == Global variables
22 #include "SIZE.h"
23 #include "EEPARAMS.h"
24 #include "PARAMS.h"
25 c #include "DYNVARS.h"
26 #include "GRID.h"
27 #include "SURFACE.h"
28
29 C !INPUT/OUTPUT PARAMETERS:
30 C == Routine arguments ==
31 C myTime - Current time in simulation
32 C myIter - Current iteration number in simulation
33 C myThid - Thread number for this instance of the routine.
34 _RL myTime
35 INTEGER myIter
36 INTEGER myThid
37
38 C !LOCAL VARIABLES:
39 #ifdef NONLIN_FRSURF
40 C Local variables
41 C i,j,bi,bj - loop counter
42 INTEGER i,j,bi,bj
43 INTEGER ks
44 CEOP
45
46 DO bj=myByLo(myThid), myByHi(myThid)
47 DO bi=myBxLo(myThid), myBxHi(myThid)
48
49 C---+----1----+----2----+----3----+----4----+----5----+----6----+----7-|--+----|
50
51 #ifdef ALLOW_OBCS
52 C-- Apply OBC to hFac_surfW,S before updating hFacW,S
53 IF (useOBCS) CALL OBCS_APPLY_SURF_DR(
54 I bi, bj, ksurfC, ksurfW, ksurfS,
55 U hFac_surfC, hFac_surfW, hFac_surfS,
56 I myThid )
57 #endif /* ALLOW_OBCS */
58
59 C-- Update the fractional thickness "hFacC" of the surface level ksurfC :
60 DO j=1-Oly,sNy+Oly
61 DO i=1-Olx,sNx+Olx
62 ks = ksurfC(i,j,bi,bj)
63 IF (ks.LE.Nr) THEN
64 hFacC(i,j,ks,bi,bj) = hFac_surfC(i,j,bi,bj)
65 recip_hFacC(i,j,ks,bi,bj)= 1. _d 0 / hFac_surfC(i,j,bi,bj)
66 ENDIF
67 ENDDO
68 ENDDO
69
70 C---+----1----+----2----+----3----+----4----+----5----+----6----+----7-|--+----|
71 C-- Update fractional thickness "hFacW" & "hFacS" (at U and V points)
72
73 DO j=1-Oly,sNy+Oly
74 DO i=2-Olx,sNx+Olx
75 ks = ksurfW(i,j,bi,bj)
76 IF (ks.LE.Nr) THEN
77 hFacW(i,j,ks,bi,bj) = hFac_surfW(i,j,bi,bj)
78 recip_hFacW(i,j,ks,bi,bj)= 1. _d 0 / hFac_surfW(i,j,bi,bj)
79 ENDIF
80 ENDDO
81 ENDDO
82 DO j=2-Oly,sNy+Oly
83 DO i=1-Olx,sNx+Olx
84 ks = ksurfS(i,j,bi,bj)
85 IF (ks.LE.Nr) THEN
86 hFacS(i,j,ks,bi,bj) = hFac_surfS(i,j,bi,bj)
87 recip_hFacS(i,j,ks,bi,bj)= 1. _d 0 / hFac_surfS(i,j,bi,bj)
88 ENDIF
89 ENDDO
90 ENDDO
91
92 C- end bi,bj loop
93 ENDDO
94 ENDDO
95
96 C---+----1----+----2----+----3----+----4----+----5----+----6----+----7-|--+----|
97 #endif /* NONLIN_FRSURF */
98
99 RETURN
100 END

  ViewVC Help
Powered by ViewVC 1.1.22