403
404
405
406
407
408
409
410 INTEGER ICTXT, INFO, LDX, N
411
412
413 INTEGER IWORK( N ), X( LDX, 2 )
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454 INTEGER K, MYROW, MYCOL
455
456
457 EXTERNAL blacs_gridinfo, igamn2d, igebr2d, igebs2d
458
459
461
462
463
464 CALL blacs_gridinfo( ictxt, iwork, k, myrow, mycol )
465
466 IF( myrow.EQ.0 .AND. mycol.EQ.0 ) THEN
467 CALL igebs2d( ictxt, 'All', ' ', n, 1, x, n )
468 ELSE
469 CALL igebr2d( ictxt, 'All', ' ', n, 1, iwork, n, 0, 0 )
470 DO 10 k = 1, n
471 IF( x( k, 1 ).NE.iwork( k ) )
472 $ info =
min( info, x( k, 2 ) )
473 10 CONTINUE
474 END IF
475
476 CALL igamn2d( ictxt, 'All', ' ', 1, 1, info, 1, k, k, -1, -1, 0 )
477
478 RETURN
479
480
481