| 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 ZMMAP (NUMEL, MAPEL) |
| 9 |
C======================================================================= |
| 10 |
|
| 11 |
C --*** ZMMAP *** (GJOIN) Compress element order map |
| 12 |
C -- Written by Amy Gilkey - revised 01/20/88 |
| 13 |
C -- |
| 14 |
C --ZMMAP compresses the element order map by removing deleted elements. |
| 15 |
C -- |
| 16 |
C --Parameters: |
| 17 |
C -- NUMEL - IN/OUT - the number of elements |
| 18 |
C -- MAPEL - IN/OUT - the element order map |
| 19 |
|
| 20 |
INTEGER MAPEL(*) |
| 21 |
|
| 22 |
JEL = 0 |
| 23 |
DO 100 IEL = 1, NUMEL |
| 24 |
IF (MAPEL(IEL) .GT. 0) THEN |
| 25 |
JEL = JEL + 1 |
| 26 |
MAPEL(JEL) = MAPEL(IEL) |
| 27 |
END IF |
| 28 |
100 CONTINUE |
| 29 |
|
| 30 |
NUMEL = JEL |
| 31 |
|
| 32 |
RETURN |
| 33 |
END |