|
|
@ -572,7 +572,7 @@ subroutine psb_c_coo_trim(a)
|
|
|
|
call psb_erractionsave(err_act)
|
|
|
|
call psb_erractionsave(err_act)
|
|
|
|
info = psb_success_
|
|
|
|
info = psb_success_
|
|
|
|
if (a%is_dev()) call a%sync()
|
|
|
|
if (a%is_dev()) call a%sync()
|
|
|
|
nz = a%get_nzeros()
|
|
|
|
nz = max(1_psb_ipk_,a%get_nzeros())
|
|
|
|
if (info == psb_success_) call psb_realloc(nz,a%ia,info)
|
|
|
|
if (info == psb_success_) call psb_realloc(nz,a%ia,info)
|
|
|
|
if (info == psb_success_) call psb_realloc(nz,a%ja,info)
|
|
|
|
if (info == psb_success_) call psb_realloc(nz,a%ja,info)
|
|
|
|
if (info == psb_success_) call psb_realloc(nz,a%val,info)
|
|
|
|
if (info == psb_success_) call psb_realloc(nz,a%val,info)
|
|
|
@ -6012,7 +6012,7 @@ subroutine psb_lc_coo_trim(a)
|
|
|
|
call psb_erractionsave(err_act)
|
|
|
|
call psb_erractionsave(err_act)
|
|
|
|
info = psb_success_
|
|
|
|
info = psb_success_
|
|
|
|
if (a%is_dev()) call a%sync()
|
|
|
|
if (a%is_dev()) call a%sync()
|
|
|
|
nz = a%get_nzeros()
|
|
|
|
nz = max(1_psb_lpk_,a%get_nzeros())
|
|
|
|
if (info == psb_success_) call psb_realloc(nz,a%ia,info)
|
|
|
|
if (info == psb_success_) call psb_realloc(nz,a%ia,info)
|
|
|
|
if (info == psb_success_) call psb_realloc(nz,a%ja,info)
|
|
|
|
if (info == psb_success_) call psb_realloc(nz,a%ja,info)
|
|
|
|
if (info == psb_success_) call psb_realloc(nz,a%val,info)
|
|
|
|
if (info == psb_success_) call psb_realloc(nz,a%val,info)
|
|
|
|