Debian Codegraph @

packages/seacas/libraries/suplib/strtup.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
5 C See packages/seacas/LICENSE for details
6
7 C=======================================================================
8 SUBROUTINE STRTUP (QAINFO)
9 C=======================================================================
10
11 C --*** STRTUP *** (ETCLIB) Startup program
12 C -- Written by Amy Gilkey - revised 11/24/87
13 C --
14 C --STRTUP should be called at the start of any program. It performs
15 C --initialization details common to all programs. Specifically, it
16 C -- Initializes the CPU time
17 C -- Sets the program name, time, and date
18 C --
19 C --Parameters:
20 C -- QAINFO - IN/OUT - the current program version information:
21 C -- QAINFO(1..3) input, QAINFO(4..6) set
22 C -- (1) = program name
23 C -- (2) = revision date
24 C -- (3) = version as "QA xx.xx" or "X xx.xx" or " xx.xx"
25 C -- (4) = program name with version appended
26 C -- (5) = date of current run
27 C -- (6) = time of current run
28
29 C --Routines Called:
30 C -- LENSTR - (STRLIB) Find string length
31
32 CHARACTER*(*) QAINFO(6)
33 CHARACTER*8 MEMDBG
34
35 C --Initialize the CPU time
36 CALL EXCPUS (CPUSEC)
37
38 C --Set the program information array
39 QAINFO(4) = QAINFO(1)
40 L = MIN (LENSTR(QAINFO(4))+1, 7)
41 QAINFO(4)(L:L+1) = QAINFO(3)(4:5)
42 IF (QAINFO(4)(L:L) .EQ. ' ') QAINFO(4)(L:L) = '0'
43 QAINFO(5) = ' '
44 QAINFO(6) = ' '
45 CALL EXDATE (QAINFO(5))
46 CALL EXTIME (QAINFO(6))
47
48 C ... If EXT99 Environment variable set, turn on supes memory debugging
49 C The numeric value of the variable is used as the unit to write
50 C debug information to.
51 CALL EXNAME (-99, MEMDBG, L)
52 IF (L .GE. 1) THEN
53 READ(MEMDBG(:L), '(I8)', ERR=20) IUNIT
54 CALL MDDEBG(IUNIT)
55 END IF
56 20 CONTINUE
57
58 RETURN
59 END