Silly bug in coo insert

development
sfilippone 1 year ago
parent 492b28f342
commit 8633e76cb0

@ -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)

Loading…
Cancel
Save