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

Contents of /MITgcm/pkg/obcs/obcs_apply_ts.F

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


Revision 1.4 - (show annotations) (download)
Fri Dec 3 16:47:30 2004 UTC (19 years, 5 months ago) by mlosch
Branch: MAIN
CVS Tags: checkpoint57m_post, checkpoint57g_pre, checkpoint57s_post, checkpoint58b_post, checkpoint57b_post, checkpoint57g_post, checkpoint57y_post, checkpoint62c, checkpoint57r_post, checkpoint57d_post, checkpoint57i_post, checkpoint59, checkpoint58, checkpoint57, checkpoint58f_post, checkpoint57n_post, checkpoint58d_post, checkpoint58a_post, checkpoint57z_post, checkpoint62a, checkpoint62g, checkpoint62f, checkpoint62e, checkpoint62d, checkpoint62k, checkpoint62j, checkpoint62i, checkpoint62h, checkpoint62m, checkpoint62l, checkpoint58y_post, checkpoint58t_post, checkpoint58m_post, checkpoint57l_post, checkpoint57t_post, checkpoint57v_post, checkpoint57f_post, checkpoint60, checkpoint61, checkpoint62, checkpoint57a_post, checkpoint57h_pre, checkpoint58w_post, checkpoint57h_post, checkpoint57y_pre, checkpoint58o_post, checkpoint57c_post, checkpoint58p_post, checkpoint58q_post, checkpoint58e_post, checkpoint57c_pre, checkpoint58r_post, checkpoint58n_post, checkpoint57e_post, checkpoint59q, checkpoint59p, checkpoint59r, checkpoint59e, checkpoint59d, checkpoint59g, checkpoint59f, checkpoint59a, checkpoint59c, checkpoint59b, checkpoint59m, checkpoint59l, checkpoint59o, checkpoint59n, checkpoint59i, checkpoint59h, checkpoint59k, checkpoint57p_post, checkpint57u_post, checkpoint57q_post, eckpoint57e_pre, checkpoint58k_post, checkpoint62b, checkpoint58v_post, checkpoint58l_post, checkpoint57h_done, checkpoint57j_post, checkpoint57f_pre, checkpoint61f, checkpoint58g_post, checkpoint58x_post, checkpoint61n, checkpoint59j, checkpoint58h_post, checkpoint58j_post, checkpoint57a_pre, checkpoint57o_post, checkpoint61q, checkpoint57k_post, checkpoint57w_post, checkpoint61e, checkpoint58i_post, checkpoint57x_post, checkpoint58c_post, checkpoint58u_post, checkpoint58s_post, checkpoint61g, checkpoint61d, checkpoint61b, checkpoint61c, checkpoint61a, checkpoint61o, checkpoint61l, checkpoint61m, checkpoint61j, checkpoint61k, checkpoint61h, checkpoint61i, checkpoint61v, checkpoint61w, checkpoint61t, checkpoint61u, checkpoint61r, checkpoint61s, checkpoint61p, checkpoint61z, checkpoint61x, checkpoint61y
Changes since 1.3: +17 -9 lines
o extend application of tracer open boundary conditions
  to a strip beyond the boundary of width Olx/Oly

1 C $Header: /u/gcmpack/MITgcm/pkg/obcs/obcs_apply_ts.F,v 1.3 2004/09/20 23:22:57 heimbach Exp $
2 C $Name: $
3
4 #include "OBCS_OPTIONS.h"
5
6 SUBROUTINE OBCS_APPLY_TS( bi, bj, K,
7 U tFld, sFld,
8 I myThid )
9 C /==========================================================\
10 C | S/R OBCS_APPLY_TS |
11 C \==========================================================/
12 IMPLICIT NONE
13 C == Global variables ==
14 #include "SIZE.h"
15 #include "EEPARAMS.h"
16 #include "PARAMS.h"
17 #include "GRID.h"
18 #include "OBCS.h"
19
20 C == Routine Arguments ==
21 INTEGER bi,bj,K
22 _RL tFld(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy)
23 _RL sFld(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy)
24 INTEGER myThid
25
26 #ifdef ALLOW_OBCS
27
28 C == Local variables ==
29 INTEGER I,J,I_obc,J_obc
30 _RL obc_mask
31
32 C Set model variables to OB values on North/South Boundaries
33 #ifdef ALLOW_OBCS_NORTH
34 DO I=1-Olx,sNx+Olx
35 C Northern boundary
36 J_obc = OB_Jn(I,bi,bj)
37 IF (J_obc.NE.0) THEN
38 obc_mask = _maskS(I,J_obc,K,bi,bj)
39 DO J = J_obc, J_obc+Oly
40 tFld(I,J,K,bi,bj)=OBNt(I,K,bi,bj)*obc_mask
41 sFld(I,J,K,bi,bj)=OBNs(I,K,bi,bj)*obc_mask
42 ENDDO
43 ENDIF
44 ENDDO
45 #endif
46 #ifdef ALLOW_OBCS_SOUTH
47 DO I=1-Olx,sNx+Olx
48 C Southern boundary
49 J_obc = OB_Js(I,bi,bj)
50 IF (J_obc.NE.0) THEN
51 obc_mask = _maskS(I,J_obc+1,K,bi,bj)
52 DO J = J_obc-Oly, J_obc
53 tFld(I,J,K,bi,bj)=OBSt(I,K,bi,bj)*obc_mask
54 sFld(I,J,K,bi,bj)=OBSs(I,K,bi,bj)*obc_mask
55 ENDDO
56 ENDIF
57 ENDDO
58 #endif
59
60 C Set model variables to OB values on East/West Boundaries
61 #ifdef ALLOW_OBCS_EAST
62 DO J=1-Oly,sNy+Oly
63 C Eastern boundary
64 I_obc = OB_Ie(J,bi,bj)
65 IF (I_obc.NE.0) THEN
66 obc_mask = _maskW(I_obc,J,K,bi,bj)
67 DO I = I_obc, I_obc+Olx
68 tFld(I,J,K,bi,bj)=OBEt(J,K,bi,bj)*obc_mask
69 sFld(I,J,K,bi,bj)=OBEs(J,K,bi,bj)*obc_mask
70 ENDDO
71 ENDIF
72 ENDDO
73 #endif
74 #ifdef ALLOW_OBCS_WEST
75 DO J=1-Oly,sNy+Oly
76 C Western boundary
77 I_obc=OB_Iw(J,bi,bj)
78 IF (I_obc.NE.0) THEN
79 obc_mask = _maskW(I_obc+1,J,K,bi,bj)
80 DO I = I_obc-Olx, I_obc
81 tFld(I,J,K,bi,bj)=OBWt(J,K,bi,bj) * obc_mask
82 sFld(I,J,K,bi,bj)=OBWs(J,K,bi,bj) * obc_mask
83 ENDDO
84 ENDIF
85 ENDDO
86 #endif
87
88 #endif
89 RETURN
90 END

  ViewVC Help
Powered by ViewVC 1.1.22