Debian Codegraph @

packages/seacas/applications/algebra/ag_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 C=======================================================================
7 SUBROUTINE DBIVTT (NDB, ISEVOK, ITMP, NELBLK, NVAREL)
8 C=======================================================================
9 C --*** DBIVTT *** Read element variable truth table
10 C -- Modified for ExodusII format 8/26/95
11 C --*** DBINAM *** (EXOLIB) Read database names
12 C -- Written by Amy Gilkey - revised 02/08/88
13 C --
14 C --DBINAM performed a number of different input file read base
15 C --on the passed in option argument. DBINAM was split up
16 C --into a number of different subroutins
17 C --Parameters:
18 C -- NDB - IN - the database number
19 C -- ISEVOK - OUT - the dynamic memory array of the element block variable
20 C -- truth table;variable i,block j exists iff ISEVOK(j,i)
21 C -- ITMP - OUT - temporary scratch array
22 C -- NELBLK - IN - the number of element blocks
23 C -- NVAREL - IN - the number of element variables;
24
25 INTEGER NDB
26 INTEGER NELBLK, NVAREL
27 LOGICAL ISEVOK(NELBLK, NVAREL)
28 INTEGER ITMP(NVAREL, NELBLK)
29
30 C Read the element block variable truth table
31 C call exgvtt(fileid, num_elem_blks, num_elem_var,
32 C isevok(num_elem_var, num_elem_blks, errorid)
33 C isevok - num_elem_var cycles faster
34 if (nvarel .gt. 0) then
35 CALL EXGVTT(NDB, NELBLK, NVAREL, ITMP, IERR)
36 DO 110 I = 1, NVAREL
37 DO 100 IELB = 1, NELBLK
38 ISEVOK(IELB,I) = (ITMP(I,IELB) .NE. 0)
39 100 CONTINUE
40 110 CONTINUE
41 end if
42
43 RETURN
44 END