|
|
|
@ -1057,4 +1057,38 @@ contains
|
|
|
|
|
res = psb_success_
|
|
|
|
|
end function
|
|
|
|
|
|
|
|
|
|
function psb_c_ccopy_mat(ah,bh,cdh) bind(c) result(res)
|
|
|
|
|
implicit none
|
|
|
|
|
integer(psb_c_ipk_) :: res
|
|
|
|
|
|
|
|
|
|
type(psb_c_cspmat) :: ah,bh
|
|
|
|
|
type(psb_c_descriptor) :: cdh
|
|
|
|
|
|
|
|
|
|
type(psb_desc_type), pointer :: descp
|
|
|
|
|
type(psb_cspmat_type), pointer :: ap,bp
|
|
|
|
|
integer(psb_c_ipk_) :: info
|
|
|
|
|
|
|
|
|
|
res = -1
|
|
|
|
|
|
|
|
|
|
if (c_associated(cdh%item)) then
|
|
|
|
|
call c_f_pointer(cdh%item,descp)
|
|
|
|
|
else
|
|
|
|
|
return
|
|
|
|
|
end if
|
|
|
|
|
if (c_associated(ah%item)) then
|
|
|
|
|
call c_f_pointer(ah%item,ap)
|
|
|
|
|
else
|
|
|
|
|
return
|
|
|
|
|
end if
|
|
|
|
|
if (c_associated(bh%item)) then
|
|
|
|
|
call c_f_pointer(bh%item,bp)
|
|
|
|
|
else
|
|
|
|
|
return
|
|
|
|
|
end if
|
|
|
|
|
|
|
|
|
|
call ap%clone(bp,info)
|
|
|
|
|
|
|
|
|
|
res = info
|
|
|
|
|
end function
|
|
|
|
|
|
|
|
|
|
end module psb_c_psblas_cbind_mod
|
|
|
|
|