| 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 |
SUBROUTINE CHGINT (IOLD, INEW, LIST, LLIST) |
| 9 |
C======================================================================= |
| 10 |
|
| 11 |
C --*** CHGINT *** (GJOIN) Changes all occurrences in list |
| 12 |
C -- Written by Amy Gilkey - revised 09/29/87 |
| 13 |
C -- |
| 14 |
C --CHGINT changes all occurrences of an integer in a list to a given |
| 15 |
C --integer. |
| 16 |
C -- |
| 17 |
C --Parameters: |
| 18 |
C -- IOLD - IN - the integer to change |
| 19 |
C -- INEW - IN - the integer to replace IOLD |
| 20 |
C -- LIST - IN/OUT - the list of integers |
| 21 |
C -- LLIST - IN - the length of LIST |
| 22 |
|
| 23 |
INTEGER LIST(LLIST) |
| 24 |
|
| 25 |
DO 100 I = 1, LLIST |
| 26 |
IF (LIST(I) .EQ. IOLD) THEN |
| 27 |
LIST(I) = INEW |
| 28 |
END IF |
| 29 |
100 CONTINUE |
| 30 |
|
| 31 |
RETURN |
| 32 |
END |