MAGMA  1.2.0
MatrixAlgebraonGPUandMulticoreArchitectures
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
chkxer.f
Go to the documentation of this file.
1  SUBROUTINE chkxer( SRNAMT, INFOT, NOUT, LERR, OK )
2 *
3 * Tests whether XERBLA has detected an error when it should.
4 *
5 * Auxiliary routine for test program for Level 2 Blas.
6 *
7 * -- Written on 10-August-1987.
8 * Richard Hanson, Sandia National Labs.
9 * Jeremy Du Croz, NAG Central Office.
10 *
11 * =====================================================================
12 *
13 * .. Scalar Arguments ..
14  LOGICAL lerr, ok
15  CHARACTER*(*) srnamt
16  INTEGER infot, nout
17 * ..
18 * .. Intrinsic Functions ..
19  INTRINSIC len_trim
20 * ..
21 * .. Executable Statements ..
22  IF( .NOT.lerr ) THEN
23  WRITE( nout, fmt = 9999 )infot,
24  $ srnamt( 1:len_trim( srnamt ) )
25  ok = .false.
26  END IF
27  lerr = .false.
28  return
29 *
30  9999 format( ' *** Illegal value of parameter number ', i2,
31  $ ' not detected by ', a6, ' ***' )
32 *
33 * End of CHKXER.
34 *
35  END