/[MITgcm]/MITgcm/pkg/obcs/obcs_calc.F
ViewVC logotype

Annotation of /MITgcm/pkg/obcs/obcs_calc.F

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


Revision 1.6 - (hide annotations) (download)
Fri Feb 8 22:16:09 2002 UTC (22 years, 3 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint46n_post, checkpoint51k_post, checkpoint47e_post, checkpoint52l_pre, checkpoint44e_post, hrcube4, hrcube5, checkpoint46l_post, checkpoint46g_pre, checkpoint47c_post, checkpoint50c_post, checkpoint46f_post, checkpoint52d_pre, checkpoint48e_post, checkpoint50c_pre, checkpoint44f_post, checkpoint46b_post, checkpoint52j_pre, checkpoint51o_pre, checkpoint54d_post, checkpoint54e_post, checkpoint51l_post, checkpoint48i_post, checkpoint46l_pre, checkpoint52l_post, checkpoint52k_post, chkpt44d_post, checkpoint55, checkpoint54, checkpoint51, checkpoint50, checkpoint53, checkpoint52, checkpoint50d_post, checkpoint52f_post, checkpoint50b_pre, checkpoint44e_pre, checkpoint54f_post, checkpoint51f_post, checkpoint48b_post, checkpoint51d_post, checkpoint48c_pre, checkpoint47d_pre, checkpoint51t_post, checkpoint51n_post, checkpoint52i_pre, hrcube_1, hrcube_2, hrcube_3, checkpoint51s_post, checkpoint47a_post, checkpoint48d_pre, checkpoint51j_post, checkpoint47i_post, checkpoint52e_pre, checkpoint52e_post, checkpoint51n_pre, checkpoint47d_post, checkpoint53d_post, checkpoint46d_pre, checkpoint48d_post, checkpoint48f_post, checkpoint45d_post, checkpoint52b_pre, checkpoint54b_post, checkpoint46j_pre, checkpoint51l_pre, checkpoint52m_post, checkpoint44h_pre, checkpoint48h_post, checkpoint51q_post, checkpoint51b_pre, checkpoint46a_post, checkpoint47g_post, checkpoint52b_post, checkpoint52c_post, checkpoint46j_post, checkpoint51h_pre, checkpoint46k_post, checkpoint48a_post, checkpoint45a_post, checkpoint50f_post, checkpoint50a_post, checkpoint50f_pre, checkpoint52f_pre, checkpoint47j_post, checkpoint54a_pre, checkpoint53c_post, branch-exfmods-tag, checkpoint44g_post, branchpoint-genmake2, checkpoint54a_post, checkpoint46e_pre, checkpoint51r_post, checkpoint48c_post, checkpoint45b_post, checkpoint46b_pre, checkpoint51i_post, release1_final_v1, checkpoint51b_post, checkpoint51c_post, checkpoint46c_pre, checkpoint53a_post, checkpoint46, checkpoint47b_post, checkpoint46h_pre, checkpoint52d_post, checkpoint53g_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, checkpoint53f_post, checkpoint52j_post, checkpoint47f_post, checkpoint50e_post, checkpoint46i_post, checkpoint46c_post, branch-netcdf, checkpoint50d_pre, checkpoint52n_post, checkpoint53b_pre, checkpoint46e_post, checkpoint51e_post, checkpoint47, checkpoint45, checkpoint48, checkpoint49, checkpoint46h_post, checkpoint51o_post, checkpoint51f_pre, chkpt44c_post, checkpoint48g_post, checkpoint53b_post, checkpoint47h_post, checkpoint52a_post, checkpoint44f_pre, checkpoint51g_post, ecco_c52_e35, checkpoint46d_post, checkpoint50b_post, checkpoint51m_post, checkpoint53d_pre, checkpoint54c_post, checkpoint51a_post, checkpoint51p_post, checkpoint51u_post
Branch point for: branch-exfmods-curt, release1_final, branch-genmake2, branch-nonh, tg2-branch, netcdf-sm0, checkpoint51n_branch
Changes since 1.5: +3 -2 lines
add argument myIter to S/R obcs_calc

1 jmc 1.6 C $Header: /u/gcmpack/MITgcm/pkg/obcs/obcs_calc.F,v 1.5 2002/01/30 04:22:31 jmc Exp $
2 adcroft 1.3 C $Name: $
3 adcroft 1.2
4     #include "OBCS_OPTIONS.h"
5    
6 jmc 1.6 SUBROUTINE OBCS_CALC( bi, bj, futureTime, futureIter,
7 adcroft 1.2 & uVel, vVel, wVel, theta, salt,
8     & myThid )
9     C /==========================================================\
10     C | SUBROUTINE OBCS_CALC |
11     C | o Calculate future boundary data at open boundaries |
12     C | at time = futureTime |
13     C |==========================================================|
14     C | |
15     C \==========================================================/
16     IMPLICIT NONE
17    
18     C === Global variables ===
19     #include "SIZE.h"
20     #include "EEPARAMS.h"
21     #include "PARAMS.h"
22     #include "OBCS.h"
23    
24     C == Routine arguments ==
25     INTEGER bi, bj
26 jmc 1.6 INTEGER futureIter
27 adcroft 1.2 _RL futureTime
28     _RL uVel (1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy)
29     _RL vVel (1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy)
30     _RL wVel (1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy)
31     _RL theta(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy)
32     _RL salt (1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy)
33     INTEGER myThid
34    
35     #ifdef ALLOW_OBCS
36    
37     C == Local variables ==
38 adcroft 1.3 INTEGER I, J , K, I_obc, J_obc
39 adcroft 1.2
40     C Eastern OB
41     IF (useOrlanskiEast) THEN
42     CALL ORLANSKI_EAST(
43     & bi, bj, futureTime,
44     & uVel, vVel, wVel, theta, salt,
45     & myThid )
46     ELSE
47     DO K=1,Nr
48     DO J=1-Oly,sNy+Oly
49 adcroft 1.3 I_obc=OB_Ie(J,bi,bj)
50     IF (I_obc.ne.0) THEN
51     OBEu(J,K,bi,bj)=0.
52     OBEv(J,K,bi,bj)=0.
53     OBEt(J,K,bi,bj)=tRef(K)
54     OBEs(J,K,bi,bj)=sRef(K)
55 adcroft 1.2 #ifdef ALLOW_NONHYDROSTATIC
56 adcroft 1.3 OBEw(J,K,bi,bj)=0.
57 adcroft 1.2 #endif
58 jmc 1.5 #ifdef NONLIN_FRSURF
59     OBEeta(J,bi,bj)=0.
60     #endif
61 adcroft 1.3 ENDIF
62 adcroft 1.2 ENDDO
63     ENDDO
64     ENDIF
65    
66     C Western OB
67     IF (useOrlanskiWest) THEN
68     CALL ORLANSKI_WEST(
69     & bi, bj, futureTime,
70     & uVel, vVel, wVel, theta, salt,
71     & myThid )
72     ELSE
73     DO K=1,Nr
74     DO J=1-Oly,sNy+Oly
75 adcroft 1.3 I_obc=OB_Iw(J,bi,bj)
76     IF (I_obc.ne.0) THEN
77     OBWu(J,K,bi,bj)=0.
78     OBWv(J,K,bi,bj)=0.
79     OBWt(J,K,bi,bj)=tRef(K)
80     OBWs(J,K,bi,bj)=sRef(K)
81 adcroft 1.2 #ifdef ALLOW_NONHYDROSTATIC
82 adcroft 1.3 OBWw(J,K,bi,bj)=0.
83 adcroft 1.2 #endif
84 jmc 1.5 #ifdef NONLIN_FRSURF
85     OBWeta(J,bi,bj)=0.
86     #endif
87 adcroft 1.3 ENDIF
88 adcroft 1.2 ENDDO
89     ENDDO
90     ENDIF
91    
92 adcroft 1.3 C Northern OB
93 adcroft 1.2 IF (useOrlanskiNorth) THEN
94     CALL ORLANSKI_NORTH(
95     & bi, bj, futureTime,
96     & uVel, vVel, wVel, theta, salt,
97     & myThid )
98     ELSE
99     DO K=1,Nr
100     DO I=1-Olx,sNx+Olx
101 adcroft 1.3 J_obc=OB_Jn(I,bi,bj)
102     IF (J_obc.ne.0) THEN
103     OBNv(I,K,bi,bj)=0.
104     OBNu(I,K,bi,bj)=0.
105     OBNt(I,K,bi,bj)=tRef(K)
106     OBNs(I,K,bi,bj)=sRef(K)
107 adcroft 1.2 #ifdef ALLOW_NONHYDROSTATIC
108 adcroft 1.3 OBNw(I,K,bi,bj)=0.
109 adcroft 1.2 #endif
110 jmc 1.5 #ifdef NONLIN_FRSURF
111     OBNeta(I,bi,bj)=0.
112     #endif
113 adcroft 1.3 ENDIF
114 adcroft 1.2 ENDDO
115     ENDDO
116     ENDIF
117    
118 adcroft 1.3 C Southern OB
119 adcroft 1.2 IF (useOrlanskiSouth) THEN
120     CALL ORLANSKI_SOUTH(
121     & bi, bj, futureTime,
122     & uVel, vVel, wVel, theta, salt,
123     & myThid )
124     ELSE
125     DO K=1,Nr
126     DO I=1-Olx,sNx+Olx
127 adcroft 1.3 J_obc=OB_Js(I,bi,bj)
128     IF (J_obc.ne.0) THEN
129     OBSu(I,K,bi,bj)=0.
130     OBSv(I,K,bi,bj)=0.
131     OBSt(I,K,bi,bj)=tRef(K)
132     OBSs(I,K,bi,bj)=sRef(K)
133 adcroft 1.2 #ifdef ALLOW_NONHYDROSTATIC
134 adcroft 1.3 OBSw(I,K,bi,bj)=0.
135 jmc 1.5 #endif
136     #ifdef NONLIN_FRSURF
137     OBSeta(I,bi,bj)=0.
138 adcroft 1.2 #endif
139 adcroft 1.3 ENDIF
140 adcroft 1.2 ENDDO
141     ENDDO
142     ENDIF
143    
144     #endif /* ALLOW_OBCS */
145     RETURN
146     END

  ViewVC Help
Powered by ViewVC 1.1.22