|
|
@ -1226,7 +1226,7 @@ contains
|
|
|
|
z%v(i) = z%v(i) + y(i)*x(i)
|
|
|
|
z%v(i) = z%v(i) + y(i)*x(i)
|
|
|
|
end do
|
|
|
|
end do
|
|
|
|
else
|
|
|
|
else
|
|
|
|
!$omp parallel do private(i)
|
|
|
|
!$omp parallel do private(i) shared(beta)
|
|
|
|
do i=1, n
|
|
|
|
do i=1, n
|
|
|
|
z%v(i) = beta*z%v(i) + y(i)*x(i)
|
|
|
|
z%v(i) = beta*z%v(i) + y(i)*x(i)
|
|
|
|
end do
|
|
|
|
end do
|
|
|
@ -1255,9 +1255,9 @@ contains
|
|
|
|
z%v(i) = alpha*y(i)*x(i)
|
|
|
|
z%v(i) = alpha*y(i)*x(i)
|
|
|
|
end do
|
|
|
|
end do
|
|
|
|
else if (beta == cone) then
|
|
|
|
else if (beta == cone) then
|
|
|
|
!$omp parallel do private(i) shared(alpha)
|
|
|
|
!$omp parallel do private(i)
|
|
|
|
do i=1, n
|
|
|
|
do i=1, n
|
|
|
|
z%v(i) = z%v(i) + alpha*y(i)*x(i)
|
|
|
|
z%v(i) = z%v(i) + alpha*y(i)*x(i) shared(alpha)
|
|
|
|
end do
|
|
|
|
end do
|
|
|
|
else
|
|
|
|
else
|
|
|
|
!$omp parallel do private(i) shared(alpha, beta)
|
|
|
|
!$omp parallel do private(i) shared(alpha, beta)
|
|
|
|