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

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

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


Revision 1.8 - (show annotations) (download)
Tue Jul 6 18:25:52 2004 UTC (19 years, 11 months ago) by adcroft
Branch: MAIN
Changes since 1.7: +1 -18 lines
Modifications from Sonya Legg, James Girton and Ulriker Riemenscheider
pertaining to Orlanski radiation conditions for salt
 o NOTE these are only for eastern and western boundaries; someone needs
   to duplicate these mods for the northwen and southern boudnaries

1 C $Header: /u/gcmpack/MITgcm/pkg/obcs/obcs_init_variables.F,v 1.4.4.1 2002/04/08 20:10:39 heimbach Exp $
2 C $Name: $
3
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 OBNs(I,K,bi,bj)=0.
41 OBSu(I,K,bi,bj)=0.
42 OBSv(I,K,bi,bj)=0.
43 OBSt(I,K,bi,bj)=0.
44 OBSs(I,K,bi,bj)=0.
45 #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 OBEs(J,K,bi,bj)=0.
55 OBWu(J,K,bi,bj)=0.
56 OBWv(J,K,bi,bj)=0.
57 OBWt(J,K,bi,bj)=0.
58 OBWs(J,K,bi,bj)=0.
59 #ifdef ALLOW_NONHYDROSTATIC
60 OBEw(J,K,bi,bj)=0.
61 OBWw(J,K,bi,bj)=0.
62 #endif
63 ENDDO
64 ENDDO
65
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
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
84 ENDDO
85 ENDDO
86
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 CALL OBCS_CALC( bi, bj, startTime, nIter0,
91 & 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