GNU Octave 10.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
 
Loading...
Searching...
No Matches
xgetua.f
Go to the documentation of this file.
1*DECK XGETUA
2 SUBROUTINE xgetua (IUNITA, N)
3C***BEGIN PROLOGUE XGETUA
4C***PURPOSE Return unit number(s) to which error messages are being
5C sent.
6C***LIBRARY SLATEC (XERROR)
7C***CATEGORY R3C
8C***TYPE ALL (XGETUA-A)
9C***KEYWORDS ERROR, XERROR
10C***AUTHOR Jones, R. E., (SNLA)
11C***DESCRIPTION
12C
13C Abstract
14C XGETUA may be called to determine the unit number or numbers
15C to which error messages are being sent.
16C These unit numbers may have been set by a call to XSETUN,
17C or a call to XSETUA, or may be a default value.
18C
19C Description of Parameters
20C --Output--
21C IUNIT - an array of one to five unit numbers, depending
22C on the value of N. A value of zero refers to the
23C default unit, as defined by the I1MACH machine
24C constant routine. Only IUNIT(1),...,IUNIT(N) are
25C defined by XGETUA. The values of IUNIT(N+1),...,
26C IUNIT(5) are not defined (for N .LT. 5) or altered
27C in any way by XGETUA.
28C N - the number of units to which copies of the
29C error messages are being sent. N will be in the
30C range from 1 to 5.
31C
32C***REFERENCES R. E. Jones and D. K. Kahaner, XERROR, the SLATEC
33C Error-handling Package, SAND82-0800, Sandia
34C Laboratories, 1982.
35C***ROUTINES CALLED J4SAVE
36C***REVISION HISTORY (YYMMDD)
37C 790801 DATE WRITTEN
38C 861211 REVISION DATE from Version 3.2
39C 891214 Prologue converted to Version 4.0 format. (BAB)
40C 920501 Reformatted the REFERENCES section. (WRB)
41C***END PROLOGUE XGETUA
42 dimension iunita(5)
43C***FIRST EXECUTABLE STATEMENT XGETUA
44 n = j4save(5,0,.false.)
45 DO 30 i=1,n
46 index = i+4
47 IF (i.EQ.1) index = 3
48 iunita(i) = j4save(index,0,.false.)
49 30 CONTINUE
50 RETURN
51 END
function j4save(iwhich, ivalue, iset)
Definition j4save.f:3
subroutine xgetua(iunita, n)
Definition xgetua.f:3