Fix documentation for sprn and usage of reinit in sphalo.

psblas3-type-indexed
Salvatore Filippone 19 years ago
parent 662a6ced02
commit f7cef24b77

@ -507,7 +507,7 @@ Specified as: an integer variable.
% %
\subroutine{psb\_sprn}{Reinit sparse matrix structure for psblas routines.} \subroutine{psb\_sprn}{Reinit sparse matrix structure for psblas routines.}
\syntax{call psb\_sprn}{a, decsc\_a, info} \syntax{call psb\_sprn}{a, decsc\_a, info, clear}
\begin{description} \begin{description}
\item[\bf On Entry] \item[\bf On Entry]
@ -519,6 +519,10 @@ Specified as: a structured data of type \spdata.
Scope:{\bf local}.\\ Scope:{\bf local}.\\
Type:{\bf required}.\\ Type:{\bf required}.\\
Specified as: a structured data of type \descdata. Specified as: a structured data of type \descdata.
\item[clear] Choose whether to zero out matrix coefficients\\
Scope:{\bf local}.\\
Type:{\bf optional}.\\
Default: true.
\end{description} \end{description}
\begin{description} \begin{description}

File diff suppressed because it is too large Load Diff

@ -173,7 +173,7 @@ contains
! right after allocate, with spins doing the right thing. ! right after allocate, with spins doing the right thing.
! hopefully :-) ! hopefully :-)
case( psb_spmat_upd_) case(psb_spmat_upd_)
case default case default
info=591 info=591

@ -194,17 +194,18 @@ Subroutine psb_dsphalo(a,desc_a,blk,info,rwcnv,clcnv,outfmt)
end if end if
mat_recv = iszr mat_recv = iszr
iszs=sum(sdsz) iszs=sum(sdsz)
call psb_nullify_sp(tmp)
call psb_sp_all(0,0,tmp,max(iszs,1),info) call psb_sp_all(0,0,tmp,max(iszs,1),info)
tmp%fida='COO' tmp%fida='COO'
call psb_sp_setifld(psb_spmat_asb_,psb_state_,tmp,info)
t2 = mpi_wtime() t2 = mpi_wtime()
l1 = 0 l1 = 0
ipx = 1 ipx = 1
counter=1 counter=1
idx = 0 idx = 0
call psb_sp_reinit(tmp,info)
tmp%infoa(psb_nnz_) = 0
Do Do
proc=desc_a%halo_index(counter) proc=desc_a%halo_index(counter)
if (proc == -1) exit if (proc == -1) exit

@ -194,17 +194,18 @@ Subroutine psb_zsphalo(a,desc_a,blk,info,rwcnv,clcnv,outfmt)
end if end if
mat_recv = iszr mat_recv = iszr
iszs=sum(sdsz) iszs=sum(sdsz)
call psb_nullify_sp(tmp)
call psb_sp_all(0,0,tmp,max(iszs,1),info) call psb_sp_all(0,0,tmp,max(iszs,1),info)
tmp%fida='COO' tmp%fida='COO'
call psb_sp_setifld(psb_spmat_asb_,psb_state_,tmp,info)
t2 = mpi_wtime() t2 = mpi_wtime()
l1 = 0 l1 = 0
ipx = 1 ipx = 1
counter=1 counter=1
idx = 0 idx = 0
call psb_sp_reinit(tmp,info)
tmp%infoa(psb_nnz_) = 0
Do Do
proc=desc_a%halo_index(counter) proc=desc_a%halo_index(counter)
if (proc == -1) exit if (proc == -1) exit

Loading…
Cancel
Save