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 a memory leak in Open BC solver #4290

Merged
merged 1 commit into from
Jan 9, 2025

Conversation

WeiqunZhang
Copy link
Member

We forgot a test to make sure We only build the plans once.

X-Ref:

We forgot a test to make sure We only build the plans once.
@ax3l
Copy link
Member

ax3l commented Jan 9, 2025

I saw there is also a defined2 variable for another plan, does related code need to be updated/guarded as well?

Copy link
Member

@ax3l ax3l left a comment

Choose a reason for hiding this comment

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

Tested, fixes the leaks we saw in ImpactX MPI runs 🎉

@ax3l ax3l self-assigned this Jan 9, 2025
@ax3l ax3l merged commit 041f225 into AMReX-Codes:development Jan 9, 2025
75 checks passed
@ax3l ax3l mentioned this pull request Jan 9, 2025
1 task
@WeiqunZhang WeiqunZhang deleted the openbc_memleak branch January 9, 2025 20:54
@WeiqunZhang
Copy link
Member Author

I saw there is also a defined2 variable for another plan, does related code need to be updated/guarded as well?

No. The bug is limited to the open bc solver. The other plan is used for other types of solvers with mixed boundaries.

@ax3l
Copy link
Member

ax3l commented Jan 9, 2025

Ok perfect. Thank you again! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants