Skip to content

Fix injected particles again#391

Merged
JamesMcClung merged 2 commits intopsc-code:mainfrom
JamesMcClung:pr/fix-inj-prt-pos
Mar 25, 2026
Merged

Fix injected particles again#391
JamesMcClung merged 2 commits intopsc-code:mainfrom
JamesMcClung:pr/fix-inj-prt-pos

Conversation

@JamesMcClung
Copy link
Collaborator

@JamesMcClung JamesMcClung commented Mar 25, 2026

Global vs patch-local positions struck again. Actually, it was the same strike as in #379, but now fixed (more) fully.

Also sneak in a change to the setup_particles random_offsets warning: only warn on proc 0.

this was "fixed" previously, but that fix failed to consider that the
prt position was used for getting the final/initial indices, which must
be patch-local
@JamesMcClung JamesMcClung merged commit 1ab07cb into psc-code:main Mar 25, 2026
2 checks passed
@JamesMcClung JamesMcClung deleted the pr/fix-inj-prt-pos branch March 25, 2026 21:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant