LAPACK 3.12.0
LAPACK: Linear Algebra PACKage
Loading...
Searching...
No Matches

◆ xerbla()

subroutine xerbla ( character*6  srname,
integer  info 
)

Definition at line 3292 of file zblat2.f.

3293*
3294* This is a special version of XERBLA to be used only as part of
3295* the test program for testing error exits from the Level 2 BLAS
3296* routines.
3297*
3298* XERBLA is an error handler for the Level 2 BLAS routines.
3299*
3300* It is called by the Level 2 BLAS routines if an input parameter is
3301* invalid.
3302*
3303* Auxiliary routine for test program for Level 2 Blas.
3304*
3305* -- Written on 10-August-1987.
3306* Richard Hanson, Sandia National Labs.
3307* Jeremy Du Croz, NAG Central Office.
3308*
3309* .. Scalar Arguments ..
3310 INTEGER INFO
3311 CHARACTER*6 SRNAME
3312* .. Scalars in Common ..
3313 INTEGER INFOT, NOUT
3314 LOGICAL LERR, OK
3315 CHARACTER*6 SRNAMT
3316* .. Common blocks ..
3317 COMMON /infoc/infot, nout, ok, lerr
3318 COMMON /srnamc/srnamt
3319* .. Executable Statements ..
3320 lerr = .true.
3321 IF( info.NE.infot )THEN
3322 IF( infot.NE.0 )THEN
3323 WRITE( nout, fmt = 9999 )info, infot
3324 ELSE
3325 WRITE( nout, fmt = 9997 )info
3326 END IF
3327 ok = .false.
3328 END IF
3329 IF( srname.NE.srnamt )THEN
3330 WRITE( nout, fmt = 9998 )srname, srnamt
3331 ok = .false.
3332 END IF
3333 RETURN
3334*
3335 9999 FORMAT( ' ******* XERBLA WAS CALLED WITH INFO = ', i6, ' INSTEAD',
3336 $ ' OF ', i2, ' *******' )
3337 9998 FORMAT( ' ******* XERBLA WAS CALLED WITH SRNAME = ', a6, ' INSTE',
3338 $ 'AD OF ', a6, ' *******' )
3339 9997 FORMAT( ' ******* XERBLA WAS CALLED WITH INFO = ', i6,
3340 $ ' *******' )
3341*
3342* End of XERBLA
3343*