Fix bcast on strings.

psblas3-type-indexed
Salvatore Filippone 18 years ago
parent 3e7d0e55b5
commit 7b06619de0

@ -255,21 +255,12 @@ contains
read(*,*) novr read(*,*) novr
read(*,*) afmt read(*,*) afmt
! convert strings in array
do i = 1, len(cmethd)
intbuf(i) = iachar(cmethd(i:i))
end do
! broadcast parameters to all processors
call psb_bcast(ictxt,intbuf(1:10))
! broadcast parameters to all processors ! broadcast parameters to all processors
call psb_bcast(ictxt,cmethd)
call psb_bcast(ictxt,afmt)
call psb_bcast(ictxt,iprec) call psb_bcast(ictxt,iprec)
call psb_bcast(ictxt,novr) call psb_bcast(ictxt,novr)
do i = 1, len(afmt)
intbuf(i) = iachar(afmt(i:i))
end do
call psb_bcast(ictxt,intbuf(1:10))
read(*,*) idim read(*,*) idim
if (ip.ge.4) then if (ip.ge.4) then
@ -316,18 +307,10 @@ contains
stop 1 stop 1
endif endif
else else
call psb_bcast(ictxt,intbuf(1:10)) call psb_bcast(ictxt,cmethd)
call psb_bcast(ictxt,afmt)
do i = 1, 10
cmethd(i:i) = achar(intbuf(i))
end do
call psb_bcast(ictxt,iprec) call psb_bcast(ictxt,iprec)
call psb_bcast(ictxt,novr) call psb_bcast(ictxt,novr)
call psb_bcast(ictxt,intbuf(1:10))
do i = 1, 5
afmt(i:i) = achar(intbuf(i))
end do
call psb_bcast(ictxt,intbuf(1:5)) call psb_bcast(ictxt,intbuf(1:5))
idim = intbuf(1) idim = intbuf(1)
istopc = intbuf(2) istopc = intbuf(2)

Loading…
Cancel
Save