Skip to content

How to ensure that each particle's ID is unique during parallel execution? #4860

Answered by ax3l
1120805582 asked this question in Data Analysis
Discussion options

You must be logged in to vote

Hi @1120805582, can you clarify how you are plotting exactly? (Python snippet?)
Do you plot this while running via Python WarpX (PICMI) or from output data (plotfiles? openPMD?)?

By default, our 64bit particle indices are unique and not reassigned over simulation lifetime, including parallel execution.

We do this by varying the high bits of each MPI rank for the ids we generate, which we call the cpu part. We then combine this with lower bits, which we call the MPI-local id part in AMReX and which is not unique in itself. Combined, this makes the parallelly unique idcpu, which is 64bit.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@1120805582
Comment options

Answer selected by 1120805582
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
2 participants