Debian Codegraph @

packages/seacas/libraries/suplib/dbpqa.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 DBPQA (OPTION, NQAREC, QAREC, NINFO, INFO)
8 C=======================================================================
9 C --*** DBPQA *** (EXOLIB) Print QA and information records
10 C -- Written by Amy Gilkey - revised 02/02/88
11 C --
12 C --DBPQA displays the QA records and the information records.
13 C --
14 C --Parameters:
15 C -- OPTION - IN - '*' to print all, else print options:
16 C -- 'Q' to print QA records
17 C -- 'I' to print information records
18 C -- NQAREC - IN - the number of QA records (if OPTION)
19 C -- QAREC - IN - the QA records containing: (if OPTION)
20 C -- (1) - the analysis code name
21 C -- (2) - the analysis code QA descriptor
22 C -- (3) - the analysis date
23 C -- (4) - the analysis time
24 C -- NINFO - IN - the number of information records (if OPTION)
25 C -- INFO - IN - the information records (if OPTION)
26
27 CHARACTER*(*) OPTION
28 INTEGER NQAREC
29 CHARACTER*(32) QAREC(4,*)
30 INTEGER NINFO
31 CHARACTER*(80) INFO(*)
32
33 LOGICAL ALL
34
35 ALL = OPTION .EQ. '*'
36
37 IF (ALL .OR. (INDEX (OPTION, 'Q') .GT. 0)) THEN
38 IF (NQAREC .GT. 0) THEN
39 WRITE (*, *)
40 DO 100 IQA = 1, NQAREC
41 call sqzstr(qarec(1, iqa), icode)
42 call sqzstr(qarec(2, iqa), ivers)
43 call sqzstr(qarec(3, iqa), idate)
44 call sqzstr(qarec(4, iqa), itime)
45 WRITE (*, 10000)qarec(1,iqa)(:icode),
46 & qarec(2, iqa)(:max(ivers,11)), qarec(3, iqa)(:idate),
47 & qarec(4, iqa)(:itime)
48 10000 FORMAT (1X, 'Code: ', A, ' version ', A,
49 & ' on ', A, ' at ', A)
50 100 CONTINUE
51 END IF
52 END IF
53
54 IF (ALL .OR. (INDEX (OPTION, 'I') .GT. 0)) THEN
55 IF (NINFO .GT. 0) THEN
56 WRITE (*, *)
57 DO 110 I = 1, NINFO
58 WRITE (*, '(1x,a)') INFO(I)(:LENSTR(INFO(I)))
59 110 CONTINUE
60 END IF
61 END IF
62
63 RETURN
64 END