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

◆ xerbla()

subroutine xerbla ( character*6  srname,
integer  info 
)

Definition at line 3284 of file cblat2.f.

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