xerbla.c 2.2 KB

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