Debian Codegraph @

packages/seacas/libraries/plt/pltcp3.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 PLTCP3(N,MASK,PX,PY,PZ,V,Q)
9 DIMENSION MASK(*),PX(*),PY(*),PZ(*),V(*),Q(*)
10 include 'izbit.inc'
11
12 J = 0
13 KM = 0
14 2060 IF (.NOT. (J.LT.N)) GO TO 2070
15 JN = MIN(N-J,32)
16 KM = 1 + KM
17 J1 = J
18 J = J + JN
19 M = MASK(KM)
20 IF (M.EQ.0) THEN
21 GO TO 2060
22
23 END IF
24
25 DO 2080 K = 1,JN
26 JB = IZBIT(K)
27 IF (IAND(M,JB).NE.0) THEN
28 FP = (PX(J1+K)-V(1))*Q(1) + (PY(J1+K)-V(2))*Q(2) +
29 * (PZ(J1+K)-V(3))*Q(3)
30 IF (FP.LT.0.) THEN
31 M = IAND(M,NOT(JB))
32 END IF
33
34 END IF
35
36 2080 CONTINUE
37 MASK(KM) = M
38 GO TO 2060
39
40 2070 CONTINUE
41 RETURN
42
43 END