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