LAPACK  3.9.1
LAPACK: Linear Algebra PACKage

◆ xerbla()

subroutine xerbla ( character*6  SRNAME,
integer  INFO 
)

Definition at line 3231 of file zblat2.f.

3232 *
3233 * This is a special version of XERBLA to be used only as part of
3234 * the test program for testing error exits from the Level 2 BLAS
3235 * routines.
3236 *
3237 * XERBLA is an error handler for the Level 2 BLAS routines.
3238 *
3239 * It is called by the Level 2 BLAS routines if an input parameter is
3240 * invalid.
3241 *
3242 * Auxiliary routine for test program for Level 2 Blas.
3243 *
3244 * -- Written on 10-August-1987.
3245 * Richard Hanson, Sandia National Labs.
3246 * Jeremy Du Croz, NAG Central Office.
3247 *
3248 * .. Scalar Arguments ..
3249  INTEGER INFO
3250  CHARACTER*6 SRNAME
3251 * .. Scalars in Common ..
3252  INTEGER INFOT, NOUT
3253  LOGICAL LERR, OK
3254  CHARACTER*6 SRNAMT
3255 * .. Common blocks ..
3256  COMMON /infoc/infot, nout, ok, lerr
3257  COMMON /srnamc/srnamt
3258 * .. Executable Statements ..
3259  lerr = .true.
3260  IF( info.NE.infot )THEN
3261  IF( infot.NE.0 )THEN
3262  WRITE( nout, fmt = 9999 )info, infot
3263  ELSE
3264  WRITE( nout, fmt = 9997 )info
3265  END IF
3266  ok = .false.
3267  END IF
3268  IF( srname.NE.srnamt )THEN
3269  WRITE( nout, fmt = 9998 )srname, srnamt
3270  ok = .false.
3271  END IF
3272  RETURN
3273 *
3274  9999 FORMAT( ' ******* XERBLA WAS CALLED WITH INFO = ', i6, ' INSTEAD',
3275  $ ' OF ', i2, ' *******' )
3276  9998 FORMAT( ' ******* XERBLA WAS CALLED WITH SRNAME = ', a6, ' INSTE',
3277  $ 'AD OF ', a6, ' *******' )
3278  9997 FORMAT( ' ******* XERBLA WAS CALLED WITH INFO = ', i6,
3279  $ ' *******' )
3280 *
3281 * End of XERBLA
3282 *