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

solve_bicgstab: cut use of s #3629

Merged

Conversation

eebasso
Copy link
Contributor

@eebasso eebasso commented Nov 14, 2023

Summary

The MF named s seems to be an unnecessary usage of memory as the residue r can fulfill its roles in the algorithm. This PR replaces s with r and LinComb with Saxpy as appropriate.

Additional background

This PR is part of a larger request to improve solve_bicgstab and solve_cg.

@eebasso eebasso changed the title solve_bicgstab: avoid use of MF s solve_bicgstab: cut use of s Nov 14, 2023
@eebasso eebasso changed the title solve_bicgstab: cut use of s solve_bicgstab: cut use of s Nov 14, 2023
@eebasso eebasso changed the title solve_bicgstab: cut use of s solve_bicgstab: cut use of s Nov 14, 2023
@eebasso eebasso marked this pull request as draft November 14, 2023 23:18
@eebasso eebasso marked this pull request as ready for review November 16, 2023 00:07
@WeiqunZhang WeiqunZhang merged commit 175b99d into AMReX-Codes:development Nov 17, 2023
69 checks passed
@eebasso eebasso deleted the solve_bicgstab-avoid-use-of-s branch November 17, 2023 23:40
guj pushed a commit to guj/amrex that referenced this pull request Dec 13, 2023
## Summary

The MF named `s` seems to be an unnecessary usage of memory as the
residue `r` can fulfill its roles in the algorithm. This PR replaces `s`
with `r` and `LinComb` with `Saxpy` as appropriate.

## Additional background

This PR is part of a larger request to improve `solve_bicgstab` and
`solve_cg`.
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.

2 participants