|
|
@ -2871,7 +2871,7 @@ subroutine psb_c_cp_csr_from_coo(a,b,info)
|
|
|
|
call move_alloc(tmp%ia,itemp)
|
|
|
|
call move_alloc(tmp%ia,itemp)
|
|
|
|
call move_alloc(tmp%ja,a%ja)
|
|
|
|
call move_alloc(tmp%ja,a%ja)
|
|
|
|
call move_alloc(tmp%val,a%val)
|
|
|
|
call move_alloc(tmp%val,a%val)
|
|
|
|
call psb_realloc(nr+1,a%irp,info)
|
|
|
|
call psb_realloc(max(nr+1,nc+1),a%irp,info)
|
|
|
|
call tmp%free()
|
|
|
|
call tmp%free()
|
|
|
|
|
|
|
|
|
|
|
|
else
|
|
|
|
else
|
|
|
@ -2889,8 +2889,8 @@ subroutine psb_c_cp_csr_from_coo(a,b,info)
|
|
|
|
call psb_safe_ab_cpy(b%ia,itemp,info)
|
|
|
|
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%ja,a%ja,info)
|
|
|
|
if (info == psb_success_) call psb_safe_ab_cpy(b%val,a%val,info)
|
|
|
|
if (info == psb_success_) call psb_safe_ab_cpy(b%val,a%val,info)
|
|
|
|
if (info == psb_success_) call psb_realloc(nr+1,a%irp,info)
|
|
|
|
if (info == psb_success_) call psb_realloc(max(nr+1,nc+1),a%irp,info)
|
|
|
|
|
|
|
|
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
|
|
a%irp(:) = 0
|
|
|
|
a%irp(:) = 0
|
|
|
@ -3040,7 +3040,7 @@ subroutine psb_c_mv_csr_from_coo(a,b,info)
|
|
|
|
call move_alloc(b%ia,itemp)
|
|
|
|
call move_alloc(b%ia,itemp)
|
|
|
|
call move_alloc(b%ja,a%ja)
|
|
|
|
call move_alloc(b%ja,a%ja)
|
|
|
|
call move_alloc(b%val,a%val)
|
|
|
|
call move_alloc(b%val,a%val)
|
|
|
|
call psb_realloc(nr+1,a%irp,info)
|
|
|
|
call psb_realloc(max(nr+1,nc+1),a%irp,info)
|
|
|
|
call b%free()
|
|
|
|
call b%free()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|