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

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

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


Revision 1.3 - (hide annotations) (download)
Wed Jan 30 04:17:19 2002 UTC (22 years, 4 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint46n_post, checkpoint47e_post, checkpoint44e_post, checkpoint46l_post, checkpoint46g_pre, checkpoint47c_post, checkpoint50c_post, checkpoint46f_post, checkpoint48e_post, checkpoint50c_pre, checkpoint44f_post, checkpoint46b_post, checkpoint48i_post, checkpoint46l_pre, chkpt44d_post, checkpoint51, checkpoint50, checkpoint50d_post, checkpoint50b_pre, checkpoint44e_pre, checkpoint51f_post, checkpoint48b_post, checkpoint51d_post, checkpoint48c_pre, checkpoint47d_pre, checkpoint47a_post, checkpoint48d_pre, checkpoint51j_post, checkpoint47i_post, checkpoint47d_post, checkpoint46d_pre, checkpoint48d_post, checkpoint48f_post, checkpoint45d_post, checkpoint46j_pre, chkpt44a_post, checkpoint44h_pre, checkpoint48h_post, checkpoint51b_pre, checkpoint46a_post, checkpoint47g_post, checkpoint46j_post, checkpoint51h_pre, checkpoint46k_post, chkpt44c_pre, checkpoint48a_post, checkpoint45a_post, checkpoint50f_post, checkpoint50a_post, checkpoint50f_pre, checkpoint47j_post, branch-exfmods-tag, checkpoint44g_post, branchpoint-genmake2, checkpoint46e_pre, checkpoint48c_post, checkpoint45b_post, checkpoint46b_pre, release1_final_v1, checkpoint51b_post, checkpoint51c_post, checkpoint46c_pre, checkpoint46, checkpoint47b_post, checkpoint44b_post, checkpoint46h_pre, checkpoint46m_post, checkpoint46a_pre, checkpoint50g_post, checkpoint45c_post, checkpoint44h_post, checkpoint46g_post, checkpoint50h_post, checkpoint50e_pre, checkpoint50i_post, checkpoint51i_pre, checkpoint47f_post, checkpoint50e_post, chkpt44a_pre, checkpoint46i_post, checkpoint46c_post, checkpoint50d_pre, checkpoint46e_post, checkpoint51e_post, checkpoint44b_pre, checkpoint47, checkpoint45, checkpoint48, checkpoint49, checkpoint46h_post, checkpoint51f_pre, chkpt44c_post, checkpoint48g_post, checkpoint47h_post, checkpoint44f_pre, checkpoint51g_post, checkpoint46d_post, checkpoint50b_post, checkpoint51a_post
Branch point for: branch-exfmods-curt, release1_final, branch-genmake2
Changes since 1.2: +10 -8 lines
NonLin_FreeSurf iimplemented with OBC (but not yet radiative OBC).

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

  ViewVC Help
Powered by ViewVC 1.1.22