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

MakeParticle SoA: Const Only #3281

Closed
wants to merge 2 commits into from

Conversation

ax3l
Copy link
Member

@ax3l ax3l commented Apr 27, 2023

Summary

Since we return particles by value, make_particle for SoA should better only return the const variant.

Additional background

Related to, but does not yet fix #3278 (comment)

Follow-up to #2878.

Checklist

The proposed changes:

  • fix a bug or incorrect behavior in AMReX
  • add new capabilities to AMReX
  • changes answers in the test suite to more than roundoff level
  • are likely to significantly affect the results of downstream AMReX users
  • include documentation in the code and/or rst files, if appropriate

Since we return particles by value, `make_particle` for SoA
should better only return the const variant.
@ax3l ax3l requested a review from atmyers April 27, 2023 02:38
@ax3l ax3l mentioned this pull request Apr 27, 2023
5 tasks
@ax3l ax3l added bug and removed enhancement labels Apr 27, 2023
@atmyers
Copy link
Member

atmyers commented Apr 27, 2023

This seems to have issues, but I believe with #3283 and #3284 we should be good.

@ax3l ax3l closed this Apr 27, 2023
@ax3l ax3l deleted the fix-soa-makeparticle branch April 27, 2023 19:14
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.

None yet

2 participants