1 INTEGER FUNCTION pjlaenv( ICTXT, ISPEC, NAME, OPTS, N1,
10 CHARACTER*( * ) name, opts
11 INTEGER ictxt, ispec, n1, n2, n3, n4
126 INTEGER block_cyclic_2d, csrc_, ctxt_, dlen_, dtype_,
127 $ lld_, mb_, m_, nb_, n_, rsrc_
128 parameter( block_cyclic_2d = 1, dlen_ = 9, dtype_ = 1,
129 $ ctxt_ = 2, m_ = 3, n_ = 4, mb_ = 5, nb_ = 6,
130 $ rsrc_ = 7, csrc_ = 8, lld_ = 9 )
133 LOGICAL cname, global, sname, time
138 INTEGER i, ic, idumm, iz, msz, nb
141 INTRINSIC char, ichar
146 INTEGER anb, balanced, bckblock, gstblock, interleave,
147 $ lltblock, minsz, pnb, timing, trsblock,
154 COMMON / blocksizes / gstblock, lltblock, bckblock,
156 COMMON / minsize / minsz
157 COMMON / pjlaenvtiming / timing
158 COMMON / tailoredopts / pnb, anb, interleave,
163 time = ( timing.EQ.1 )
166 GO TO ( 10, 10, 10, 10, 10 )ispec
179 ic = ichar( subnam( 1: 1 ) )
181 IF( iz.EQ.100 .OR. iz.EQ.122 )
THEN
185 IF( ic.GE.97 .AND. ic.LE.122 )
THEN
186 subnam( 1: 1 ) = char( ic-32 )
188 ic = ichar( subnam( i: i ) )
189 IF( ic.GE.97 .AND. ic.LE.122 )
190 $ subnam( i: i ) = char( ic-32 )
194 ELSE IF( iz.EQ.233 .OR. iz.EQ.169 )
THEN
198 IF( ( ic.GE.129 .AND. ic.LE.137 ) .OR.
199 $ ( ic.GE.145 .AND. ic.LE.153 ) .OR.
200 $ ( ic.GE.162 .AND. ic.LE.169 ) )
THEN
201 subnam( 1: 1 ) = char( ic+64 )
203 ic = ichar( subnam( i: i ) )
204 IF( ( ic.GE.129 .AND. ic.LE.137 ) .OR.
205 $ ( ic.GE.145 .AND. ic.LE.153 ) .OR.
206 $ ( ic.GE.162 .AND. ic.LE.169 ) )subnam( i:
207 $ i ) = char( ic+64 )
211 ELSE IF( iz.EQ.218 .OR. iz.EQ.250 )
THEN
215 IF( ic.GE.225 .AND. ic.LE.250 )
THEN
216 subnam( 1: 1 ) = char( ic-32 )
218 ic = ichar( subnam( i: i ) )
219 IF( ic.GE.225 .AND. ic.LE.250 )
220 $ subnam( i: i ) = char( ic-32 )
226 sname = c1.EQ.
'S' .OR. c1.EQ.
'D'
227 cname = c1.EQ.
'C' .OR. c1.EQ.
'Z'
228 IF( .NOT.( cname .OR. sname ) )
236 IF( ( n2+n3+n4 )*0.NE.0 )
THEN
241 GO TO ( 50, 60, 70, 80, 90 )ispec
254 IF( c2.EQ.
'SY' .OR. c2.EQ.
'HE' )
THEN
255 IF( c3.EQ.
'LLT' )
THEN
266 print *,
'xpjlaenv.f ERROR common variable LLTBLOCK',
267 $
' may be unitialized'
272 ELSE IF( c3.EQ.
'TTR' )
THEN
278 ELSE IF( c3.EQ.
'GST' )
THEN
289 print *,
'xpjlaenv.f ERROR common variable GSTBLOCK',
290 $
' may be unitialized'
295 ELSE IF( c3.EQ.
'BCK' )
THEN
306 print *,
'xpjlaenv.f ERROR common variable BCKBLOCK',
307 $
' may be unitialized'
312 ELSE IF( c3.EQ.
'TRS' )
THEN
323 print *,
'xpjlaenv.f ERROR common variable TRSBLOCK',
324 $
' may be unitialized'
343 IF( c2.EQ.
'SY' .OR. c2.EQ.
'HE' )
THEN
344 IF( c3.EQ.
'TTR' )
THEN
357 print *,
'xpjlaenv.f ERROR common variable PNB',
358 $
' may be unitialized'
375 IF( c2.EQ.
'SY' .OR. c2.EQ.
'HE' )
THEN
376 IF( c3.EQ.
'TTR' )
THEN
389 print *,
'xpjlaenv.f ERROR common variable ANB',
390 $
' may be unitialized'
405 IF( c2.EQ.
'SY' .OR. c2.EQ.
'HE' )
THEN
406 IF( c3.EQ.
'TTR' )
THEN
446 IF( c2.EQ.
'SY' .OR. c2.EQ.
'HE' )
THEN
447 IF( c3.EQ.
'TTR' )
THEN
468 CALL igamx2d( ictxt,
'All',
' ', 1, 1,
pjlaenv, 1, idumm,
469 $ idumm, -1, -1, idumm )