mirror of
https://github.com/sfilippone/psblas3.git
synced 2026-10-20 04:42:08 +00:00
Fix bcast on strings.
This commit is contained in:
+4
-21
@@ -255,21 +255,12 @@ contains
|
||||
read(*,*) novr
|
||||
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
|
||||
call psb_bcast(ictxt,cmethd)
|
||||
call psb_bcast(ictxt,afmt)
|
||||
call psb_bcast(ictxt,iprec)
|
||||
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
|
||||
if (ip.ge.4) then
|
||||
@@ -316,18 +307,10 @@ contains
|
||||
stop 1
|
||||
endif
|
||||
else
|
||||
call psb_bcast(ictxt,intbuf(1:10))
|
||||
|
||||
do i = 1, 10
|
||||
cmethd(i:i) = achar(intbuf(i))
|
||||
end do
|
||||
|
||||
call psb_bcast(ictxt,cmethd)
|
||||
call psb_bcast(ictxt,afmt)
|
||||
call psb_bcast(ictxt,iprec)
|
||||
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))
|
||||
idim = intbuf(1)
|
||||
istopc = intbuf(2)
|
||||
|
||||
Reference in New Issue
Block a user