mirror of
https://github.com/sfilippone/psblas3.git
synced 2026-10-15 10:29:10 +00:00
psblas3:
base/serial/impl/psb_c_csr_impl.f90 base/serial/impl/psb_d_csr_impl.f90 base/serial/impl/psb_s_csr_impl.f90 base/serial/impl/psb_z_csr_impl.f90 Fix silly bug in cp_from_coo
This commit is contained in:
@@ -2702,9 +2702,9 @@ subroutine psb_c_cp_csr_from_coo(a,b,info)
|
||||
|
||||
! Dirty trick: call move_alloc to have the new data allocated just once.
|
||||
call psb_safe_ab_cpy(b%ia,itemp,info)
|
||||
if (info /= psb_success_) call psb_safe_ab_cpy(b%ja,a%ja,info)
|
||||
if (info /= psb_success_) call psb_safe_ab_cpy(b%val,a%val,info)
|
||||
if (info /= psb_success_) call psb_realloc(max(nr+1,nc+1),a%irp,info)
|
||||
if (info == psb_success_) call psb_safe_ab_cpy(b%ja,a%ja,info)
|
||||
if (info == psb_success_) call psb_safe_ab_cpy(b%val,a%val,info)
|
||||
if (info == psb_success_) call psb_realloc(max(nr+1,nc+1),a%irp,info)
|
||||
|
||||
endif
|
||||
|
||||
|
||||
@@ -2702,9 +2702,9 @@ subroutine psb_d_cp_csr_from_coo(a,b,info)
|
||||
|
||||
! Dirty trick: call move_alloc to have the new data allocated just once.
|
||||
call psb_safe_ab_cpy(b%ia,itemp,info)
|
||||
if (info /= psb_success_) call psb_safe_ab_cpy(b%ja,a%ja,info)
|
||||
if (info /= psb_success_) call psb_safe_ab_cpy(b%val,a%val,info)
|
||||
if (info /= psb_success_) call psb_realloc(max(nr+1,nc+1),a%irp,info)
|
||||
if (info == psb_success_) call psb_safe_ab_cpy(b%ja,a%ja,info)
|
||||
if (info == psb_success_) call psb_safe_ab_cpy(b%val,a%val,info)
|
||||
if (info == psb_success_) call psb_realloc(max(nr+1,nc+1),a%irp,info)
|
||||
|
||||
endif
|
||||
|
||||
|
||||
@@ -2702,9 +2702,9 @@ subroutine psb_s_cp_csr_from_coo(a,b,info)
|
||||
|
||||
! Dirty trick: call move_alloc to have the new data allocated just once.
|
||||
call psb_safe_ab_cpy(b%ia,itemp,info)
|
||||
if (info /= psb_success_) call psb_safe_ab_cpy(b%ja,a%ja,info)
|
||||
if (info /= psb_success_) call psb_safe_ab_cpy(b%val,a%val,info)
|
||||
if (info /= psb_success_) call psb_realloc(max(nr+1,nc+1),a%irp,info)
|
||||
if (info == psb_success_) call psb_safe_ab_cpy(b%ja,a%ja,info)
|
||||
if (info == psb_success_) call psb_safe_ab_cpy(b%val,a%val,info)
|
||||
if (info == psb_success_) call psb_realloc(max(nr+1,nc+1),a%irp,info)
|
||||
|
||||
endif
|
||||
|
||||
|
||||
@@ -2702,9 +2702,9 @@ subroutine psb_z_cp_csr_from_coo(a,b,info)
|
||||
|
||||
! Dirty trick: call move_alloc to have the new data allocated just once.
|
||||
call psb_safe_ab_cpy(b%ia,itemp,info)
|
||||
if (info /= psb_success_) call psb_safe_ab_cpy(b%ja,a%ja,info)
|
||||
if (info /= psb_success_) call psb_safe_ab_cpy(b%val,a%val,info)
|
||||
if (info /= psb_success_) call psb_realloc(max(nr+1,nc+1),a%irp,info)
|
||||
if (info == psb_success_) call psb_safe_ab_cpy(b%ja,a%ja,info)
|
||||
if (info == psb_success_) call psb_safe_ab_cpy(b%val,a%val,info)
|
||||
if (info == psb_success_) call psb_realloc(max(nr+1,nc+1),a%irp,info)
|
||||
|
||||
endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user