Debian Codegraph @

packages/seacas/libraries/suplib/intadd.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 INTADD (LENLST, INTLST)
9 C=======================================================================
10
11 C --*** INTADD *** (ETCLIB) Add all integers in list
12 C -- Written by Amy Gilkey - revised 11/10/87
13 C --
14 C --INTADD returns the sum of all the integers in a list.
15 C --
16 C --Parameters:
17 C -- LENLST - IN - the number of integers in the list
18 C -- INTLST - IN - the list of integers to be added
19
20 INTEGER LENLST
21 INTEGER INTLST(*)
22
23 INTADD = 0
24 DO 100 I = 1, LENLST
25 INTADD = INTADD + INTLST(I)
26 100 CONTINUE
27
28 RETURN
29 END