mirror of
https://github.com/sfilippone/psblas3.git
synced 2026-10-20 12:52:14 +00:00
psblas3:
base/serial/impl/psb_c_coo_impl.f90 base/serial/impl/psb_c_csr_impl.f90 base/serial/impl/psb_d_coo_impl.f90 base/serial/impl/psb_d_csr_impl.f90 base/serial/impl/psb_s_coo_impl.f90 base/serial/impl/psb_s_csr_impl.f90 base/serial/impl/psb_z_coo_impl.f90 base/serial/impl/psb_z_csr_impl.f90 Had to fix (yet again, silly me !) computation of output space for getrow & friends.
This commit is contained in:
@@ -2051,12 +2051,11 @@ contains
|
||||
else
|
||||
nzin_ = 0
|
||||
endif
|
||||
|
||||
nrd = max(1,a%get_nrows())
|
||||
ncd = max(1,a%get_ncols())
|
||||
nzt = min((a%irp(lrw+1)-a%irp(irw)),&
|
||||
& ((nza+ncd-1)/ncd)*(lcl+1-icl),&
|
||||
& ((nza+nrd-1)/nrd)*(lrw+1-irw))
|
||||
!
|
||||
! This is a row-oriented routine, so the following is a
|
||||
! good choice.
|
||||
!
|
||||
nzt = (a%irp(lrw+1)-a%irp(irw))
|
||||
nz = 0
|
||||
|
||||
call psb_ensure_size(nzin_+nzt,ia,info)
|
||||
@@ -2234,11 +2233,11 @@ contains
|
||||
nzin_ = 0
|
||||
endif
|
||||
|
||||
nrd = max(1,a%get_nrows())
|
||||
ncd = max(1,a%get_ncols())
|
||||
nzt = min((a%irp(lrw+1)-a%irp(irw)),&
|
||||
& ((nza+ncd-1)/ncd)*(lcl+1-icl),&
|
||||
& ((nza+nrd-1)/nrd)*(lrw+1-irw))
|
||||
!
|
||||
! This is a row-oriented routine, so the following is a
|
||||
! good choice.
|
||||
!
|
||||
nzt = (a%irp(lrw+1)-a%irp(irw))
|
||||
nz = 0
|
||||
|
||||
call psb_ensure_size(nzin_+nzt,ia,info)
|
||||
|
||||
Reference in New Issue
Block a user