From aa09fbd329bbde5a93a226286859ef6ef6b4a605 Mon Sep 17 00:00:00 2001 From: nbeams <246972+nbeams@users.noreply.github.com> Date: Wed, 11 Sep 2024 15:22:49 +0000 Subject: [PATCH] GMRES: fix conj use in MGS dot product --- core/solver/gmres.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/solver/gmres.cpp b/core/solver/gmres.cpp index e47714b2186..e066fc696a1 100644 --- a/core/solver/gmres.cpp +++ b/core/solver/gmres.cpp @@ -164,8 +164,8 @@ void orthogonalize_mgs(matrix::Dense* hessenberg_iter, krylov_bases, dim<2>{num_rows, num_rhs}, span{local_num_rows * i, local_num_rows * (i + 1)}, span{0, num_rhs}); - next_krylov->compute_conj_dot(krylov_basis, hessenberg_entry, - reduction_tmp); + krylov_basis->compute_conj_dot(next_krylov, hessenberg_entry, + reduction_tmp); next_krylov->sub_scaled(hessenberg_entry, krylov_basis); } }