Debian Codegraph @

packages/seacas/libraries/suplib/numeqi.f

raw
1 C Copyright(C) 1999-2020 National Technology & Engineering Solutions
2 C of Sandia, LLC (NTESS). Under the terms of Contract DE-NA0003525 with
3 C NTESS, the U.S. Government retains certain rights in this software.
4 C
5 C See packages/seacas/LICENSE for details
6
7 C=======================================================================
8 INTEGER FUNCTION NUMEQI (INT, LENLST, INTLST)
9 C=======================================================================
10
11 C --*** NUMEQI *** (ETCLIB) Count number of occurrences of integer in list
12 C -- Written by Amy Gilkey - revised 11/10/87
13 C --
14 C --NUMEQI returns the number of times the given integer occurs in a list
15 C --of integers.
16 C --
17 C --Parameters:
18 C -- INT - IN - the integer to be counted
19 C -- LENLST - IN - the number of integers in the list
20 C -- INTLST - IN - the list of integers to be searched
21
22 INTEGER INT
23 INTEGER LENLST
24 INTEGER INTLST(*)
25
26 NUMEQI = 0
27 DO 10 I = 1, LENLST
28 IF (INT .EQ. INTLST(I)) NUMEQI = NUMEQI + 1
29 10 CONTINUE
30
31 RETURN
32 END