Skip to content

Conversation

@atmyers
Copy link
Member

@atmyers atmyers commented Nov 21, 2025

This might fix #6390.

@atmyers atmyers changed the title [WIP] Delay building the current and field buffer masks until after the ba and dm are changed in regrid [WIP] Rebuild current and gather buffer masks during regrid Nov 21, 2025
@ax3l ax3l self-requested a review November 21, 2025 18:14
@ax3l ax3l added bug Something isn't working component: mesh refinement (A)MR bug: affects latest release Bug also exists in latest release version component: load balancing Load balancing strategies, optimization etc. labels Nov 21, 2025
@atmyers
Copy link
Member Author

atmyers commented Nov 21, 2025

@PhysicsDan - could you test this PR on your problem and see if it fixes the issue you're having with load balancing and mesh refinement?

@PhysicsDan
Copy link
Contributor

Hi, thanks for the quick fix! I ran my test simulation and it didn't crash. Results looks the same with/without load balancing. Thanks for the help

@atmyers atmyers changed the title [WIP] Rebuild current and gather buffer masks during regrid Rebuild current and gather buffer masks during regrid Nov 24, 2025
@ax3l ax3l self-assigned this Nov 24, 2025
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.

Andrew, thank you very much for fixing this!

Dan, thank you for the detailed report, tests/debugging and reproducer!

@ax3l ax3l merged commit 553118d into BLAST-WarpX:development Nov 24, 2025
50 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug: affects latest release Bug also exists in latest release version bug Something isn't working component: load balancing Load balancing strategies, optimization etc. component: mesh refinement (A)MR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Simulation crashes when using load balancing with AMR

3 participants