Debian Codegraph @

packages/seacas/applications/blot/instr.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 c ======================================================================
9 c ======================================================================
10 c ======================================================================
11
12 c ROUTINE: instr
13
14 c DESCRIPTION: Returns .TRUE. if a command file was specified
15 c on the BLOT command line, indicating
16 c that instructions are to be read from that file.
17 c Returns .FALSE. if no file was specified on the
18 c BLOT command line, indicating
19 c that instructions are to be read interactively.
20
21 c AUTHOR: John H. Glick
22 c Sandia National Laboratories
23 c Division 1511
24
25 c DATE: December 20, 1988
26
27 c TYPE OF SUBPROGRAM: logical function
28
29 c USAGE: instr()
30
31 c PARAMETERS: none
32
33 c CALLS: exname ( SUPES )
34
35 c GLOBAL VARIABLES REFERENCED: none
36
37 c CALLING ROUTINE(S): getins (BLOT)
38
39 c SYSTEM DEPENDENCIES: none
40
41 c ======================================================================
42 c ======================================================================
43
44 logical function instr()
45
46 c **********************************************************************
47
48 c declarations
49
50 integer symnum
51 c the number of the system command symbol defining if a
52 c command file was specified.
53 character*12 name
54 c string that holds the value of the
55 c symbol associated with the symnum
56 c = "YES" if a file was specified
57 c in the P4 field of the TRINITY
58 c command line, indicating that
59 c instructions are to be read
60 c from that file
61 c = "NO" otherwise.
62 integer ln
63 c length of the string stored in name
64
65 c **********************************************************************
66
67 c data statements
68
69 data symnum / 4 /
70 c **********************************************************************
71 c **********************************************************************
72
73 c get symbol from operating system
74
75 call exname ( -symnum, name, ln )
76
77 c print symbol for debugging purposes
78
79 c print *, 'name = ',name,' ln = ',ln
80
81 if ( name(1:ln) .eq. 'YES' ) then
82 instr = .TRUE.
83 else
84 instr = .FALSE.
85 endif
86
87 return
88 end