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

◆ xerbla()

subroutine xerbla ( character*6  srname,
integer  info 
)

Definition at line 3181 of file dblat2.f.

3182*
3183* This is a special version of XERBLA to be used only as part of
3184* the test program for testing error exits from the Level 2 BLAS
3185* routines.
3186*
3187* XERBLA is an error handler for the Level 2 BLAS routines.
3188*
3189* It is called by the Level 2 BLAS routines if an input parameter is
3190* invalid.
3191*
3192* Auxiliary routine for test program for Level 2 Blas.
3193*
3194* -- Written on 10-August-1987.
3195* Richard Hanson, Sandia National Labs.
3196* Jeremy Du Croz, NAG Central Office.
3197*
3198* .. Scalar Arguments ..
3199 INTEGER INFO
3200 CHARACTER*6 SRNAME
3201* .. Scalars in Common ..
3202 INTEGER INFOT, NOUT
3203 LOGICAL LERR, OK
3204 CHARACTER*6 SRNAMT
3205* .. Common blocks ..
3206 COMMON /infoc/infot, nout, ok, lerr
3207 COMMON /srnamc/srnamt
3208* .. Executable Statements ..
3209 lerr = .true.
3210 IF( info.NE.infot )THEN
3211 IF( infot.NE.0 )THEN
3212 WRITE( nout, fmt = 9999 )info, infot
3213 ELSE
3214 WRITE( nout, fmt = 9997 )info
3215 END IF
3216 ok = .false.
3217 END IF
3218 IF( srname.NE.srnamt )THEN
3219 WRITE( nout, fmt = 9998 )srname, srnamt
3220 ok = .false.
3221 END IF
3222 RETURN
3223*
3224 9999 FORMAT( ' ******* XERBLA WAS CALLED WITH INFO = ', i6, ' INSTEAD',
3225 $ ' OF ', i2, ' *******' )
3226 9998 FORMAT( ' ******* XERBLA WAS CALLED WITH SRNAME = ', a6, ' INSTE',
3227 $ 'AD OF ', a6, ' *******' )
3228 9997 FORMAT( ' ******* XERBLA WAS CALLED WITH INFO = ', i6,
3229 $ ' *******' )
3230*
3231* End of XERBLA
3232*