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

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

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


Revision 1.2 - (hide annotations) (download)
Fri Feb 2 21:36:29 2001 UTC (23 years, 4 months ago) by adcroft
Branch: MAIN
CVS Tags: checkpoint46n_post, checkpoint51k_post, checkpoint47e_post, checkpoint52l_pre, checkpoint44e_post, hrcube4, hrcube5, checkpoint46l_post, checkpoint46g_pre, checkpoint47c_post, release1_p13_pre, checkpoint50c_post, checkpoint46f_post, checkpoint52d_pre, checkpoint48e_post, checkpoint50c_pre, checkpoint44f_post, checkpoint46b_post, checkpoint52j_pre, checkpoint43a-release1mods, checkpoint51o_pre, checkpoint54d_post, checkpoint54e_post, release1_p13, checkpoint40pre3, checkpoint40pre1, checkpoint51l_post, checkpoint40pre7, checkpoint40pre6, checkpoint48i_post, checkpoint40pre9, checkpoint40pre8, checkpoint46l_pre, checkpoint52l_post, checkpoint52k_post, chkpt44d_post, checkpoint55, checkpoint54, checkpoint51, checkpoint50, checkpoint53, checkpoint52, release1_p8, release1_p9, checkpoint50d_post, release1_p1, release1_p2, release1_p3, release1_p4, release1_p5, release1_p6, release1_p7, checkpoint52f_post, checkpoint50b_pre, checkpoint44e_pre, checkpoint54f_post, checkpoint51f_post, release1_b1, checkpoint48b_post, checkpoint43, checkpoint51d_post, checkpoint48c_pre, checkpoint47d_pre, checkpoint51t_post, checkpoint38, checkpoint51n_post, release1_chkpt44d_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, checkpoint40pre2, checkpoint48d_post, release1-branch_tutorials, checkpoint48f_post, checkpoint45d_post, checkpoint52b_pre, checkpoint54b_post, checkpoint46j_pre, checkpoint51l_pre, checkpoint52m_post, chkpt44a_post, checkpoint44h_pre, checkpoint48h_post, checkpoint51q_post, checkpoint40pre4, checkpoint51b_pre, checkpoint46a_post, checkpoint47g_post, checkpoint52b_post, checkpoint52c_post, checkpoint46j_post, checkpoint51h_pre, checkpoint46k_post, chkpt44c_pre, checkpoint48a_post, checkpoint45a_post, checkpoint50f_post, checkpoint50a_post, checkpoint50f_pre, checkpoint52f_pre, release1_p12, release1_p10, release1_p11, release1_p16, release1_p17, release1_p14, release1_p15, checkpoint47j_post, pre38tag1, 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-branch-end, c37_adj, release1_final_v1, checkpoint51b_post, checkpoint51c_post, checkpoint46c_pre, checkpoint53a_post, checkpoint46, checkpoint47b_post, checkpoint44b_post, checkpoint46h_pre, checkpoint52d_post, checkpoint53g_post, checkpoint46m_post, checkpoint46a_pre, checkpoint50g_post, checkpoint45c_post, checkpoint44h_post, pre38-close, checkpoint46g_post, release1_p12_pre, checkpoint39, checkpoint52a_pre, checkpoint37, checkpoint36, checkpoint35, checkpoint50h_post, checkpoint52i_post, checkpoint50e_pre, checkpoint50i_post, checkpoint51i_pre, checkpoint52h_pre, checkpoint53f_post, checkpoint40pre5, checkpoint52j_post, checkpoint47f_post, checkpoint50e_post, chkpt44a_pre, checkpoint46i_post, checkpoint46c_post, branch-netcdf, checkpoint50d_pre, checkpoint52n_post, checkpoint53b_pre, checkpoint46e_post, release1_beta1, checkpoint51e_post, checkpoint44b_pre, checkpoint42, checkpoint40, checkpoint41, checkpoint47, checkpoint44, 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, release1-branch_branchpoint, checkpoint51m_post, checkpoint53d_pre, checkpoint54c_post, checkpoint51a_post, checkpoint51p_post, checkpoint51u_post
Branch point for: branch-exfmods-curt, release1_final, release1-branch, branch-genmake2, release1, branch-nonh, tg2-branch, ecco-branch, release1_50yr, netcdf-sm0, checkpoint51n_branch, pre38, release1_coupled
Changes since 1.1: +70 -0 lines
Merged changes from branch "branch-atmos-merge" into MAIN (checkpoint34)
 - substantial modifications to algorithm sequence (dynamics.F)
 - packaged OBCS, Shapiro filter, Zonal filter, Atmospheric Physics

1 adcroft 1.2 C $Header: /u/gcmpack/models/MITgcmUV/pkg/obcs/Attic/obcs_apply_ts.F,v 1.1.2.1 2001/01/30 21:03:00 adcroft Exp $
2     C $Name: branch-atmos-merge-freeze $
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     DO I=1-Olx,sNx+Olx
34     C Northern boundary
35     J_obc = OB_Jn(I,bi,bj)
36     IF (J_obc.NE.0) THEN
37     obc_mask = _maskS(I,J_obc,K,bi,bj)
38     tFld(I,J_obc,K,bi,bj)=OBNt(I,K,bi,bj)*obc_mask
39     sFld(I,J_obc,K,bi,bj)=OBNs(I,K,bi,bj)*obc_mask
40     ENDIF
41     C Southern boundary
42     J_obc = OB_Js(I,bi,bj)
43     IF (J_obc.NE.0) THEN
44     obc_mask = _maskS(I,J_obc+1,K,bi,bj)
45     tFld(I,J_obc,K,bi,bj)=OBSt(I,K,bi,bj)*obc_mask
46     sFld(I,J_obc,K,bi,bj)=OBSs(I,K,bi,bj)*obc_mask
47     ENDIF
48     ENDDO
49    
50     C Set model variables to OB values on East/West Boundaries
51     DO J=1-Oly,sNy+Oly
52     C Eastern boundary
53     I_obc = OB_Ie(J,bi,bj)
54     IF (I_obc.NE.0) THEN
55     obc_mask = _maskW(I_obc,J,K,bi,bj)
56     tFld(I_obc,J,K,bi,bj)=OBEt(J,K,bi,bj)*obc_mask
57     sFld(I_obc,J,K,bi,bj)=OBEs(J,K,bi,bj)*obc_mask
58     ENDIF
59     C Western boundary
60     I_obc=OB_Iw(J,bi,bj)
61     IF (I_obc.NE.0) THEN
62     obc_mask = _maskW(I_obc+1,J,K,bi,bj)
63     tFld(I_obc,J,K,bi,bj)=OBWt(J,K,bi,bj) * obc_mask
64     sFld(I_obc,J,K,bi,bj)=OBWs(J,K,bi,bj) * obc_mask
65     ENDIF
66     ENDDO
67    
68     #endif
69     RETURN
70     END

  ViewVC Help
Powered by ViewVC 1.1.22