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

Swarm comm debug fix #1217

Merged
merged 9 commits into from
Dec 19, 2024
Merged

Swarm comm debug fix #1217

merged 9 commits into from
Dec 19, 2024

Conversation

brryan
Copy link
Collaborator

@brryan brryan commented Dec 18, 2024

PR Summary

@AstroBarker noticed his downstream tracers code was crashing in Debug mode. Turns out the particles tracers example also crashes in Debug mode. This was due to accessing neighbor buffer indices even for particles that shouldn't be getting sent anywhere because they're currently in the active meshblock (and so their neighbor buffer index is -1). Simple fix.

PR Checklist

  • Code passes cpplint
  • New features are documented.
  • Adds a test for any bugs fixed. Adds tests for new features.
  • Code is formatted
  • Changes are summarized in CHANGELOG.md
  • Change is breaking (API, behavior, ...)
    • Change is additionally added to CHANGELOG.md in the breaking section
    • PR is marked as breaking
    • Short summary API changes at the top of the PR (plus optionally with an automated update/fix script)
  • CI has been triggered on Darwin for performance regression tests.
  • Docs build
  • (@lanl.gov employees) Update copyright on changed files

Copy link
Collaborator

@Yurlungur Yurlungur left a comment

Choose a reason for hiding this comment

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

Thanks for the quick fix! This was a blocker in Phoebus.

src/interface/swarm_comms.cpp Outdated Show resolved Hide resolved
@AstroBarker
Copy link
Collaborator

Thanks for the quick find! This seems to have done the trick.

@Yurlungur Yurlungur enabled auto-merge December 18, 2024 21:30
@Yurlungur Yurlungur merged commit d65f3e6 into develop Dec 19, 2024
35 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