mirror of
https://github.com/sfilippone/psblas3.git
synced 2026-10-16 10:52:08 +00:00
Always allocate szs in psb_gather
This commit is contained in:
@@ -136,9 +136,7 @@ subroutine psb_cgather_vect(globx, locx, desc_a, info, iroot)
|
||||
end if
|
||||
end do
|
||||
|
||||
if ((me == root).or.(root == -1)) then
|
||||
allocate(szs(np))
|
||||
end if
|
||||
allocate(szs(np))
|
||||
loc_rows = desc_a%get_local_rows()
|
||||
call psb_gather(ctxt,loc_rows,szs,root=root)
|
||||
if ((me == root).or.(root == -1)) then
|
||||
|
||||
@@ -136,9 +136,7 @@ subroutine psb_dgather_vect(globx, locx, desc_a, info, iroot)
|
||||
end if
|
||||
end do
|
||||
|
||||
if ((me == root).or.(root == -1)) then
|
||||
allocate(szs(np))
|
||||
end if
|
||||
allocate(szs(np))
|
||||
loc_rows = desc_a%get_local_rows()
|
||||
call psb_gather(ctxt,loc_rows,szs,root=root)
|
||||
if ((me == root).or.(root == -1)) then
|
||||
|
||||
@@ -136,9 +136,7 @@ subroutine psb_igather_vect(globx, locx, desc_a, info, iroot)
|
||||
end if
|
||||
end do
|
||||
|
||||
if ((me == root).or.(root == -1)) then
|
||||
allocate(szs(np))
|
||||
end if
|
||||
allocate(szs(np))
|
||||
loc_rows = desc_a%get_local_rows()
|
||||
call psb_gather(ctxt,loc_rows,szs,root=root)
|
||||
if ((me == root).or.(root == -1)) then
|
||||
|
||||
@@ -136,9 +136,7 @@ subroutine psb_lgather_vect(globx, locx, desc_a, info, iroot)
|
||||
end if
|
||||
end do
|
||||
|
||||
if ((me == root).or.(root == -1)) then
|
||||
allocate(szs(np))
|
||||
end if
|
||||
allocate(szs(np))
|
||||
loc_rows = desc_a%get_local_rows()
|
||||
call psb_gather(ctxt,loc_rows,szs,root=root)
|
||||
if ((me == root).or.(root == -1)) then
|
||||
|
||||
@@ -136,9 +136,7 @@ subroutine psb_sgather_vect(globx, locx, desc_a, info, iroot)
|
||||
end if
|
||||
end do
|
||||
|
||||
if ((me == root).or.(root == -1)) then
|
||||
allocate(szs(np))
|
||||
end if
|
||||
allocate(szs(np))
|
||||
loc_rows = desc_a%get_local_rows()
|
||||
call psb_gather(ctxt,loc_rows,szs,root=root)
|
||||
if ((me == root).or.(root == -1)) then
|
||||
|
||||
@@ -136,9 +136,7 @@ subroutine psb_zgather_vect(globx, locx, desc_a, info, iroot)
|
||||
end if
|
||||
end do
|
||||
|
||||
if ((me == root).or.(root == -1)) then
|
||||
allocate(szs(np))
|
||||
end if
|
||||
allocate(szs(np))
|
||||
loc_rows = desc_a%get_local_rows()
|
||||
call psb_gather(ctxt,loc_rows,szs,root=root)
|
||||
if ((me == root).or.(root == -1)) then
|
||||
|
||||
Reference in New Issue
Block a user