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 Dangling Ref in EB Init #5635

Merged
merged 1 commit into from
Feb 4, 2025
Merged

Conversation

ax3l
Copy link
Member

@ax3l ax3l commented Feb 4, 2025

Follow-up to #5209: My compiler says those locations would reference temporary objects that were destroyed at the end of the line. That seems to be the case indeed.

Copy instead to make the temporary a named and thus persistent variable.

Screenshot from 2025-02-03 16-59-22

Update: also saw a local crash from this while developing #5481

My compiler says those locations would reference temporary objects
that were destroyed at the end of the line. Copy instead.
@ax3l ax3l added bug Something isn't working component: boundary PML, embedded boundaries, et al. component: initialization Changes related to the initialization of the simulation labels Feb 4, 2025
@ax3l ax3l merged commit 93466dd into ECP-WarpX:development Feb 4, 2025
37 checks passed
@ax3l ax3l deleted the fix-init-eb-dangling branch February 4, 2025 05:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working component: boundary PML, embedded boundaries, et al. component: initialization Changes related to the initialization of the simulation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants