Debian Codegraph @

packages/seacas/applications/fastq/ioccur.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 FUNCTION IOCCUR (N, L, NEW)
8 C***********************************************************************
9
10 C FUNCTION IOCCUR = CHECKS TO SEE IF NEW OCCURS IN (L (I), I=1, N)
11
12 C***********************************************************************
13
14 C RETURN 0 IF NEW DOES NOT OCCUR IN (L (I), I=1, N)
15 C RETURN 1 IF IT DOES
16
17 C***********************************************************************
18
19 DIMENSION L (N)
20
21 IF (N .LT. 1) THEN
22 IOCCUR = 0
23 RETURN
24 ENDIF
25
26 DO 100 I = 1, N
27 IF (L (I) .EQ. NEW) THEN
28 IOCCUR = 1
29 RETURN
30 ENDIF
31 100 CONTINUE
32 IOCCUR = 0
33 RETURN
34 END