Skip to content
Discussion options

You must be logged in to vote

Looks like the answer to your last question might be it does not print anything because the Particle iterator you use is on level 0, not level 1. AI is usually very good at catching these bugs. Here is what it suggests.


Summary of Recommended Changes

    Ghost Cells: Define mf_f with 1 ghost cell.
    Consistency: Define geom_f using amrex::refine(geom_c, 2).
    Output: Iterate over level 1 in your final print loop to see the particles that were moved there by Redistribute().

Replies: 1 comment 9 replies

Comment options

You must be logged in to vote
9 replies
@WeiqunZhang
Comment options

@iljah
Comment options

@WeiqunZhang
Comment options

@WeiqunZhang
Comment options

Answer selected by iljah
@WeiqunZhang
Comment options

@WeiqunZhang
Comment options

@iljah
Comment options

@iljah
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants