3955
3956
3957
3958
3959
3960
3961
3962 INTEGER ICPRNT, ICTXT, IRPRNT, LDA, M, N, NOUT
3963
3964
3965 CHARACTER*(*) CMATNM
3966 COMPLEX A( LDA, * )
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022 INTEGER I, J, MYCOL, MYROW, NPCOL, NPROW
4023
4024
4025 EXTERNAL blacs_gridinfo
4026
4027
4028 INTRINSIC aimag, real
4029
4030
4031
4032
4033
4034 IF( ( m.LE.0 ).OR.( n.LE.0 ) )
4035 $ RETURN
4036
4037
4038
4039 CALL blacs_gridinfo( ictxt, nprow, npcol, myrow, mycol )
4040
4041 IF( myrow.EQ.irprnt .AND. mycol.EQ.icprnt ) THEN
4042
4043 WRITE( nout, fmt = * )
4044 DO 20 j = 1, n
4045
4046 DO 10 i = 1, m
4047
4048 WRITE( nout, fmt = 9999 ) cmatnm, i, j,
4049 $ real( a( i, j ) ), aimag( a( i, j ) )
4050
4051 10 CONTINUE
4052
4053 20 CONTINUE
4054
4055 END IF
4056
4057 9999 FORMAT( 1x, a, '(', i6, ',', i6, ')=', e16.8, '+i*(',
4058 $ e16.8, ')' )
4059
4060 RETURN
4061
4062
4063