Debian Codegraph @

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