Always allocate szs in psb_gather

maint-3.8.1
sfilippone 1 year ago
parent baf18cebd7
commit d718ef1e6d

@ -136,9 +136,7 @@ subroutine psb_cgather_vect(globx, locx, desc_a, info, iroot)
end if end if
end do end do
if ((me == root).or.(root == -1)) then allocate(szs(np))
allocate(szs(np))
end if
loc_rows = desc_a%get_local_rows() loc_rows = desc_a%get_local_rows()
call psb_gather(ctxt,loc_rows,szs,root=root) call psb_gather(ctxt,loc_rows,szs,root=root)
if ((me == root).or.(root == -1)) then if ((me == root).or.(root == -1)) then

@ -136,9 +136,7 @@ subroutine psb_dgather_vect(globx, locx, desc_a, info, iroot)
end if end if
end do end do
if ((me == root).or.(root == -1)) then allocate(szs(np))
allocate(szs(np))
end if
loc_rows = desc_a%get_local_rows() loc_rows = desc_a%get_local_rows()
call psb_gather(ctxt,loc_rows,szs,root=root) call psb_gather(ctxt,loc_rows,szs,root=root)
if ((me == root).or.(root == -1)) then if ((me == root).or.(root == -1)) then

@ -136,9 +136,7 @@ subroutine psb_igather_vect(globx, locx, desc_a, info, iroot)
end if end if
end do end do
if ((me == root).or.(root == -1)) then allocate(szs(np))
allocate(szs(np))
end if
loc_rows = desc_a%get_local_rows() loc_rows = desc_a%get_local_rows()
call psb_gather(ctxt,loc_rows,szs,root=root) call psb_gather(ctxt,loc_rows,szs,root=root)
if ((me == root).or.(root == -1)) then if ((me == root).or.(root == -1)) then

@ -136,9 +136,7 @@ subroutine psb_lgather_vect(globx, locx, desc_a, info, iroot)
end if end if
end do end do
if ((me == root).or.(root == -1)) then allocate(szs(np))
allocate(szs(np))
end if
loc_rows = desc_a%get_local_rows() loc_rows = desc_a%get_local_rows()
call psb_gather(ctxt,loc_rows,szs,root=root) call psb_gather(ctxt,loc_rows,szs,root=root)
if ((me == root).or.(root == -1)) then if ((me == root).or.(root == -1)) then

@ -136,9 +136,7 @@ subroutine psb_sgather_vect(globx, locx, desc_a, info, iroot)
end if end if
end do end do
if ((me == root).or.(root == -1)) then allocate(szs(np))
allocate(szs(np))
end if
loc_rows = desc_a%get_local_rows() loc_rows = desc_a%get_local_rows()
call psb_gather(ctxt,loc_rows,szs,root=root) call psb_gather(ctxt,loc_rows,szs,root=root)
if ((me == root).or.(root == -1)) then if ((me == root).or.(root == -1)) then

@ -136,9 +136,7 @@ subroutine psb_zgather_vect(globx, locx, desc_a, info, iroot)
end if end if
end do end do
if ((me == root).or.(root == -1)) then allocate(szs(np))
allocate(szs(np))
end if
loc_rows = desc_a%get_local_rows() loc_rows = desc_a%get_local_rows()
call psb_gather(ctxt,loc_rows,szs,root=root) call psb_gather(ctxt,loc_rows,szs,root=root)
if ((me == root).or.(root == -1)) then if ((me == root).or.(root == -1)) then

Loading…
Cancel
Save