Skip to content

[WIP] Use local redistribute when possible even with mesh refinement. - #7090

Open
atmyers wants to merge 12 commits into
BLAST-WarpX:developmentfrom
atmyers:local_redistribute_MR
Open

[WIP] Use local redistribute when possible even with mesh refinement.#7090
atmyers wants to merge 12 commits into
BLAST-WarpX:developmentfrom
atmyers:local_redistribute_MR

Conversation

@atmyers

@atmyers atmyers commented Jul 21, 2026

Copy link
Copy Markdown
Member

This supersedes #7044.

Comment thread Source/Particles/MultiParticleContainer.cpp Outdated
@atmyers

atmyers commented Jul 24, 2026

Copy link
Copy Markdown
Member Author

Note, I am setting this to use my AMReX branch here for testing. Do not merge as is.

@atmyers atmyers changed the title Use local redistribute when possible even with mesh refinement. [WIP] Use local redistribute when possible even with mesh refinement. Jul 24, 2026
Comment thread Source/Evolve/WarpXEvolve.cpp Outdated
// is a physical upper bound on the number of cells crossed per direction.
amrex::RealVect max_distance_relative_to_grid;
for (int d = 0; d < AMREX_SPACEDIM; ++d) {
max_distance_relative_to_grid[d] = PhysConst::c * dt[0] / dx[d];

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

The tests with sub-cycling still fail. Note that the above computes the number of cells moved on the coarse level, which is too small for particles in the fine patch. The safest thing to do is revert to the global Redistribute when sub-cycling is on.

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