Debian Codegraph @

packages/seacas/applications/algebra/ag_opnlog.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 OPNLOG (LOGU)
9 C=======================================================================
10 C --*** OPNLOG *** (BLOT) Open log file and write header
11 C -- Written by Amy Gilkey - revised 12/21/87
12 C --
13 C --OPNLOG opens the log file and writes the command line as the header
14 C --for the log file.
15 C --
16 C --Parameters:
17 C -- NLOG - IN - the log file number
18 C --
19 C --Common Variables:
20 C -- Uses QAINFO of /PROGQA/
21 C -- Uses NDBIN, NDBOUT of /DBASE/
22
23 include 'exodusII.inc'
24 include 'ag_progqa.blk'
25 include 'ag_dbase.blk'
26
27 CHARACTER*256 INLINE
28 CHARACTER*256 STR
29
30 NLOG = LOGU
31 CALL OPNFIL (NLOG, 'U', 'L', 0, IERR)
32 IF (IERR .NE. 0) THEN
33 CALL PRTERR ('WARNING', 'Log file cannot be opened')
34 NLOG = -1
35 GOTO 100
36 END IF
37
38 INLINE = '$$$ ' // QAINFO(1)
39 L = LENSTR (INLINE) + 1
40
41 CALL EXNAME(NDBIN, STR, LFIL)
42 IF (L .LT. LEN (INLINE)) INLINE(L+1:) = STR(:LFIL)
43 L = LENSTR (INLINE) + 1
44
45 CALL EXNAME(NDBOUT, STR, LFIL)
46 IF (L .LT. LEN (INLINE)) INLINE(L+1:) = STR(:LFIL)
47 L = LENSTR (INLINE) + 1
48
49 WRITE (NLOG, '(A)') INLINE(:L-1)
50
51 100 CONTINUE
52 LOGU = NLOG
53 RETURN
54 END