Debian Codegraph @

packages/seacas/applications/algebra/ag_isize.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 INTEGER FUNCTION ISIZE (VTYP)
9 C=======================================================================
10
11 C --*** ISIZE *** (ALGEBRA) Return the size of a stack variable
12 C -- Written by Amy Gilkey - revised 06/22/87
13 C --
14 C --ISIZE returns the size of a stack variable type.
15 C --
16 C --Parameters:
17 C -- VTYP - IN - the stack variable type (as in VSZENT of /ENT/)
18 C --
19 C --Common Variables:
20 C -- Uses NUMNP, NUMEL of /DBNUMS/
21
22 include 'ag_dbnums.blk'
23
24 CHARACTER VTYP
25
26 IF ((VTYP .EQ. 'T') .OR.
27 & (VTYP .EQ. 'H') .OR. (VTYP .EQ. 'G')) THEN
28 ISIZE = 1
29 ELSE IF (VTYP .EQ. 'N') THEN
30 ISIZE = NUMNP
31 ELSE IF (VTYP .EQ. 'E') THEN
32 ISIZE = NUMEL
33 ELSE
34 ISIZE = MAX (NUMNP, NUMEL, 1)
35 END IF
36
37 RETURN
38 END