/[MITgcm]/MITgcm/pkg/grdchk/grdchk_get_obcs_mask.F
ViewVC logotype

Contents of /MITgcm/pkg/grdchk/grdchk_get_obcs_mask.F

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


Revision 1.6 - (show annotations) (download)
Tue Oct 9 00:05:45 2007 UTC (16 years, 6 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint60, checkpoint61, checkpoint62, checkpoint59q, checkpoint59p, checkpoint59r, checkpoint59m, checkpoint59l, checkpoint59o, checkpoint59n, checkpoint59i, checkpoint59k, checkpoint59j, checkpoint62c, checkpoint62b, checkpoint62a, checkpoint62g, checkpoint62f, checkpoint62e, checkpoint62d, checkpoint62k, checkpoint62j, checkpoint62i, checkpoint62h, checkpoint62o, checkpoint62n, checkpoint62m, checkpoint62l, checkpoint62s, checkpoint62r, checkpoint62q, checkpoint62p, checkpoint62t, checkpoint61f, checkpoint61g, checkpoint61d, checkpoint61e, checkpoint61b, checkpoint61c, checkpoint61a, checkpoint61n, checkpoint61o, checkpoint61l, checkpoint61m, checkpoint61j, checkpoint61k, checkpoint61h, checkpoint61i, checkpoint61v, checkpoint61w, checkpoint61t, checkpoint61u, checkpoint61r, checkpoint61s, checkpoint61p, checkpoint61q, checkpoint61z, checkpoint61x, checkpoint61y
Changes since 1.5: +7 -6 lines
add missing cvs $Header:$ or $Name:$

1 C $Header: $
2 C $Name: $
3
4 #include "CTRL_CPPOPTIONS.h"
5
6
7 subroutine grdchk_get_obcs_mask( mythid )
8
9 c ==================================================================
10 c SUBROUTINE grdchk_get_obcs_mask
11 c ==================================================================
12 c
13 c o Get obcs masks from file
14 c
15 c started: heimbach@mit.edu: 22-Apr-2003
16 c
17 c ==================================================================
18 c SUBROUTINE grdchk_get_obcs_mask
19 c ==================================================================
20
21 implicit none
22
23 c == global variables ==
24
25 #include "EEPARAMS.h"
26 #include "SIZE.h"
27 #include "GRID.h"
28 #include "ctrl.h"
29 #include "grdchk.h"
30
31 c == routine arguments ==
32
33 integer mythid
34
35 #if (defined (ALLOW_GRDCHK) && defined (ALLOW_OBCS_CONTROL))
36 c == local variables ==
37
38 integer bi,bj
39 integer i,j,k
40 integer irec,iobcs
41 integer itlo,ithi
42 integer jtlo,jthi
43 integer jmin,jmax
44 integer imin,imax
45
46 _RL dummy
47
48 character*( 80) fname
49
50 c == external ==
51
52 integer ilnblnk
53 external ilnblnk
54
55 c == end of interface ==
56
57 jtlo = 1
58 jthi = nsy
59 itlo = 1
60 ithi = nsx
61 jmin = 1
62 jmax = sny
63 imin = 1
64 imax = snx
65
66 _BEGIN_MASTER( mythid )
67
68 if ( grdchkvarindex .EQ. 11 ) then
69 #ifdef ALLOW_OBCSN_CONTROL
70 write(fname(1:80),'(80a)') ' '
71 write(fname(1:80),'(a)') 'maskobcsn'
72 c
73 do iobcs = 1,nobcs
74 call active_read_xz( fname, tmpfldxz, iobcs,
75 & .false., .false., 0, mythid, dummy)
76 c
77 do bj = jtlo,jthi
78 do bi = itlo,ithi
79 do k = 1,nr
80 do i = imin,imax
81 grdchk_maskxz(i,k,bi,bj,iobcs) =
82 & tmpfldxz(i,k,bi,bj)
83 enddo
84 enddo
85 enddo
86 enddo
87 c
88 enddo
89 #endif
90
91 else if ( grdchkvarindex .EQ. 12 ) then
92 #ifdef ALLOW_OBCSS_CONTROL
93 write(fname(1:80),'(80a)') ' '
94 write(fname(1:80),'(a)') 'maskobcss'
95 c
96 do iobcs = 1,nobcs
97 call active_read_xz( fname, tmpfldxz, iobcs,
98 & .false., .false., 0, mythid, dummy)
99 c
100 do bj = jtlo,jthi
101 do bi = itlo,ithi
102 do k = 1,nr
103 do i = imin,imax
104 grdchk_maskxz(i,k,bi,bj,iobcs) =
105 & tmpfldxz(i,k,bi,bj)
106 enddo
107 enddo
108 enddo
109 enddo
110 c
111 enddo
112 #endif
113
114 else if ( grdchkvarindex .EQ. 13 ) then
115 #ifdef ALLOW_OBCSW_CONTROL
116 write(fname(1:80),'(80a)') ' '
117 write(fname(1:80),'(a)') 'maskobcsw'
118 c
119 do iobcs = 1,nobcs
120 call active_read_yz( fname, tmpfldyz, iobcs,
121 & .false., .false., 0, mythid, dummy)
122 c
123 do bj = jtlo,jthi
124 do bi = itlo,ithi
125 do k = 1,nr
126 do j = jmin,jmax
127 grdchk_maskyz(j,k,bi,bj,iobcs) =
128 & tmpfldyz(j,k,bi,bj)
129 enddo
130 enddo
131 enddo
132 enddo
133 c
134 enddo
135 #endif
136
137 else if ( grdchkvarindex .EQ. 14 ) then
138 #ifdef ALLOW_OBCSE_CONTROL
139 write(fname(1:80),'(80a)') ' '
140 write(fname(1:80),'(a)') 'maskobcse'
141 c
142 do iobcs = 1,nobcs
143 call active_read_yz( fname, tmpfldyz, iobcs,
144 & .false., .false., 0, mythid, dummy)
145 c
146 do bj = jtlo,jthi
147 do bi = itlo,ithi
148 do k = 1,nr
149 do j = jmin,jmax
150 grdchk_maskyz(j,k,bi,bj,iobcs) =
151 & tmpfldyz(j,k,bi,bj)
152 enddo
153 enddo
154 enddo
155 enddo
156 c
157 enddo
158 #endif
159 endif
160
161 _END_MASTER( mythid )
162
163 _BARRIER
164
165 #endif /* ALLOW_GRDCHK */
166
167 end
168

  ViewVC Help
Powered by ViewVC 1.1.22