Skip to content

Commit

Permalink
Fixed bug in two_sided_eigs.
Browse files Browse the repository at this point in the history
  • Loading branch information
loiseaujc committed Nov 17, 2023
1 parent 3418b19 commit 87651b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/IterativeSolvers.f90
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ subroutine two_sided_eigs(A, V, W, rvecs, lvecs, eigvals, residuals, info, nev,
end do lanczos

call sort_index(residuals, indices, reverse=.false.)
eigvals = eigvals(indices) ; rvecs = rvecs(:, indices) ; lvecs = lvecs(indices, :)
eigvals = eigvals(indices) ; rvecs = rvecs(:, indices) ; lvecs = lvecs(:, indices)
return
end subroutine two_sided_eigs

Expand Down

0 comments on commit 87651b9

Please sign in to comment.