mirror of
https://github.com/sfilippone/psblas3.git
synced 2026-10-23 22:31:47 +00:00
get_rank and get_mpicomm
Make psb_get_rank and psb_get_mpicomm functions, not subroutines. Document same.
This commit is contained in:
@@ -1208,7 +1208,7 @@ contains
|
||||
n_el_recv = ipdxv(counter+psb_n_elem_recv_)
|
||||
counter = counter+n_el_recv
|
||||
n_el_send = ipdxv(counter+psb_n_elem_send_)
|
||||
call psb_get_rank(prcid(ip+1),ictxt,ip)
|
||||
prcid(ip+1) = psb_get_rank(ictxt,ip)
|
||||
sz = rvsz(ip+1)
|
||||
if (sz > 0) then
|
||||
idx = brvindx(ip+1)
|
||||
@@ -1235,7 +1235,7 @@ contains
|
||||
n_el_recv = ipdxv(counter+psb_n_elem_recv_)
|
||||
counter = counter+n_el_recv
|
||||
n_el_send = ipdxv(counter+psb_n_elem_send_)
|
||||
if (prcid(ip+1)<0) call psb_get_rank(prcid(ip+1),ictxt,ip)
|
||||
if (prcid(ip+1)<0) prcid(ip+1) = psb_get_rank(ictxt,ip)
|
||||
sz = sdsz(ip+1)
|
||||
if (sz > 0) then
|
||||
idx = bsdindx(ip+1)
|
||||
|
||||
@@ -1208,7 +1208,7 @@ contains
|
||||
n_el_recv = ipdxv(counter+psb_n_elem_recv_)
|
||||
counter = counter+n_el_recv
|
||||
n_el_send = ipdxv(counter+psb_n_elem_send_)
|
||||
call psb_get_rank(prcid(ip+1),ictxt,ip)
|
||||
prcid(ip+1) = psb_get_rank(ictxt,ip)
|
||||
sz = rvsz(ip+1)
|
||||
if (sz > 0) then
|
||||
idx = brvindx(ip+1)
|
||||
@@ -1235,7 +1235,7 @@ contains
|
||||
n_el_recv = ipdxv(counter+psb_n_elem_recv_)
|
||||
counter = counter+n_el_recv
|
||||
n_el_send = ipdxv(counter+psb_n_elem_send_)
|
||||
if (prcid(ip+1)<0) call psb_get_rank(prcid(ip+1),ictxt,ip)
|
||||
if (prcid(ip+1)<0) prcid(ip+1) = psb_get_rank(ictxt,ip)
|
||||
sz = sdsz(ip+1)
|
||||
if (sz > 0) then
|
||||
idx = bsdindx(ip+1)
|
||||
|
||||
@@ -80,7 +80,7 @@ subroutine psb_icdasb(desc,info,ext_hv,mold)
|
||||
dectype = desc%get_dectype()
|
||||
n_row = desc%get_local_rows()
|
||||
n_col = desc%get_local_cols()
|
||||
call psb_get_mpicomm(ictxt,icomm )
|
||||
icomm = desc%get_mpic()
|
||||
|
||||
! check on blacs grid
|
||||
call psb_info(ictxt, me, np)
|
||||
|
||||
@@ -1208,7 +1208,7 @@ contains
|
||||
n_el_recv = ipdxv(counter+psb_n_elem_recv_)
|
||||
counter = counter+n_el_recv
|
||||
n_el_send = ipdxv(counter+psb_n_elem_send_)
|
||||
call psb_get_rank(prcid(ip+1),ictxt,ip)
|
||||
prcid(ip+1) = psb_get_rank(ictxt,ip)
|
||||
sz = rvsz(ip+1)
|
||||
if (sz > 0) then
|
||||
idx = brvindx(ip+1)
|
||||
@@ -1235,7 +1235,7 @@ contains
|
||||
n_el_recv = ipdxv(counter+psb_n_elem_recv_)
|
||||
counter = counter+n_el_recv
|
||||
n_el_send = ipdxv(counter+psb_n_elem_send_)
|
||||
if (prcid(ip+1)<0) call psb_get_rank(prcid(ip+1),ictxt,ip)
|
||||
if (prcid(ip+1)<0) prcid(ip+1) = psb_get_rank(ictxt,ip)
|
||||
sz = sdsz(ip+1)
|
||||
if (sz > 0) then
|
||||
idx = bsdindx(ip+1)
|
||||
|
||||
@@ -1208,7 +1208,7 @@ contains
|
||||
n_el_recv = ipdxv(counter+psb_n_elem_recv_)
|
||||
counter = counter+n_el_recv
|
||||
n_el_send = ipdxv(counter+psb_n_elem_send_)
|
||||
call psb_get_rank(prcid(ip+1),ictxt,ip)
|
||||
prcid(ip+1) = psb_get_rank(ictxt,ip)
|
||||
sz = rvsz(ip+1)
|
||||
if (sz > 0) then
|
||||
idx = brvindx(ip+1)
|
||||
@@ -1235,7 +1235,7 @@ contains
|
||||
n_el_recv = ipdxv(counter+psb_n_elem_recv_)
|
||||
counter = counter+n_el_recv
|
||||
n_el_send = ipdxv(counter+psb_n_elem_send_)
|
||||
if (prcid(ip+1)<0) call psb_get_rank(prcid(ip+1),ictxt,ip)
|
||||
if (prcid(ip+1)<0) prcid(ip+1) = psb_get_rank(ictxt,ip)
|
||||
sz = sdsz(ip+1)
|
||||
if (sz > 0) then
|
||||
idx = bsdindx(ip+1)
|
||||
|
||||
Reference in New Issue
Block a user