diff --git a/base/serial/impl/psb_c_csr_impl.f90 b/base/serial/impl/psb_c_csr_impl.f90 index a4296c3e..b3125d8f 100644 --- a/base/serial/impl/psb_c_csr_impl.f90 +++ b/base/serial/impl/psb_c_csr_impl.f90 @@ -3386,8 +3386,7 @@ subroutine psb_ccsrspspmm(a,b,c,info) nza = a%get_nzeros() nzb = b%get_nzeros() nzc = 2*(nza+nzb) - nze = ma*(((nza+ma-1)/ma)*((nzb+mb-1)/mb) ) - nzeb = (((nza+na-1)/na)*((nzb+nb-1)/nb))*nb + ! Estimate number of nonzeros on output. ! Turns out this is often a large overestimate. call c%allocate(ma,nb,nzc) diff --git a/base/serial/impl/psb_d_csr_impl.f90 b/base/serial/impl/psb_d_csr_impl.f90 index c0f7cfcb..af7f7336 100644 --- a/base/serial/impl/psb_d_csr_impl.f90 +++ b/base/serial/impl/psb_d_csr_impl.f90 @@ -3386,8 +3386,7 @@ subroutine psb_dcsrspspmm(a,b,c,info) nza = a%get_nzeros() nzb = b%get_nzeros() nzc = 2*(nza+nzb) - nze = ma*(((nza+ma-1)/ma)*((nzb+mb-1)/mb) ) - nzeb = (((nza+na-1)/na)*((nzb+nb-1)/nb))*nb + ! Estimate number of nonzeros on output. ! Turns out this is often a large overestimate. call c%allocate(ma,nb,nzc) diff --git a/base/serial/impl/psb_s_csr_impl.f90 b/base/serial/impl/psb_s_csr_impl.f90 index ceb21bf3..7ee2a4ea 100644 --- a/base/serial/impl/psb_s_csr_impl.f90 +++ b/base/serial/impl/psb_s_csr_impl.f90 @@ -3386,8 +3386,7 @@ subroutine psb_scsrspspmm(a,b,c,info) nza = a%get_nzeros() nzb = b%get_nzeros() nzc = 2*(nza+nzb) - nze = ma*(((nza+ma-1)/ma)*((nzb+mb-1)/mb) ) - nzeb = (((nza+na-1)/na)*((nzb+nb-1)/nb))*nb + ! Estimate number of nonzeros on output. ! Turns out this is often a large overestimate. call c%allocate(ma,nb,nzc) diff --git a/base/serial/impl/psb_z_csr_impl.f90 b/base/serial/impl/psb_z_csr_impl.f90 index f86b0872..42c8c5be 100644 --- a/base/serial/impl/psb_z_csr_impl.f90 +++ b/base/serial/impl/psb_z_csr_impl.f90 @@ -3386,8 +3386,7 @@ subroutine psb_zcsrspspmm(a,b,c,info) nza = a%get_nzeros() nzb = b%get_nzeros() nzc = 2*(nza+nzb) - nze = ma*(((nza+ma-1)/ma)*((nzb+mb-1)/mb) ) - nzeb = (((nza+na-1)/na)*((nzb+nb-1)/nb))*nb + ! Estimate number of nonzeros on output. ! Turns out this is often a large overestimate. call c%allocate(ma,nb,nzc)