Skip to content

Solving a complex sparse linear system #1689

Answered by nbeams
marco-butz asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @marco-butz, I noticed you are using Ginkgo 1.8.0. We recently fixed a bug for complex numbers in GMRES (#1678). If I solve your problem with a Ginkgo version older than that PR, I see output similar to what you posted:

1.52026e-05
Number of iterations 10000
Convergence status false

But if I add the commit from the PR:

1.22981e-19
Number of iterations 2974
Convergence status true

You can cherry-pick that one commit (aa09fbd), or make the change manually -- it's just one line of code. Hopefully that will fix your problem. You could also update to the latest develop branch of Ginkgo and get other improvements, too, but Ginkgo is planning a 1.9.0 release soon, if you want to wait for that.

Replies: 2 comments 8 replies

Comment options

You must be logged in to vote
8 replies
@marco-butz
Comment options

@marco-butz
Comment options

@marco-butz
Comment options

@nbeams
Comment options

Answer selected by marco-butz
@yhmtsai
Comment options

@marco-butz
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants