Skip to content

Commit 6590506

Browse files
committed
bugfix indexing
1 parent 79be1e5 commit 6590506

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/stdlib_sparse_spmv.fypp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,7 @@ contains
529529
integer :: j, k
530530
do j = 1, n
531531
do k = 1, ${chunk}$
532-
y(col(:,j)) = y(col(:,j)) + alpha_ * a(:,j) * x(:)
532+
y(col(k,j)) = y(col(k,j)) + alpha_ * a(k,j) * x(k)
533533
end do
534534
end do
535535
end subroutine

0 commit comments

Comments
 (0)