Debian Codegraph @

packages/seacas/applications/blot/evarok.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 EVAROK (NVARS, NVAR, NELBLK, IELBST, ISEVOK, ISVOK)
9 C=======================================================================
10
11 C --*** EVAROK *** (MESH) Get the multi-variable truth table
12 C -- Written by Amy Gilkey - revised 10/29/87
13 C --
14 C --EVAROK creates the multi-variable truth table. It uses the element
15 C --variable truth table and the selected variables to create a table
16 C --for only the selected variables. If no element variables are given,
17 C --the truth table is all true.
18 C --
19 C --Parameters:
20 C -- NVARS - IN - the number of variables
21 C -- NVAR - IN - the variable numbers, if any
22 C -- IELBST - IN - the element block status (>0 if selected)
23 C -- ISEVOK - IN - the element block variable truth table;
24 C -- variable i of block j exists iff ISEVOK(j,i)
25 C -- ISVOK - OUT - the variable truth table; true iff all variables
26 C -- of block j exist and are selected
27
28 INTEGER NVAR(*)
29 INTEGER IELBST(NELBLK)
30 LOGICAL ISEVOK(NELBLK,*)
31 LOGICAL ISVOK(NELBLK)
32
33 CHARACTER TYP
34
35 DO 100 IELB = 1, NELBLK
36 ISVOK(IELB) = (IELBST(IELB) .GT. 0)
37 100 CONTINUE
38
39 DO 120 IVAR = 1, NVARS
40 CALL DBVTYP_BL (NVAR(IVAR), TYP, ID)
41 IF (TYP .EQ. 'E') THEN
42 DO 110 IELB = 1, NELBLK
43 IF (.NOT. ISEVOK(IELB,ID)) THEN
44 ISVOK(IELB) = .FALSE.
45 END IF
46 110 CONTINUE
47 END IF
48 120 CONTINUE
49
50 RETURN
51 END