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.
 
 
 
 
 
 

32 lines
1.0 KiB

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
C=======================================================================
SUBROUTINE CHGINT (IOLD, INEW, LIST, LLIST)
C=======================================================================
C --*** CHGINT *** (GJOIN) Changes all occurrences in list
C -- Written by Amy Gilkey - revised 09/29/87
C --
C --CHGINT changes all occurrences of an integer in a list to a given
C --integer.
C --
C --Parameters:
C -- IOLD - IN - the integer to change
C -- INEW - IN - the integer to replace IOLD
C -- LIST - IN/OUT - the list of integers
C -- LLIST - IN - the length of LIST
INTEGER LIST(LLIST)
DO 100 I = 1, LLIST
IF (LIST(I) .EQ. IOLD) THEN
LIST(I) = INEW
END IF
100 CONTINUE
RETURN
END