/[MITgcm]/MITgcm/verification/exp4/code/obcs_calc.F
ViewVC logotype

Contents of /MITgcm/verification/exp4/code/obcs_calc.F

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


Revision 1.4 - (show annotations) (download)
Sat Apr 6 01:32:35 2002 UTC (22 years, 1 month ago) by jmc
Branch: MAIN
CVS Tags: checkpoint48f_post, checkpoint46k_post, checkpoint51k_post, checkpoint53f_post, checkpoint47j_post, checkpoint54a_pre, checkpoint55c_post, checkpoint53b_pre, checkpoint48d_pre, checkpoint51l_post, checkpoint51j_post, branch-exfmods-tag, checkpoint47e_post, checkpoint57m_post, checkpoint47i_post, checkpoint52l_pre, checkpoint48i_post, checkpoint52e_pre, checkpoint57h_done, checkpoint57g_pre, checkpoint52j_post, checkpoint47f_post, checkpoint48d_post, checkpoint51o_pre, checkpoint57f_post, checkpoint46j_post, checkpoint47c_post, checkpoint50e_post, checkpoint52e_post, checkpoint50c_post, checkpoint51n_pre, checkpoint47d_post, checkpoint57j_post, checkpoint47a_post, checkpoint57b_post, checkpoint46f_post, checkpoint46l_pre, checkpoint53c_post, checkpoint53d_post, checkpoint57f_pre, checkpoint48a_post, checkpoint55d_pre, checkpoint46n_post, checkpoint51f_pre, checkpoint46d_pre, checkpoint57g_post, checkpoint48e_post, checkpoint46e_post, checkpoint57a_post, checkpoint48h_post, checkpoint55j_post, checkpoint56b_post, checkpoint50c_pre, checkpoint57h_pre, checkpoint46c_post, branchpoint-genmake2, checkpoint46h_pre, checkpoint46l_post, checkpoint50b_pre, checkpoint52j_pre, checkpoint54a_post, checkpoint46e_pre, branch-netcdf, checkpoint50d_pre, checkpoint55h_post, checkpoint45d_post, checkpoint51r_post, checkpoint52b_pre, checkpoint52n_post, checkpoint54b_post, checkpoint46j_pre, checkpoint45b_post, checkpoint46b_pre, checkpoint51i_post, checkpoint57e_post, checkpoint54d_post, checkpoint47h_post, checkpoint48c_post, checkpoint56c_post, checkpoint54e_post, checkpoint55b_post, checkpoint51e_post, checkpoint51b_post, checkpoint46, checkpoint51l_pre, checkpoint52m_post, checkpoint51c_post, checkpoint46c_pre, checkpoint55, checkpoint53a_post, checkpoint55a_post, checkpoint57c_pre, checkpoint48, checkpoint49, checkpoint47b_post, checkpoint53b_post, checkpoint57o_post, checkpoint55g_post, checkpoint51o_post, checkpoint48g_post, checkpoint57k_post, checkpoint57d_post, checkpoint55f_post, checkpoint57i_post, checkpoint51q_post, checkpoint52l_post, checkpoint52k_post, checkpoint57h_post, checkpoint57a_pre, checkpoint54, checkpoint57, checkpoint56, checkpoint51, checkpoint50, checkpoint53, checkpoint52, checkpoint50d_post, checkpoint52d_post, checkpoint46g_pre, checkpoint51b_pre, checkpoint52a_post, checkpoint46a_post, checkpoint47g_post, checkpoint52b_post, checkpoint53g_post, checkpoint52f_post, checkpoint52c_post, checkpoint46m_post, checkpoint57p_post, checkpoint51h_pre, checkpoint46a_pre, checkpoint50g_post, checkpoint45c_post, checkpoint51g_post, ecco_c52_e35, checkpoint46b_post, checkpoint54f_post, checkpoint51f_post, checkpoint46d_post, checkpoint48b_post, checkpoint50b_post, eckpoint57e_pre, checkpoint46g_post, checkpoint45a_post, checkpoint57c_post, checkpoint50f_post, checkpoint50a_post, checkpoint50f_pre, checkpoint52a_pre, checkpoint47d_pre, checkpoint51d_post, checkpoint48c_pre, checkpoint46i_post, checkpoint51m_post, checkpoint51t_post, checkpoint53d_pre, checkpoint47, checkpoint55e_post, checkpoint54c_post, checkpoint50h_post, checkpoint52i_post, checkpoint51a_post, checkpoint46h_post, checkpoint50e_pre, checkpoint50i_post, checkpoint51p_post, checkpoint51n_post, checkpoint55i_post, checkpoint51i_pre, checkpoint57l_post, checkpoint52i_pre, checkpoint51u_post, checkpoint52h_pre, checkpoint52f_pre, checkpoint56a_post, checkpoint51s_post, checkpoint55d_post
Branch point for: netcdf-sm0, branch-genmake2, branch-nonh, tg2-branch, checkpoint51n_branch, branch-exfmods-curt
Changes since 1.3: +3 -2 lines
argument futureIter of S/R obcs_calc was missing

