|
|
@ -2657,6 +2657,7 @@ end subroutine psb_c_mv_csr_to_fmt
|
|
|
|
subroutine psb_c_cp_csr_to_fmt(a,b,info)
|
|
|
|
subroutine psb_c_cp_csr_to_fmt(a,b,info)
|
|
|
|
use psb_const_mod
|
|
|
|
use psb_const_mod
|
|
|
|
use psb_c_base_mat_mod
|
|
|
|
use psb_c_base_mat_mod
|
|
|
|
|
|
|
|
use psb_realloc_mod
|
|
|
|
use psb_c_csr_mat_mod, psb_protect_name => psb_c_cp_csr_to_fmt
|
|
|
|
use psb_c_csr_mat_mod, psb_protect_name => psb_c_cp_csr_to_fmt
|
|
|
|
implicit none
|
|
|
|
implicit none
|
|
|
|
|
|
|
|
|
|
|
@ -2681,9 +2682,9 @@ subroutine psb_c_cp_csr_to_fmt(a,b,info)
|
|
|
|
|
|
|
|
|
|
|
|
type is (psb_c_csr_sparse_mat)
|
|
|
|
type is (psb_c_csr_sparse_mat)
|
|
|
|
call b%psb_c_base_sparse_mat%cp_from(a%psb_c_base_sparse_mat)
|
|
|
|
call b%psb_c_base_sparse_mat%cp_from(a%psb_c_base_sparse_mat)
|
|
|
|
b%irp = a%irp
|
|
|
|
call psb_safe_cpy( a%irp, b%irp , info)
|
|
|
|
b%ja = a%ja
|
|
|
|
call psb_safe_cpy( a%ja , b%ja , info)
|
|
|
|
b%val = a%val
|
|
|
|
call psb_safe_cpy( a%val, b%val , info)
|
|
|
|
|
|
|
|
|
|
|
|
class default
|
|
|
|
class default
|
|
|
|
call a%cp_to_coo(tmp,info)
|
|
|
|
call a%cp_to_coo(tmp,info)
|
|
|
@ -2736,6 +2737,7 @@ end subroutine psb_c_mv_csr_from_fmt
|
|
|
|
subroutine psb_c_cp_csr_from_fmt(a,b,info)
|
|
|
|
subroutine psb_c_cp_csr_from_fmt(a,b,info)
|
|
|
|
use psb_const_mod
|
|
|
|
use psb_const_mod
|
|
|
|
use psb_c_base_mat_mod
|
|
|
|
use psb_c_base_mat_mod
|
|
|
|
|
|
|
|
use psb_realloc_mod
|
|
|
|
use psb_c_csr_mat_mod, psb_protect_name => psb_c_cp_csr_from_fmt
|
|
|
|
use psb_c_csr_mat_mod, psb_protect_name => psb_c_cp_csr_from_fmt
|
|
|
|
implicit none
|
|
|
|
implicit none
|
|
|
|
|
|
|
|
|
|
|
@ -2759,9 +2761,9 @@ subroutine psb_c_cp_csr_from_fmt(a,b,info)
|
|
|
|
|
|
|
|
|
|
|
|
type is (psb_c_csr_sparse_mat)
|
|
|
|
type is (psb_c_csr_sparse_mat)
|
|
|
|
call a%psb_c_base_sparse_mat%cp_from(b%psb_c_base_sparse_mat)
|
|
|
|
call a%psb_c_base_sparse_mat%cp_from(b%psb_c_base_sparse_mat)
|
|
|
|
a%irp = b%irp
|
|
|
|
call psb_safe_cpy( b%irp, a%irp , info)
|
|
|
|
a%ja = b%ja
|
|
|
|
call psb_safe_cpy( b%ja , a%ja , info)
|
|
|
|
a%val = b%val
|
|
|
|
call psb_safe_cpy( b%val, a%val , info)
|
|
|
|
|
|
|
|
|
|
|
|
class default
|
|
|
|
class default
|
|
|
|
call b%cp_to_coo(tmp,info)
|
|
|
|
call b%cp_to_coo(tmp,info)
|
|
|
@ -2772,6 +2774,7 @@ end subroutine psb_c_cp_csr_from_fmt
|
|
|
|
|
|
|
|
|
|
|
|
subroutine psb_c_csr_cp_from(a,b)
|
|
|
|
subroutine psb_c_csr_cp_from(a,b)
|
|
|
|
use psb_error_mod
|
|
|
|
use psb_error_mod
|
|
|
|
|
|
|
|
use psb_realloc_mod
|
|
|
|
use psb_c_csr_mat_mod, psb_protect_name => psb_c_csr_cp_from
|
|
|
|
use psb_c_csr_mat_mod, psb_protect_name => psb_c_csr_cp_from
|
|
|
|
implicit none
|
|
|
|
implicit none
|
|
|
|
|
|
|
|
|
|
|
@ -2789,9 +2792,9 @@ subroutine psb_c_csr_cp_from(a,b)
|
|
|
|
|
|
|
|
|
|
|
|
call a%allocate(b%get_nrows(),b%get_ncols(),b%get_nzeros())
|
|
|
|
call a%allocate(b%get_nrows(),b%get_ncols(),b%get_nzeros())
|
|
|
|
call a%psb_c_base_sparse_mat%cp_from(b%psb_c_base_sparse_mat)
|
|
|
|
call a%psb_c_base_sparse_mat%cp_from(b%psb_c_base_sparse_mat)
|
|
|
|
a%irp = b%irp
|
|
|
|
call psb_safe_cpy( b%irp, a%irp , info)
|
|
|
|
a%ja = b%ja
|
|
|
|
call psb_safe_cpy( b%ja , a%ja , info)
|
|
|
|
a%val = b%val
|
|
|
|
call psb_safe_cpy( b%val, a%val , info)
|
|
|
|
|
|
|
|
|
|
|
|
if (info /= psb_success_) goto 9999
|
|
|
|
if (info /= psb_success_) goto 9999
|
|
|
|
call psb_erractionrestore(err_act)
|
|
|
|
call psb_erractionrestore(err_act)
|
|
|
|