Debian Codegraph @

packages/seacas/applications/grepos/gp_intcnt.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 INTCNT (INT, LIST, LLIST)
9 C=======================================================================
10
11 C --*** INTCNT *** (GJOIN) Returns the number of occurrences in list
12 C -- Written by Amy Gilkey - revised 09/29/87
13 C --
14 C --INTCNT returns the number of times an integer is found in a list.
15 C --
16 C --Parameters:
17 C -- INT - IN - the integer to count
18 C -- LIST - IN - the list of integers
19 C -- LLIST - IN - the length of LIST
20
21 INTEGER LIST(*)
22
23 INTCNT = 0
24 DO 100 I = 1, LLIST
25 IF (LIST(I) .EQ. INT) THEN
26 INTCNT = INTCNT + 1
27 END IF
28 100 CONTINUE
29
30 RETURN
31 END