1 C $Header: /u/gcmpack/MITgcm/verification/exp4/code/obcs_calc.F,v 1.3 2002/03/27 23:17:39 jmc Exp $
2 C $Name: $
3
4 #include "OBCS_OPTIONS.h"
5
6 SUBROUTINE OBCS_CALC( bi, bj, futureTime, futureIter,
7 & 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 INTEGER futureIter
27 _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 INTEGER I, J ,K
39 _RL recip_TimeScale,Uinflow
40 _RL EtaBC
41 c
42 recip_TimeScale=0./2000.
43 Uinflow = 0.25
44 EtaBC = 0.
45
46 C Eastern OB
47 IF (useOrlanskiEast) THEN
48 #ifdef ALLOW_ORLANSKI
49 CALL ORLANSKI_EAST(
50 & bi, bj, futureTime,
51 & uVel, vVel, wVel, theta, salt,
52 & myThid )
53 #endif
54 ELSE
55 DO K=1,Nr
56 DO J=1-Oly,sNy+Oly
57 OBEu(J,K,bi,bj)=Uinflow
58 & *cos(2.*PI*futureTime*recip_TimeScale)
59 & *max(futureTime*recip_TimeScale,1.)
60 OBEv(J,K,bi,bj)=0.
61 OBEt(J,K,bi,bj)=tRef(K)
62 OBEs(J,K,bi,bj)=sRef(K)
63 #ifdef ALLOW_NONHYDROSTATIC
64 OBEw(J,K,bi,bj)=0.
65 #endif
66 #ifdef NONLIN_FRSURF
67 OBEeta(J,bi,bj)=EtaBC
68 #endif
69 ENDDO
70 ENDDO
71 ENDIF
72
73 C Western OB
74 IF (useOrlanskiWest) THEN
75 #ifdef ALLOW_ORLANSKI
76 CALL ORLANSKI_WEST(
77 & bi, bj, futureTime,
78 & uVel, vVel, wVel, theta, salt,
79 & myThid )
80 #endif
81 ELSE
82 DO K=1,Nr
83 DO J=1-Oly,sNy+Oly
84 OBWu(J,K,bi,bj)=Uinflow
85 & *cos(2.*PI*futureTime*recip_TimeScale)
86 & *max(futureTime*recip_TimeScale,1.)
87 OBWv(J,K,bi,bj)=0.
88 OBWt(J,K,bi,bj)=tRef(K)
89 OBWs(J,K,bi,bj)=sRef(K)
90 #ifdef ALLOW_NONHYDROSTATIC
91 OBWw(J,K,bi,bj)=0.
92 #endif
93 #ifdef NONLIN_FRSURF
94 OBWeta(J,bi,bj)=EtaBC
95 #endif
96 ENDDO
97 ENDDO
98 ENDIF
99
100 C Northern OB, template for forcing
101 IF (useOrlanskiNorth) THEN
102 #ifdef ALLOW_ORLANSKI
103 CALL ORLANSKI_NORTH(
104 & bi, bj, futureTime,
105 & uVel, vVel, wVel, theta, salt,
106 & myThid )
107 #endif
108 ELSE
109 DO K=1,Nr
110 DO I=1-Olx,sNx+Olx
111 OBNu(I,K,bi,bj)=Uinflow
112 & *cos(2.*PI*futureTime*recip_TimeScale)
113 & *max(futureTime*recip_TimeScale,1.)
114 OBNv(I,K,bi,bj)=0.
115 OBNt(I,K,bi,bj)=tRef(K)
116 OBNs(I,K,bi,bj)=sRef(K)
117 #ifdef ALLOW_NONHYDROSTATIC
118 OBNw(I,K,bi,bj)=0.
119 #endif
120 #ifdef NONLIN_FRSURF
121 OBNeta(I,bi,bj)=0.
122 #endif
123 ENDDO
124 ENDDO
125 ENDIF
126
127 C Southern OB, template for forcing
128 IF (useOrlanskiSouth) THEN
129 #ifdef ALLOW_ORLANSKI
130 CALL ORLANSKI_SOUTH(
131 & bi, bj, futureTime,
132 & uVel, vVel, wVel, theta, salt,
133 & myThid )
134 #endif
135 ELSE
136 DO K=1,Nr
137 DO I=1-Olx,sNx+Olx
138 OBSu(I,K,bi,bj)=Uinflow
139 & *cos(2.*PI*futureTime*recip_TimeScale)
140 & *max(futureTime*recip_TimeScale,1.)
141 OBSv(I,K,bi,bj)=0.
142 OBSt(I,K,bi,bj)=tRef(K)
143 OBSs(I,K,bi,bj)=sRef(K)
144 #ifdef ALLOW_NONHYDROSTATIC
145 OBSw(I,K,bi,bj)=0.
146 #endif
147 #ifdef NONLIN_FRSURF
148 OBSeta(I,bi,bj)=0.
149 #endif
150 ENDDO
151 ENDDO
152 ENDIF
153
154 #endif /* ALLOW_OBCS */
155 RETURN
156 END

  ViewVC Help
Powered by ViewVC 1.1.22