Debian Codegraph @

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