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

fix: resolve sor bug #413

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

fix: resolve sor bug #413

wants to merge 1 commit into from

Conversation

Sushmey
Copy link

@Sushmey Sushmey commented Jun 1, 2024

fixes #410

Right now, when you run the SOR function, it internally uses a Gauss-Seidel iteration to calculate the next iteration and then incorporates the relaxation factor on the whole matrix. It doesn't include the relaxation factor while calculating the next x_i while in the Gauss-Seidel iteration. This results in incorrect values.

I've tried to resolve this by adding a new function in relaxation.h and adding an extra parameter, omega in the gauss_seidel function which has a default value of 1.0 and calls the sor variant of Gauss-Seidel only if omega is not 1.0

I hope I've followed all the necessary contribution guidelines. Please let me know if I haven't so I can fix it.

fixes pyamg#410

SOR right now fails to include previous x_i values with the relaxation factor. This commit fixes that.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SOR bug
1 participant