Skip to content

[WIP] Allow new levels on ParticleContainer restart #4424

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

Draft
wants to merge 13 commits into
base: development
Choose a base branch
from

Conversation

BenWibking
Copy link
Contributor

@BenWibking BenWibking commented Apr 19, 2025

Summary

This allows ParticleContainer->Restart() to work when amr.max_level is increased on restart.

Includes #4426.

Additional background

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

WeiqunZhang and others added 11 commits April 13, 2025 21:02
It's known that some versions of amrex::launch functions are not safe because they use
AMREX_GPU_MAX_THREADS as the launch bound. Although they have an assertion for the number
of threads per block, the unsafe amrex::launch functions are used in a few places
resulting in runtime failures. This PR fixes these unsafe launch functions by removing the
launch bound when we do not know the number of threads per block at compile time. We also
pass the number of threads per block as a template parameter so that it can be used as the
launch bound, when it's possible.
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.

2 participants