66 INTEGER I, INFO, ITER, J
70 DOUBLE PRECISION A( NMAX, NMAX ), AF( NMAX, NMAX ), B( NMAX ),
71 $ C( NMAX ), R( NMAX ), R1( NMAX ), R2( NMAX ),
72 $ W( 2*NMAX ), X( NMAX )
73 DOUBLE PRECISION WORK(1)
85 COMMON / infoc / infot, nout, ok, lerr
86 COMMON / srnamc / srnamt
94 WRITE( nout, fmt = * )
100 a( i, j ) = 1.d0 / dble( i+j )
101 af( i, j ) = 1.d0 / dble( i+j )
116 CALL dsgesv(-1,0,a,1,ip,b,1,x,1,work,swork,iter,info)
117 CALL chkxer(
'DSGESV', infot, nout, lerr, ok )
119 CALL dsgesv(0,-1,a,1,ip,b,1,x,1,work,swork,iter,info)
120 CALL chkxer(
'DSGESV', infot, nout, lerr, ok )
122 CALL dsgesv(2,1,a,1,ip,b,2,x,2,work,swork,iter,info)
123 CALL chkxer(
'DSGESV', infot, nout, lerr, ok )
125 CALL dsgesv(2,1,a,2,ip,b,1,x,2,work,swork,iter,info)
126 CALL chkxer(
'DSGESV', infot, nout, lerr, ok )
128 CALL dsgesv(2,1,a,2,ip,b,2,x,1,work,swork,iter,info)
129 CALL chkxer(
'DSGESV', infot, nout, lerr, ok )
134 WRITE( nout, fmt = 9999 )
'DSGESV'
136 WRITE( nout, fmt = 9998 )
'DSGESV'
139 9999
FORMAT( 1x, a6,
' drivers passed the tests of the error exits' )
140 9998
FORMAT(
' *** ', a6,
' drivers failed the tests of the error ',