Debian Codegraph @

packages/seacas/applications/exotxt/et_wrqa.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 WRQA (NTXT, NQAREC, QAREC, NINFO, INFO, QAINFO)
9 C=======================================================================
10
11 C --*** WRQA *** (TXTEXO) Write QA and information records
12 C -- Written by Amy Gilkey - revised 09/30/87
13 C --
14 C --WRQA writes the QA records and the information records.
15 C --
16 C --Parameters:
17 C -- NTXT - IN - the text file
18 C -- NQAREC - IN - the number of QA records
19 C -- QAREC - IN - the QA records containing:
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
25 C -- INFO - IN - the information records
26 C --
27 C --Database must be positioned at start of QA records upon entry;
28 C --upon exit positioned at end of information records.
29
30 CHARACTER*32 QAREC(4,*)
31 CHARACTER*32 QAINFO(6)
32 CHARACTER*80 INFO(*)
33
34 WRITE (NTXT, '(A)') '! QA Records'
35 WRITE (NTXT, 10010) NQAREC+1, '! QA records'
36
37 DO 100 IQA = 1, NQAREC
38 WRITE (NTXT, '(A)') (QAREC(I,IQA), I=1,4)
39 100 CONTINUE
40
41 C ... Add record for this code
42 write (ntxt, '(A)') QAINFO(1), QAINFO(3), QAINFO(5)(:8),
43 $ QAINFO(6)(:8)
44 WRITE (NTXT, '(A)') '! Information Records'
45 WRITE (NTXT, 10010) NINFO, '! information records'
46
47 IF (NINFO .GT. 0) THEN
48 DO 110 I = 1, NINFO
49 C ... Some codes are embedding newlines in the info records which screws up the text output
50 C Filter them (and other strange characters) out here...
51 do 105 j=1, 80
52 if (ichar(info(i)(j:j)) .lt. 32 .or.
53 * ichar(info(i)(j:j)) .gt. 126) then
54 info(i)(j:j) = ' '
55 end if
56 105 continue
57 WRITE (NTXT, 10000) INFO(I)
58 110 CONTINUE
59 END IF
60
61 RETURN
62 10000 FORMAT (99 (A, :, 1X))
63 10010 FORMAT (1I10, 6X, A)
64 END