GNU Octave 10.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
 
Loading...
Searching...
No Matches
xsetf.f
Go to the documentation of this file.
1*DECK XSETF
2 SUBROUTINE xsetf (KONTRL)
3C***BEGIN PROLOGUE XSETF
4C***PURPOSE Set the error control flag.
5C***LIBRARY SLATEC (XERROR)
6C***CATEGORY R3A
7C***TYPE ALL (XSETF-A)
8C***KEYWORDS ERROR, XERROR
9C***AUTHOR Jones, R. E., (SNLA)
10C***DESCRIPTION
11C
12C Abstract
13C XSETF sets the error control flag value to KONTRL.
14C (KONTRL is an input parameter only.)
15C The following table shows how each message is treated,
16C depending on the values of KONTRL and LEVEL. (See XERMSG
17C for description of LEVEL.)
18C
19C If KONTRL is zero or negative, no information other than the
20C message itself (including numeric values, if any) will be
21C printed. If KONTRL is positive, introductory messages,
22C trace-backs, etc., will be printed in addition to the message.
23C
24C ABS(KONTRL)
25C LEVEL 0 1 2
26C value
27C 2 fatal fatal fatal
28C
29C 1 not printed printed fatal
30C
31C 0 not printed printed printed
32C
33C -1 not printed printed printed
34C only only
35C once once
36C
37C***REFERENCES R. E. Jones and D. K. Kahaner, XERROR, the SLATEC
38C Error-handling Package, SAND82-0800, Sandia
39C Laboratories, 1982.
40C***ROUTINES CALLED J4SAVE, XERMSG
41C***REVISION HISTORY (YYMMDD)
42C 790801 DATE WRITTEN
43C 890531 Changed all specific intrinsics to generic. (WRB)
44C 890531 REVISION DATE from Version 3.2
45C 891214 Prologue converted to Version 4.0 format. (BAB)
46C 900510 Change call to XERRWV to XERMSG. (RWC)
47C 920501 Reformatted the REFERENCES section. (WRB)
48C***END PROLOGUE XSETF
49 CHARACTER *8 XERN1
50C***FIRST EXECUTABLE STATEMENT XSETF
51 IF (abs(kontrl) .GT. 2) THEN
52 WRITE (xern1, '(I8)') kontrl
53 CALL xermsg ('SLATEC', 'XSETF',
54 * 'INVALID ARGUMENT = ' // xern1, 1, 2)
55 RETURN
56 ENDIF
57C
58 junk = j4save(2,kontrl,.true.)
59 RETURN
60 END
function j4save(iwhich, ivalue, iset)
Definition j4save.f:3
subroutine xermsg(librar, subrou, messg, nerr, level)
Definition xermsg.f:3
subroutine xsetf(kontrl)
Definition xsetf.f:3