|
|
@ -1,4 +1,4 @@
|
|
|
|
subroutine psb_cdall(ictxt, desc, info,mg,ng,parts,vg,vl,flag,nl,repl, globalcheck,lidx)
|
|
|
|
subroutine psb_cdall(ictxt, desc, info,mg,ng,parts,vg,vl,flag,nl,repl,globalcheck,lidx,usehash)
|
|
|
|
use psb_desc_mod
|
|
|
|
use psb_desc_mod
|
|
|
|
use psb_serial_mod
|
|
|
|
use psb_serial_mod
|
|
|
|
use psb_const_mod
|
|
|
|
use psb_const_mod
|
|
|
@ -10,11 +10,11 @@ subroutine psb_cdall(ictxt, desc, info,mg,ng,parts,vg,vl,flag,nl,repl, globalche
|
|
|
|
procedure(psb_parts) :: parts
|
|
|
|
procedure(psb_parts) :: parts
|
|
|
|
integer(psb_ipk_), intent(in) :: mg,ng,ictxt, vg(:), vl(:),nl,lidx(:)
|
|
|
|
integer(psb_ipk_), intent(in) :: mg,ng,ictxt, vg(:), vl(:),nl,lidx(:)
|
|
|
|
integer(psb_ipk_), intent(in) :: flag
|
|
|
|
integer(psb_ipk_), intent(in) :: flag
|
|
|
|
logical, intent(in) :: repl, globalcheck
|
|
|
|
logical, intent(in) :: repl, globalcheck,usehash
|
|
|
|
integer(psb_ipk_), intent(out) :: info
|
|
|
|
integer(psb_ipk_), intent(out) :: info
|
|
|
|
type(psb_desc_type), intent(out) :: desc
|
|
|
|
type(psb_desc_type), intent(out) :: desc
|
|
|
|
|
|
|
|
|
|
|
|
optional :: mg,ng,parts,vg,vl,flag,nl,repl, globalcheck,lidx
|
|
|
|
optional :: mg,ng,parts,vg,vl,flag,nl,repl, globalcheck,lidx, usehash
|
|
|
|
|
|
|
|
|
|
|
|
interface
|
|
|
|
interface
|
|
|
|
subroutine psb_cdals(m, n, parts, ictxt, desc, info)
|
|
|
|
subroutine psb_cdals(m, n, parts, ictxt, desc, info)
|
|
|
@ -31,13 +31,13 @@ subroutine psb_cdall(ictxt, desc, info,mg,ng,parts,vg,vl,flag,nl,repl, globalche
|
|
|
|
integer(psb_ipk_), intent(out) :: info
|
|
|
|
integer(psb_ipk_), intent(out) :: info
|
|
|
|
Type(psb_desc_type), intent(out) :: desc
|
|
|
|
Type(psb_desc_type), intent(out) :: desc
|
|
|
|
end subroutine psb_cdalv
|
|
|
|
end subroutine psb_cdalv
|
|
|
|
subroutine psb_cd_inloc(v, ictxt, desc, info, globalcheck,idx)
|
|
|
|
subroutine psb_cd_inloc(v, ictxt, desc, info, globalcheck,idx, usehash)
|
|
|
|
use psb_desc_mod
|
|
|
|
use psb_desc_mod
|
|
|
|
implicit None
|
|
|
|
implicit None
|
|
|
|
integer(psb_ipk_), intent(in) :: ictxt, v(:)
|
|
|
|
integer(psb_ipk_), intent(in) :: ictxt, v(:)
|
|
|
|
integer(psb_ipk_), intent(out) :: info
|
|
|
|
integer(psb_ipk_), intent(out) :: info
|
|
|
|
type(psb_desc_type), intent(out) :: desc
|
|
|
|
type(psb_desc_type), intent(out) :: desc
|
|
|
|
logical, intent(in), optional :: globalcheck
|
|
|
|
logical, intent(in), optional :: globalcheck, usehash
|
|
|
|
integer(psb_ipk_), intent(in), optional :: idx(:)
|
|
|
|
integer(psb_ipk_), intent(in), optional :: idx(:)
|
|
|
|
end subroutine psb_cd_inloc
|
|
|
|
end subroutine psb_cd_inloc
|
|
|
|
subroutine psb_cdrep(m, ictxt, desc,info)
|
|
|
|
subroutine psb_cdrep(m, ictxt, desc,info)
|
|
|
@ -49,6 +49,7 @@ subroutine psb_cdall(ictxt, desc, info,mg,ng,parts,vg,vl,flag,nl,repl, globalche
|
|
|
|
end interface
|
|
|
|
end interface
|
|
|
|
character(len=20) :: name
|
|
|
|
character(len=20) :: name
|
|
|
|
integer(psb_ipk_) :: err_act, n_, flag_, i, me, np, nlp, nnv, lr
|
|
|
|
integer(psb_ipk_) :: err_act, n_, flag_, i, me, np, nlp, nnv, lr
|
|
|
|
|
|
|
|
logical :: usehash_
|
|
|
|
integer(psb_ipk_), allocatable :: itmpsz(:)
|
|
|
|
integer(psb_ipk_), allocatable :: itmpsz(:)
|
|
|
|
integer(psb_mpik_) :: iictxt
|
|
|
|
integer(psb_mpik_) :: iictxt
|
|
|
|
|
|
|
|
|
|
|
@ -130,6 +131,14 @@ subroutine psb_cdall(ictxt, desc, info,mg,ng,parts,vg,vl,flag,nl,repl, globalche
|
|
|
|
|
|
|
|
|
|
|
|
else if (present(nl)) then
|
|
|
|
else if (present(nl)) then
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (present(usehash)) then
|
|
|
|
|
|
|
|
usehash_ = usehash
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
usehash_ = .false.
|
|
|
|
|
|
|
|
end if
|
|
|
|
|
|
|
|
if (usehash_) then
|
|
|
|
|
|
|
|
write(0,*) 'Fix usehash_ implementationt '
|
|
|
|
|
|
|
|
end if
|
|
|
|
|
|
|
|
|
|
|
|
if (np == 1) then
|
|
|
|
if (np == 1) then
|
|
|
|
allocate(psb_repl_map :: desc%indxmap, stat=info)
|
|
|
|
allocate(psb_repl_map :: desc%indxmap, stat=info)
|
|
|
|