Cloned SEACAS for EXODUS library with extra build files for internal package management.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

34 lines
944 B

C Copyright(C) 1999-2020 National Technology & Engineering Solutions
C of Sandia, LLC (NTESS). Under the terms of Contract DE-NA0003525 with
C NTESS, the U.S. Government retains certain rights in this software.
C
C See packages/seacas/LICENSE for details
FUNCTION IOCCUR (N, L, NEW)
C***********************************************************************
C FUNCTION IOCCUR = CHECKS TO SEE IF NEW OCCURS IN (L (I), I=1, N)
C***********************************************************************
C RETURN 0 IF NEW DOES NOT OCCUR IN (L (I), I=1, N)
C RETURN 1 IF IT DOES
C***********************************************************************
DIMENSION L (N)
IF (N .LT. 1) THEN
IOCCUR = 0
RETURN
ENDIF
DO 100 I = 1, N
IF (L (I) .EQ. NEW) THEN
IOCCUR = 1
RETURN
ENDIF
100 CONTINUE
IOCCUR = 0
RETURN
END