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

[misc] Ensure succeeded variable is properly initialized in matrix-free solvers #8484

Merged
merged 1 commit into from
Jun 23, 2024

Conversation

liblaf
Copy link
Contributor

@liblaf liblaf commented Mar 11, 2024

The succeeded variable was not properly initialized in the MatrixFreeCG and MatrixFreeBICGSTAB functions, leading to potential issues with the convergence check. By initializing the succeeded variable at the beginning of the solve function, we ensure that the variable is correctly set and returned at the end of the function, improving the reliability of the solvers.

Issue: #

Brief Summary

copilot:summary

Walkthrough

copilot:walkthrough

Copy link

netlify bot commented Mar 11, 2024

Deploy Preview for docsite-preview ready!

Name Link
🔨 Latest commit 02d7ba2
🔍 Latest deploy log https://app.netlify.com/sites/docsite-preview/deploys/66775f59a702ae0009d86bb8
😎 Deploy Preview https://deploy-preview-8484--docsite-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@liblaf liblaf changed the title [bug] Ensure succeeded variable is properly initialized in matrix-free solvers [linalg] Ensure succeeded variable is properly initialized in matrix-free solvers Mar 11, 2024
@bobcao3
Copy link
Collaborator

bobcao3 commented Jun 22, 2024

/rebase

…ree solvers

The `succeeded` variable was not properly initialized in the `MatrixFreeCG` and `MatrixFreeBICGSTAB` functions, leading to potential issues with the convergence check. By initializing the `succeeded` variable at the beginning of the `solve` function, we ensure that the variable is correctly set and returned at the end of the function, improving the reliability of the solvers.
@yuanming-hu yuanming-hu changed the title [linalg] Ensure succeeded variable is properly initialized in matrix-free solvers [misc] Ensure succeeded variable is properly initialized in matrix-free solvers Jun 23, 2024
Copy link
Member

@yuanming-hu yuanming-hu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! LGTM.

@bobcao3 bobcao3 merged commit 55d8e36 into taichi-dev:master Jun 23, 2024
27 of 28 checks passed
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.

3 participants