Debian Codegraph @

packages/seacas/applications/algebra/ag_dbiqa.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 DBIQA (NDB, OPTION, NQAREC, QAREC, NINFO, INFO)
8 C=======================================================================
9
10 C --*** DBIQA *** (EXOLIB) Read QA and information records
11 C -- Written by Amy Gilkey - revised 02/08/88
12 C -- Modified for ExodusIIV2 database format - 9/10/95
13 C --
14 C --Parameters:
15 C -- NDB - IN - the database number
16 C -- OPTION - IN - ' ' to not store, '*' to store all, else store options:
17 C -- 'Q' to store QA records
18 C -- 'I' to store information records
19 C -- NQAREC - IN - the number of QA records; <0 if end-of-file
20 C -- QAREC - OUT - the QA records containing: (if OPTION)
21 C -- (1) - the analysis code name
22 C -- (2) - the analysis code QA descriptor
23 C -- (3) - the analysis date
24 C -- (4) - the analysis time
25 C -- NINFO - IN - the number of information records; <0 if end-of-file
26 C -- INFO - OUT - the information records (if OPTION)
27
28 include 'exodusII.inc'
29
30 INTEGER NDB
31 CHARACTER*(*) OPTION
32 INTEGER NQAREC
33 CHARACTER*(MXSTLN) QAREC(4,*)
34 INTEGER NINFO
35 CHARACTER*(MXLNLN) INFO(*)
36 INTEGER IERR
37 LOGICAL ALL
38
39 ALL = (OPTION .EQ. '*')
40
41 C Read in Qa Records
42 IF ((ALL .OR. (INDEX(OPTION, 'Q') .GT. 0))
43 & .AND. (NQAREC .GT. 0)) THEN
44 CALL EXGQA(NDB, QAREC, IERR)
45 END IF
46
47 C Read in Information Records
48 IF ((ALL .OR. (INDEX(OPTION, 'I') .GT. 0))
49 & .AND. (NINFO .GT. 0)) THEN
50 CALL EXGINF(NDB, INFO, IERR)
51 END IF
52
53 RETURN
54 END