Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Zero-ed initial guess to preconditioner for CG solver improves performance compared to using previous z #2655

Closed
elise-palethorpe opened this issue Jul 13, 2022 · 1 comment · Fixed by #2654
Labels
numerics 🧮 So things don't blow up and boil the lobsters alive question 💭 No such thing as a stupid question

Comments

@elise-palethorpe
Copy link
Collaborator

I was having a play with preconditioning the CG solver with multigrid and found that I get considerably different results depending on whether I zero the initial guess to the preconditioner (see here). When the initial guess is all 0s the precondition! method is called ~1/3 of the number to times it is called if the given initial guess is used. My understanding is that the initial guess is not specified by the algorithm in fig 2.5 here so am not sure whether this is a "correct" answer here but would like to know why the zeroing gives such a different result. Could it be because solving for a residual equation the answer should be close to all 0s so it is actually a good initial guess?

cc @navidcy

@navidcy navidcy added question 💭 No such thing as a stupid question numerics 🧮 So things don't blow up and boil the lobsters alive labels Jul 13, 2022
@navidcy
Copy link
Collaborator

navidcy commented Sep 7, 2022

Seems like zeros is a better initial guess and thus #2654 does that.

@navidcy navidcy changed the title Zeroed initial guess to preconditioner for CG solver improves performance Zero-ed initial guess to preconditioner for CG solver improves performance compared to using previous z Sep 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
numerics 🧮 So things don't blow up and boil the lobsters alive question 💭 No such thing as a stupid question
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants