Chris@202
|
1 /* xerbla.f -- translated by f2c (version 20061008).
|
Chris@202
|
2 You must link the resulting object file with libf2c:
|
Chris@202
|
3 on Microsoft Windows system, link with libf2c.lib;
|
Chris@202
|
4 on Linux or Unix systems, link with .../path/to/libf2c.a -lm
|
Chris@202
|
5 or, if you install libf2c.a in a standard place, with -lf2c -lm
|
Chris@202
|
6 -- in that order, at the end of the command line, as in
|
Chris@202
|
7 cc *.o -lf2c -lm
|
Chris@202
|
8 Source for libf2c is in /netlib/f2c/libf2c.zip, e.g.,
|
Chris@202
|
9
|
Chris@202
|
10 http://www.netlib.org/f2c/libf2c.zip
|
Chris@202
|
11 */
|
Chris@202
|
12
|
Chris@202
|
13 #include "f2c.h"
|
Chris@202
|
14 #include "blaswrap.h"
|
Chris@202
|
15 #include "stdio.h"
|
Chris@202
|
16
|
Chris@202
|
17 /* Table of constant values */
|
Chris@202
|
18
|
Chris@202
|
19 static integer c__1 = 1;
|
Chris@202
|
20
|
Chris@202
|
21 /* Subroutine */ int xerbla_(char *srname, integer *info)
|
Chris@202
|
22 {
|
Chris@202
|
23
|
Chris@202
|
24
|
Chris@202
|
25 /* -- LAPACK auxiliary routine (version 3.2) -- */
|
Chris@202
|
26 /* Univ. of Tennessee, Univ. of California Berkeley and NAG Ltd.. */
|
Chris@202
|
27 /* November 2006 */
|
Chris@202
|
28
|
Chris@202
|
29 /* .. Scalar Arguments .. */
|
Chris@202
|
30 /* .. */
|
Chris@202
|
31
|
Chris@202
|
32 /* Purpose */
|
Chris@202
|
33 /* ======= */
|
Chris@202
|
34
|
Chris@202
|
35 /* XERBLA is an error handler for the LAPACK routines. */
|
Chris@202
|
36 /* It is called by an LAPACK routine if an input parameter has an */
|
Chris@202
|
37 /* invalid value. A message is printed and execution stops. */
|
Chris@202
|
38
|
Chris@202
|
39 /* Installers may consider modifying the STOP statement in order to */
|
Chris@202
|
40 /* call system-specific exception-handling facilities. */
|
Chris@202
|
41
|
Chris@202
|
42 /* Arguments */
|
Chris@202
|
43 /* ========= */
|
Chris@202
|
44
|
Chris@202
|
45 /* SRNAME (input) CHARACTER*(*) */
|
Chris@202
|
46 /* The name of the routine which called XERBLA. */
|
Chris@202
|
47
|
Chris@202
|
48 /* INFO (input) INTEGER */
|
Chris@202
|
49 /* The position of the invalid parameter in the parameter list */
|
Chris@202
|
50 /* of the calling routine. */
|
Chris@202
|
51
|
Chris@202
|
52 /* ===================================================================== */
|
Chris@202
|
53
|
Chris@202
|
54 /* .. Intrinsic Functions .. */
|
Chris@202
|
55 /* .. */
|
Chris@202
|
56 /* .. Executable Statements .. */
|
Chris@202
|
57
|
Chris@202
|
58 printf("** On entry to %6s, parameter number %2i had an illegal value\n",
|
Chris@202
|
59 srname, *info);
|
Chris@202
|
60
|
Chris@202
|
61
|
Chris@202
|
62 /* End of XERBLA */
|
Chris@202
|
63
|
Chris@202
|
64 return 0;
|
Chris@202
|
65 } /* xerbla_ */
|