Debian Codegraph @

packages/seacas/libraries/plt/pltzcp.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 PLTZCP(ZNEAR,ZFAR,N,MASK,PZ)
9 INTEGER N
10 INTEGER MASK(*)
11 REAL PZ(*)
12 include 'izbit.inc'
13
14 J = 0
15 KM = 0
16 2380 IF (.NOT. (J.LT.N)) GO TO 2390
17 JN = MIN(N-J,32)
18 J = J + JN
19 KM = KM + 1
20 M = MASK(KM)
21 IF (M.EQ.0) THEN
22 GO TO 2380
23
24 END IF
25
26 DO 2400 I = 1,JN
27 JB = IZBIT(I)
28 IF (IAND(M,JB).EQ.0) THEN
29 GO TO 2400
30
31 END IF
32
33 IF ((PZ(I).LT.ZNEAR) .OR. (PZ(I).GT.ZFAR)) THEN
34 M = IAND(M,NOT(JB))
35 GO TO 2400
36
37 END IF
38
39 MASK(KM) = M
40 2400 CONTINUE
41 GO TO 2380
42
43 2390 CONTINUE
44 RETURN
45
46 END