12 parameter( dlen_ = 9 )
13 INTEGER maxn, lwork, liwork
14 parameter( maxn = 200, lwork = 500000,
18 CHARACTER subtests, uplo
19 INTEGER context, iam, ibtype, info, ipostpad, iprepad,
20 $ lda, mattype, n, nb, npcol, nprocs, nprow
24 INTEGER desca( dlen_ ), iclustr( maxn ), ifail( maxn ),
25 $ iseed( 4 ), iwork( liwork )
26 REAL a( maxn*maxn ), b( maxn, maxn ),
27 $ copya( maxn*maxn ), copyb( maxn, maxn ),
28 $ gap( maxn ), win( maxn ), wnew( maxn ),
29 $ work( lwork ), z( maxn*maxn )
35 EXTERNAL blacs_exit, blacs_get, blacs_gridinit,
60 abstol = 0.1175494351e-37
63 CALL blacs_pinfo( iam, nprocs )
64 IF( nprocs.LT.1 )
THEN
67 CALL blacs_setup( iam, nprocs )
69 CALL blacs_get( -1, 0, context )
70 CALL blacs_gridinit( context,
'R', nprow, npcol )
72 CALL descinit( desca, n, n, nb, nb, 0, 0, context, lda, info )
74 CALL psgseptst( desca, uplo, n, mattype, ibtype, subtests, thresh,
75 $ n, abstol, iseed, a, copya, b, copyb, z, lda, win,
76 $ wnew, ifail, iclustr, gap, iprepad, ipostpad,
77 $ work, lwork-iprepad-ipostpad, iwork,
78 $ liwork-iprepad-ipostpad, 6, info )