Debian Codegraph @

packages/seacas/applications/grepos/gp_dbpini.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 DBPINI (OPTION, NDB, TITLE, NDIM, NUMNP, NUMEL, NELBLK,
9 & NUMNPS, LNPSNL, LNPSDF, NUMESS, LESSEL,
10 & LESSDF, NVARGL, NVARNP, NVAREL, NVARNS, NVARSS,
11 * FILNAM)
12 C=======================================================================
13 C --*** DBPINI *** (EXOLIB) Display database title and initial variables
14 C -- Written by Amy Gilkey - revised 10/15/87
15 C -- Revised 8/5/95 to work with EXODUSIIV2 database format
16 C --
17 C --DBPINI displays the database filename (optional) and title and
18 C --the database initial variables.
19 C --
20 C --Parameters:
21 C -- OPTION - IN - '*' to print all, else print options:
22 C -- 'N' to print database name
23 C -- 'T' to print title
24 C -- 'I' to print number of nodes, etc.
25 C -- 'S' to print node set and side set information
26 C -- 'V' to print number of variables
27 C -- NDB - IN - the database file (if OPTION)
28 C -- TITLE - IN - the database title (if OPTION)
29 C -- NDIM - IN - the number of coordinates per node (if OPTION)
30 C -- NUMNP - IN - the number of nodes (if OPTION)
31 C -- NUMEL - IN - the number of elements (if OPTION)
32 C -- NELBLK - IN - the number of element blocks (if OPTION)
33 C -- NUMNPS - IN - the number of node sets (if OPTION)
34 C -- LNPSNL - IN - the length of the node sets node list (if OPTION)
35 C -- LNPSDF - IN - the length of the node set distribution list
36 C -- NUMESS - IN - the number of side sets (if OPTION)
37 C -- LESSEL - IN - the length of the side sets element list
38 C -- (if OPTION)
39 C -- NVARGL - IN - the number of global variables (if OPTION)
40 C -- NVARNP - IN - the number of nodal variables (if OPTION)
41 C -- NVAREL - IN - the number of element variables (if OPTION)
42
43 include 'gp_params.blk'
44
45 CHARACTER*(2048) FILNAM
46 CHARACTER*(*) OPTION
47 CHARACTER*(MXLNLN) TITLE
48 INTEGER NDB
49 INTEGER NDIM, NUMNP, NUMEL, NELBLK, NUMNPS,
50 & LNPSNL, LNPSDF, NUMESS, LESSEL, LESSDF
51 LOGICAL ALL
52 ALL = (OPTION .EQ. '*')
53
54 IF (ALL .OR. (INDEX (OPTION, 'I') .GT. 0)) THEN
55 WRITE(*, 10000)
56 ENDIF
57
58 IF (ALL .OR. (INDEX (OPTION, 'N') .GT. 0)) THEN
59 WRITE (*, 10010) FILNAM(:LENSTR(FILNAM))
60 END IF
61
62 IF (ALL .OR. (INDEX (OPTION, 'T') .GT. 0)) THEN
63 WRITE (*, 10020) TITLE(1:LENSTR(TITLE))
64 END IF
65
66 IF (ALL .OR. (INDEX (OPTION, 'I') .GT. 0)) THEN
67 WRITE (*, 10030, IOSTAT=IDUM)
68 & NDIM, NUMNP, NUMEL, NELBLK
69 END IF
70
71 IF (ALL .OR. (INDEX (OPTION, 'S') .GT. 0)) THEN
72 If (NUMNPS .LE. 0) THEN
73 WRITE (*, 10040, IOSTAT=IDUM) NUMNPS
74 ELSE
75 WRITE (*, 10040, IOSTAT=IDUM) NUMNPS, LNPSNL, LNPSDF
76 END IF
77 IF (NUMESS .LE. 0) THEN
78 WRITE (*, 10050, IOSTAT=IDUM) NUMESS
79 ELSE
80 WRITE (*, 10050, IOSTAT=IDUM)
81 & NUMESS, LESSEL, LESSDF
82 END IF
83 END IF
84
85 IF (ALL .OR. (INDEX (OPTION, 'V') .GT. 0)) THEN
86 WRITE (*, 10060, IOSTAT=IDUM) NVARGL, NVARNP, NVAREL,
87 * NVARNS, NVARSS
88 END IF
89
90 10000 FORMAT (/, 1X, 'DATABASE INITIAL VARIABLES')
91 10010 FORMAT (/, 1X, 'Database: ', A)
92 10020 FORMAT (/, 1X, A)
93 10030 FORMAT (
94 & /, 1X, 'Number of coordinates per node =', I10
95 & /, 1X, 'Number of nodes =', I10
96 & /, 1X, 'Number of elements =', I10
97 & /, 1X, 'Number of element blocks =', I10
98 & )
99 10040 FORMAT (
100 & /, 1X, 'Number of node sets =', I10, :
101 & /, 1X, ' Length of node list =', I10
102 & /, 1X, ' Length of distribution factors list =', I10
103 & )
104 10050 FORMAT
105 & ( 1X, 'Number of side sets =', I10, :
106 & /, 1X, ' Length of element list =', I10
107 & /, 1X, ' Length of distribution factors list =', I10
108 & )
109 10060 FORMAT (
110 & /, 1X, 'Number of global variables =', I10
111 & /, 1X, 'Number of variables at each node =', I10
112 & /, 1X, 'Number of variables at each element =', I10
113 & /, 1X, 'Number of variables at each nodeset =', I10
114 & /, 1X, 'Number of variables at each sideset =', I10
115 & )
116
117 RETURN
118 END