5 INTEGER DESC_IN( * ), DESC_OUT( * ), INFO
30 INTEGER BLOCK_CYCLIC_2D, CSRC_, CTXT_, DLEN_, DT_,
31 $ LLD_, MB_, M_, NB_, N_, RSRC_
32 parameter( block_cyclic_2d = 1, dlen_ = 9, dt_ = 1,
33 $ ctxt_ = 2, m_ = 3, n_ = 4, mb_ = 5, nb_ = 6,
34 $ rsrc_ = 7, csrc_ = 8, lld_ = 9 )
38 INTEGER DESC_TYPE, DESC_TYPE_IN, ICTXT
39 INTEGER CSRC, RSRC, MB, NB, LLDA
40 INTEGER M, N, NPROW, NPCOL, IDUM1, IDUM2
49 desc_type_in = desc_in( 1 )
61 IF( desc_type_in .EQ. block_cyclic_2d )
THEN
62 ictxt = desc_in( ctxt_ )
63 rsrc = desc_in( rsrc_ )
64 csrc = desc_in( csrc_ )
67 llda = desc_in( lld_ )
70 CALL blacs_gridinfo( ictxt, nprow, npcol, idum1, idum2 )
71 ELSEIF ( desc_type_in .EQ. 502 )
THEN
82 ELSEIF ( desc_type_in .EQ. 501 )
THEN
96 desc_type = desc_out( 1 )
98 IF( desc_type .EQ. 501 )
THEN
99 IF( nprow .NE. 1 )
THEN
103 desc_out( 2 ) = ictxt
108 ELSEIF( desc_type .EQ. 502 )
THEN
109 IF( npcol .NE. 1 )
THEN
113 desc_out( 2 ) = ictxt