Debian Codegraph @

packages/seacas/applications/exotxt/et_dbivtt.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 DBIVTT (NDB, ISEVOK, ITMP, NELBLK, NVAREL)
9 C=======================================================================
10
11 C --*** DBIVTT *** Read element variable truth table
12 C -- Modified for ExodusII format 8/26/95
13 C --
14 C --Parameters:
15 C -- NDB - IN - the database number
16 C -- NELBLK - IN - the number of element blocks
17 C -- NVAREL - IN - the number of element variables; <0 if end-of-file
18 C -- ISEVOK - OUT - the dynamic memory array of the element block variable
19 C -- truth table;variable i,block j exists iff ISEVOK(j,i)
20
21 INTEGER NDB
22 INTEGER NELBLK, NVAREL
23 LOGICAL ISEVOK(NELBLK,*)
24 INTEGER ITMP(NVAREL, NELBLK)
25
26 C Read the element block variable truth table
27 C isevok - num_elem_var cycles faster
28 if (nvarel .gt. 0) then
29 CALL EXGVTT(NDB, NELBLK, NVAREL, ITMP, IERR)
30 DO 110 I = 1, NVAREL
31 DO 100 IELB = 1, NELBLK
32 ISEVOK(IELB,I) = (ITMP(I,IELB) .NE. 0)
33 100 CONTINUE
34 110 CONTINUE
35 end if
36 RETURN
37 END