| 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 DBOQA (NDB, QAINFO, NQAREC, QAREC, NINFO, INFO, |
| 9 |
& PREFIX, POSTFIX) |
| 10 |
C======================================================================= |
| 11 |
|
| 12 |
C --*** DBOQA *** (EXOLIB) Write QA and information records |
| 13 |
C -- Written by Amy Gilkey - revised 02/08/88 |
| 14 |
C -- Modified by for EXODUSIIV2- 9/11/95 |
| 15 |
C -- |
| 16 |
C --Parameters: |
| 17 |
C -- NDB - IN - the database number |
| 18 |
C -- QAINFO - IN - the QA record for the current run of algebra |
| 19 |
C -- NQAREC - IN - the number of QA records written only if >= 0 |
| 20 |
C -- QAREC - IN - the QA records containing: |
| 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; written only if >= 0 |
| 26 |
C -- INFO - IN - the information records |
| 27 |
|
| 28 |
include 'exodusII.inc' |
| 29 |
|
| 30 |
INTEGER NDB |
| 31 |
CHARACTER*(MXSTLN) QAINFO(6) |
| 32 |
CHARACTER*(MXSTLN) QAREC(4,*) |
| 33 |
CHARACTER*(MXLNLN) INFO(*) |
| 34 |
CHARACTER*(*) PREFIX, POSTFIX |
| 35 |
|
| 36 |
nqarec = nqarec + 1 |
| 37 |
QAREC(1,nqarec) = QAINFO(1) |
| 38 |
QAREC(2,nqarec) = QAINFO(3) |
| 39 |
QAREC(3,nqarec) = QAINFO(5) |
| 40 |
QAREC(4,nqarec) = QAINFO(6) |
| 41 |
|
| 42 |
C Write QA records to the file ndbout |
| 43 |
C There is always at least one QA record |
| 44 |
call expqa(ndb, nqarec, qarec, ierr) |
| 45 |
|
| 46 |
C Write information records to the file ndbout |
| 47 |
ninfo = ninfo + 1 |
| 48 |
info(ninfo) = prefix |
| 49 |
lpre = lenstr(prefix) |
| 50 |
info(ninfo)(lpre+2:) = postfix |
| 51 |
|
| 52 |
IF (NINFO .GT. 0) THEN |
| 53 |
call expinf(ndb, ninfo, info, ierr) |
| 54 |
END IF |
| 55 |
|
| 56 |
RETURN |
| 57 |
END |