Debian Codegraph @

packages/seacas/applications/gjoin/gj_zmxyz.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 ZMXYZ (NDIM, NUMNP, IXNP, XN, YN, ZN)
9 C=======================================================================
10
11 C --*** ZMXYZ *** (GJOIN) Compress coordinates
12 C -- Written by Amy Gilkey - revised 01/20/88
13 C --
14 C --ZMXYZ compresses the coordinates by removing deleted nodes.
15 C --
16 C --Parameters:
17 C -- NDIM - IN - the number of coordinates per node
18 C -- NUMNP - IN/OUT - the number of nodes; returned compressed
19 C -- IXNP - IN - the index of the compressed node; 0 if deleted
20 C -- XN, YN, ZN - IN/OUT - the coordinates, returned compressed
21
22 INTEGER IXNP(*)
23 REAL XN(*), YN(*), ZN(*)
24
25 JNP = 0
26 DO 100 INP = 1, NUMNP
27 IF (IXNP(INP) .GT. 0) THEN
28 JNP = JNP + 1
29 XN(JNP) = XN(INP)
30 YN(JNP) = YN(INP)
31 IF (NDIM .GE. 3) ZN(JNP) = ZN(INP)
32 END IF
33 100 CONTINUE
34
35 NUMNP = JNP
36
37 END