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

Annotation of /MITgcm/pkg/obcs/obcs_init_variables.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, 4 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint46n_post, checkpoint51k_post, checkpoint47e_post, checkpoint44e_post, checkpoint46l_post, checkpoint46g_pre, checkpoint47c_post, checkpoint50c_post, checkpoint46f_post, checkpoint52d_pre, checkpoint48e_post, checkpoint50c_pre, checkpoint44f_post, checkpoint46b_post, checkpoint51o_pre, checkpoint51l_post, checkpoint48i_post, checkpoint46l_pre, chkpt44d_post, checkpoint51, checkpoint50, checkpoint52, checkpoint50d_post, checkpoint50b_pre, checkpoint44e_pre, checkpoint51f_post, checkpoint48b_post, checkpoint51d_post, checkpoint48c_pre, checkpoint47d_pre, checkpoint51t_post, checkpoint51n_post, checkpoint51s_post, checkpoint47a_post, checkpoint48d_pre, checkpoint51j_post, checkpoint47i_post, checkpoint51n_pre, checkpoint47d_post, checkpoint46d_pre, checkpoint48d_post, checkpoint48f_post, checkpoint45d_post, checkpoint52b_pre, checkpoint46j_pre, checkpoint51l_pre, 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, checkpoint47j_post, branch-exfmods-tag, checkpoint44g_post, branchpoint-genmake2, checkpoint46e_pre, checkpoint51r_post, checkpoint48c_post, checkpoint45b_post, checkpoint46b_pre, checkpoint51i_post, release1_final_v1, checkpoint51b_post, checkpoint51c_post, checkpoint46c_pre, checkpoint46, checkpoint47b_post, checkpoint46h_pre, checkpoint46m_post, checkpoint46a_pre, checkpoint50g_post, checkpoint45c_post, checkpoint44h_post, checkpoint46g_post, checkpoint52a_pre, checkpoint50h_post, checkpoint50e_pre, checkpoint50i_post, checkpoint51i_pre, checkpoint47f_post, checkpoint50e_post, checkpoint46i_post, checkpoint46c_post, branch-netcdf, checkpoint50d_pre, checkpoint46e_post, checkpoint51e_post, checkpoint47, checkpoint45, checkpoint48, checkpoint49, checkpoint46h_post, checkpoint51o_post, checkpoint51f_pre, chkpt44c_post, checkpoint48g_post, checkpoint47h_post, checkpoint52a_post, checkpoint44f_pre, checkpoint51g_post, ecco_c52_e35, checkpoint46d_post, checkpoint50b_post, checkpoint51m_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: +2 -2 lines
add argument myIter to S/R obcs_calc

1 jmc 1.6 C $Header: /u/gcmpack/MITgcm/pkg/obcs/obcs_init_variables.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     SUBROUTINE OBCS_INIT_VARIABLES( myThid )
7     C /==========================================================\
8     C | SUBROUTINE OBCS_INIT_VARIABLES |
9     C | o Initialise OBCs variable data |
10     C |==========================================================|
11     C | |
12     C \==========================================================/
13     IMPLICIT NONE
14    
15     C === Global variables ===
16     #include "SIZE.h"
17     #include "EEPARAMS.h"
18     #include "PARAMS.h"
19     #include "DYNVARS.h"
20     #include "OBCS.h"
21    
22     C == Routine arguments ==
23     C myThid - Number of this instance of INI_DEPTHS
24     INTEGER myThid
25    
26     #ifdef ALLOW_OBCS
27    
28     C == Local variables ==
29     INTEGER bi, bj
30     INTEGER I, J, K
31    
32     DO bj = myByLo(myThid), myByHi(myThid)
33     DO bi = myBxLo(myThid), myBxHi(myThid)
34    
35     DO K=1,Nr
36     DO I=1-Olx,sNx+Olx
37     OBNu(I,K,bi,bj)=0.
38     OBNv(I,K,bi,bj)=0.
39     OBNt(I,K,bi,bj)=0.
40 adcroft 1.4 OBNs(I,K,bi,bj)=0.
41 adcroft 1.2 OBSu(I,K,bi,bj)=0.
42     OBSv(I,K,bi,bj)=0.
43     OBSt(I,K,bi,bj)=0.
44 adcroft 1.4 OBSs(I,K,bi,bj)=0.
45 adcroft 1.2 #ifdef ALLOW_NONHYDROSTATIC
46     OBNw(I,K,bi,bj)=0.
47     OBSw(I,K,bi,bj)=0.
48     #endif
49     ENDDO
50     DO J=1-Oly,sNy+Oly
51     OBEu(J,K,bi,bj)=0.
52     OBEv(J,K,bi,bj)=0.
53     OBEt(J,K,bi,bj)=0.
54 adcroft 1.4 OBEs(J,K,bi,bj)=0.
55 adcroft 1.2 OBWu(J,K,bi,bj)=0.
56     OBWv(J,K,bi,bj)=0.
57     OBWt(J,K,bi,bj)=0.
58 adcroft 1.4 OBWs(J,K,bi,bj)=0.
59 adcroft 1.2 #ifdef ALLOW_NONHYDROSTATIC
60     OBEw(J,K,bi,bj)=0.
61     OBWw(J,K,bi,bj)=0.
62     #endif
63     ENDDO
64     ENDDO
65 jmc 1.5
66     #ifdef NONLIN_FRSURF
67     DO I=1-Olx,sNx+Olx
68     OBNeta(I,bi,bj)=0.
69     OBSeta(I,bi,bj)=0.
70     ENDDO
71     DO J=1-Oly,sNy+Oly
72     OBEeta(J,bi,bj)=0.
73     OBWeta(J,bi,bj)=0.
74     ENDDO
75     #endif /* NONLIN_FRSURF */
76 adcroft 1.2
77     #ifdef ALLOW_ORLANSKI
78     IF (useOrlanskiNorth.OR.useOrlanskiSouth.OR.
79     & useOrlanskiEast.OR.useOrlanskiWest) THEN
80     CALL ORLANSKI_INIT(bi, bj, myThid)
81     ENDIF
82     #endif /* ALLOW_ORLANSKI */
83 adcroft 1.3
84     ENDDO
85     ENDDO
86 adcroft 1.2
87     C-- Apply OBCS values to initial conditions for consistancy
88     DO bj = myByLo(myThid), myByHi(myThid)
89     DO bi = myBxLo(myThid), myBxHi(myThid)
90 jmc 1.6 CALL OBCS_CALC( bi, bj, startTime, nIter0,
91 adcroft 1.2 & uVel, vVel, wVel, theta, salt, myThid )
92     DO K=1,Nr
93     CALL OBCS_APPLY_UV( bi, bj, k, uVel, vVel, myThid )
94     CALL OBCS_APPLY_TS( bi, bj, k, theta, salt, myThid )
95     ENDDO
96     ENDDO
97     ENDDO
98    
99     #endif /* ALLOW_OBCS */
100     RETURN
101     END

  ViewVC Help
Powered by ViewVC 1.1.22