Fixed dot name for complex variables

randomized
Fabio Durastante 1 year ago
parent 01c6c2e9f7
commit 9da5939db0

@ -2796,7 +2796,7 @@ contains
class(psb_c_base_vect_type), intent(inout) :: y
integer(psb_ipk_), intent(in) :: n
complex(psb_spk_), allocatable :: res(:)
complex(psb_spk_), external :: cdot
complex(psb_spk_), external :: cdotc
integer(psb_ipk_) :: j,nc
if (x%is_dev()) call x%sync()
@ -2806,7 +2806,7 @@ contains
nc = psb_size(x%v,2_psb_ipk_)
allocate(res(nc))
do j=1,nc
res(j) = cdot(n,x%v(:,j),1,y%v,1)
res(j) = cdotc(n,x%v(:,j),1,y%v,1)
end do
class default
res = y%dot(n,x%v)

@ -2796,7 +2796,7 @@ contains
class(psb_z_base_vect_type), intent(inout) :: y
integer(psb_ipk_), intent(in) :: n
complex(psb_dpk_), allocatable :: res(:)
complex(psb_dpk_), external :: zdot
complex(psb_dpk_), external :: zdotc
integer(psb_ipk_) :: j,nc
if (x%is_dev()) call x%sync()
@ -2806,7 +2806,7 @@ contains
nc = psb_size(x%v,2_psb_ipk_)
allocate(res(nc))
do j=1,nc
res(j) = zdot(n,x%v(:,j),1,y%v,1)
res(j) = zdotc(n,x%v(:,j),1,y%v,1)
end do
class default
res = y%dot(n,x%v)

Loading…
Cancel
Save