NCEPLIBS-w3emc  2.11.0
iw3mat.f
Go to the documentation of this file.
1 C> @file
2 C> @brief Test n words starting at l1, l2 for equality, return .true.
3 C> if all equal; otherwise .false.
4 C> @author J.D. Stackpole @date 1986-01-13
5 
6 C> Program history log:
7 C> - J.D. Stackpole 1986-01-13
8 C> - Ralph Jones 1990-03-15 Convert to cray cft77 fortran.
9 C>
10 C> @param[in] L1 Integer array to match with l2.
11 C> @param[in] L2 Integer array to match with l1.
12 C> @param[in] N Number of integer words to test for match.
13 C> @return IW3MAT Logical .true. if l1 and l2 match on all words,
14 C> logical .false. if not match on any word.
15 C>
16 C> @author J.D. Stackpole @date 1986-01-13
17  LOGICAL FUNCTION iw3mat(L1, L2, N)
18 C
19  INTEGER l1(*)
20  INTEGER l2(*)
21 C
22  iw3mat = .true.
23  DO 10 i = 1,n
24  IF (l1(i).NE.l2(i)) GO TO 20
25  10 CONTINUE
26  RETURN
27 C
28  20 CONTINUE
29  iw3mat = .false.
30  RETURN
31  END
logical function iw3mat(L1, L2, N)
Program history log:
Definition: iw3mat.f:18