NCEPLIBS-w3emc 2.12.0
Loading...
Searching...
No Matches
w3fi19.f
Go to the documentation of this file.
1C> @file
2C> @brief NMC Rectangle boundary finding subroutine.
3C> @author James Howcroft @date 1973-10-15
4
5C> Relates the I,J coordinate point in a 65x65 grid-point
6C> array as being either inside, outside, or on the boundary of the
7C> 53x57 NMC rectangle centered in the 65x65 array.
8C>
9C> Program history log:
10C> - James Howcroft 1973-10-15
11C> - Ralph Jones 1984-07-02 Convert to fortran 77.
12C> - Ralph Jones 1989-02-02 Convert to microsoft fortran 4.10.
13C> - Ralph Jones 1990-06-12 Convert to sun fortran 1.3.
14C> - Ralph Jones 1991-03-16 Convert to silicongraphics 3.3 fortran 77.
15C> - Ralph Jones 1993-03-29 Add save statement.
16C>
17C> @param[in] I Coordinate identification of a point in the 65x65 array.
18C> @param[in] J Coordinate identification of a point in the 65x65 array.
19C> @param[out] NW Integer return code.
20C>
21C> Exit states:
22C> - NW = -1 Point is outside the rectangle.
23C> - NW = 0 Point is on the rectangle boundary.
24C> - NW = +1 Point is inside the rectangle.
25C>
26C> @author James Howcroft @date 1973-10-15
27 SUBROUTINE w3fi19(I,J,NW)
28C
29 SAVE
30C
31 IF (i.LT.7.OR.i.GT.59.OR.j.LT.5.OR.j.GT.61) GO TO 10
32 IF (i.EQ.7.OR.i.EQ.59.OR.j.EQ.5.OR.j.EQ.61) GO TO 20
33 nw = 1
34 RETURN
35C
36 10 CONTINUE
37 nw = -1
38 RETURN
39C
40 20 CONTINUE
41 nw = 0
42 RETURN
43 END
subroutine w3fi19(i, j, nw)
Relates the I,J coordinate point in a 65x65 grid-point array as being either inside,...
Definition w3fi19.f:28