mirror of
https://github.com/sfilippone/psblas3.git
synced 2026-10-07 07:04:57 +00:00
Silly bug in coo insert
This commit is contained in:
@@ -2869,6 +2869,7 @@ subroutine psb_c_coo_csput_a(nz,ia,ja,val,a,imin,imax,jmin,jmax,info)
|
||||
! Hence the call to set_nzeros done here.
|
||||
!$omp critical
|
||||
nza = a%get_nzeros()
|
||||
nzaold = nza
|
||||
isza = a%get_size()
|
||||
! Build phase. Must handle reallocations in a sensible way.
|
||||
if (isza < (nza+nz)) then
|
||||
@@ -2879,7 +2880,6 @@ subroutine psb_c_coo_csput_a(nz,ia,ja,val,a,imin,imax,jmin,jmax,info)
|
||||
info = psb_err_alloc_dealloc_; call psb_errpush(info,name)
|
||||
else
|
||||
#if defined(OPENMP)
|
||||
nzaold = nza
|
||||
nza = nza + nz
|
||||
#endif
|
||||
call a%set_nzeros(nza)
|
||||
|
||||
@@ -2869,6 +2869,7 @@ subroutine psb_d_coo_csput_a(nz,ia,ja,val,a,imin,imax,jmin,jmax,info)
|
||||
! Hence the call to set_nzeros done here.
|
||||
!$omp critical
|
||||
nza = a%get_nzeros()
|
||||
nzaold = nza
|
||||
isza = a%get_size()
|
||||
! Build phase. Must handle reallocations in a sensible way.
|
||||
if (isza < (nza+nz)) then
|
||||
@@ -2879,7 +2880,6 @@ subroutine psb_d_coo_csput_a(nz,ia,ja,val,a,imin,imax,jmin,jmax,info)
|
||||
info = psb_err_alloc_dealloc_; call psb_errpush(info,name)
|
||||
else
|
||||
#if defined(OPENMP)
|
||||
nzaold = nza
|
||||
nza = nza + nz
|
||||
#endif
|
||||
call a%set_nzeros(nza)
|
||||
|
||||
@@ -2869,6 +2869,7 @@ subroutine psb_s_coo_csput_a(nz,ia,ja,val,a,imin,imax,jmin,jmax,info)
|
||||
! Hence the call to set_nzeros done here.
|
||||
!$omp critical
|
||||
nza = a%get_nzeros()
|
||||
nzaold = nza
|
||||
isza = a%get_size()
|
||||
! Build phase. Must handle reallocations in a sensible way.
|
||||
if (isza < (nza+nz)) then
|
||||
@@ -2879,7 +2880,6 @@ subroutine psb_s_coo_csput_a(nz,ia,ja,val,a,imin,imax,jmin,jmax,info)
|
||||
info = psb_err_alloc_dealloc_; call psb_errpush(info,name)
|
||||
else
|
||||
#if defined(OPENMP)
|
||||
nzaold = nza
|
||||
nza = nza + nz
|
||||
#endif
|
||||
call a%set_nzeros(nza)
|
||||
|
||||
@@ -2869,6 +2869,7 @@ subroutine psb_z_coo_csput_a(nz,ia,ja,val,a,imin,imax,jmin,jmax,info)
|
||||
! Hence the call to set_nzeros done here.
|
||||
!$omp critical
|
||||
nza = a%get_nzeros()
|
||||
nzaold = nza
|
||||
isza = a%get_size()
|
||||
! Build phase. Must handle reallocations in a sensible way.
|
||||
if (isza < (nza+nz)) then
|
||||
@@ -2879,7 +2880,6 @@ subroutine psb_z_coo_csput_a(nz,ia,ja,val,a,imin,imax,jmin,jmax,info)
|
||||
info = psb_err_alloc_dealloc_; call psb_errpush(info,name)
|
||||
else
|
||||
#if defined(OPENMP)
|
||||
nzaold = nza
|
||||
nza = nza + nz
|
||||
#endif
|
||||
call a%set_nzeros(nza)
|
||||
|
||||
Reference in New Issue
Block a user