|
|
@ -461,6 +461,32 @@ contains
|
|
|
|
|
|
|
|
|
|
|
|
end function psb_c_dgeamax
|
|
|
|
end function psb_c_dgeamax
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function psb_c_dgemin(xh,cdh) bind(c) result(res)
|
|
|
|
|
|
|
|
implicit none
|
|
|
|
|
|
|
|
real(c_double) :: res
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
type(psb_c_dvector) :: xh
|
|
|
|
|
|
|
|
type(psb_c_descriptor) :: cdh
|
|
|
|
|
|
|
|
type(psb_desc_type), pointer :: descp
|
|
|
|
|
|
|
|
type(psb_d_vect_type), pointer :: xp
|
|
|
|
|
|
|
|
integer(psb_c_ipk_) :: info
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
res = -1.0
|
|
|
|
|
|
|
|
if (c_associated(cdh%item)) then
|
|
|
|
|
|
|
|
call c_f_pointer(cdh%item,descp)
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
return
|
|
|
|
|
|
|
|
end if
|
|
|
|
|
|
|
|
if (c_associated(xh%item)) then
|
|
|
|
|
|
|
|
call c_f_pointer(xh%item,xp)
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
return
|
|
|
|
|
|
|
|
end if
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
res = psb_gemin(xp,descp,info)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
end function psb_c_dgemin
|
|
|
|
|
|
|
|
|
|
|
|
function psb_c_dgeasum(xh,cdh) bind(c) result(res)
|
|
|
|
function psb_c_dgeasum(xh,cdh) bind(c) result(res)
|
|
|
|
implicit none
|
|
|
|
implicit none
|
|
|
|
real(c_double) :: res
|
|
|
|
real(c_double) :: res
|
|
|
|