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

ParticleTile: More SoA Updates #3305

Merged
merged 1 commit into from
May 15, 2023

Conversation

ax3l
Copy link
Member

@ax3l ax3l commented May 9, 2023

Summary

More updates to ParticleTile and simplifications for pure SoA support.

Additional background

Isolated from #3290 and author credited to @AlexanderSinn.

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

@ax3l ax3l requested a review from atmyers May 9, 2023 05:51
@ax3l ax3l changed the title ParticleTile: More Updates ParticleTile: More SoA Updates May 9, 2023

template <typename T = ParticleType, typename std::enable_if<T::is_soa_particle, int>::type = 0>
bool empty () const { return m_soa_tile.empty(); }
bool empty () const { return size() == 0; }
Copy link
Member

Choose a reason for hiding this comment

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

The development version for empty also works, it was fixed after I made the original PR

Copy link
Member Author

Choose a reason for hiding this comment

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

True, but removing the SFINAE will improve compile time :)

@atmyers atmyers merged commit d448c17 into AMReX-Codes:development May 15, 2023
@ax3l ax3l deleted the pure-soa-pt-updates branch May 15, 2023 20:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants