ScaLAPACK 2.1  2.1
ScaLAPACK: Scalable Linear Algebra PACKage
psgrptseptst.f
Go to the documentation of this file.
1  PROGRAM psrptgseptst
2 *
3 * -- ScaLAPACK routine (version 1.7) --
4 * University of Tennessee, Knoxville, Oak Ridge National Laboratory,
5 * and University of California, Berkeley.
6 * August 14, 2001
7 *
8 * Repeat generalized parallel symmetric eigenproblem test
9 * .. Parameters ..
10 *
11  INTEGER dlen_
12  parameter( dlen_ = 9 )
13  INTEGER maxn, lwork, liwork
14  parameter( maxn = 200, lwork = 500000,
15  $ liwork = 6*maxn+4 )
16 * ..
17 * .. Local Scalars ..
18  CHARACTER subtests, uplo
19  INTEGER context, iam, ibtype, info, ipostpad, iprepad,
20  $ lda, mattype, n, nb, npcol, nprocs, nprow
21  REAL abstol, thresh
22 * ..
23 * .. Local Arrays ..
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 )
30 * ..
31 *
32 *
33 * .. External Subroutines ..
34 *
35  EXTERNAL blacs_exit, blacs_get, blacs_gridinit,
36  $ blacs_pinfo, blacs_setup, descinit, psgseptst
37 * ..
38 * .. Executable Statements ..
39 *
40  iprepad = 3
41  ipostpad = 3
42  lda = maxn
43 *
44 * These lines should be replaced by the output from pxGSEPdriver
45 *
46 *
47  iseed( 1 ) = 2312
48  iseed( 2 ) = 3709
49  iseed( 3 ) = 666
50  iseed( 4 ) = 3371
51  uplo = 'U'
52  subtests = 'Y'
53  n = 33
54  nprow = 2
55  npcol = 2
56  nb = 4
57  mattype = 9
58  ibtype = 1
59 * note: the printout often makes a mess of ABSTOL
60  abstol = 0.1175494351e-37
61  thresh = .350000e+01
62 *
63  CALL blacs_pinfo( iam, nprocs )
64  IF( nprocs.LT.1 ) THEN
65 *
66  nprocs = nprow*npcol
67  CALL blacs_setup( iam, nprocs )
68  END IF
69  CALL blacs_get( -1, 0, context )
70  CALL blacs_gridinit( context, 'R', nprow, npcol )
71 *
72  CALL descinit( desca, n, n, nb, nb, 0, 0, context, lda, info )
73 *
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 )
79 *
80 *
81 *
82 * Uncomment this line on SUN systems to avoid the useless print out
83 *
84 * CALL IEEE_FLAGS( 'clear', 'exception', 'underflow', '')
85 *
86 *
87 *
88 *
89  CALL blacs_exit( 0 )
90  stop
91 *
92 *
93 *
94 * End of PSRPTGSEPTST
95 *
96  END
descinit
subroutine descinit(DESC, M, N, MB, NB, IRSRC, ICSRC, ICTXT, LLD, INFO)
Definition: descinit.f:3
psrptgseptst
program psrptgseptst
Definition: psgrptseptst.f:1
psgseptst
subroutine psgseptst(DESCA, UPLO, N, MATTYPE, IBTYPE, SUBTESTS, THRESH, ORDER, ABSTOL, ISEED, A, COPYA, B, COPYB, Z, LDA, WIN, WNEW, IFAIL, ICLUSTR, GAP, IPREPAD, IPOSTPAD, WORK, LWORK, IWORK, LIWORK, NOUT, INFO)
Definition: psgseptst.f:8