parthenon icon indicating copy to clipboard operation
parthenon copied to clipboard

Particle RNG issue?

Open brryan opened this issue 1 year ago • 3 comments

@Yurlungur's excellent tracer particles plot from #830 shows repeating particle positions which I bet indicates an RNG issue in the underlying particle solver, maybe per-block or something.

brryan avatar Apr 18 '23 15:04 brryan

@brryan probably it's in pgen for the particle tracers example. I think the rng seed may actually hand-fixed.

Yurlungur avatar Apr 18 '23 16:04 Yurlungur

Ah yes you're right looks like each MPI rank gets its own seed. Well that's an easy fix (I can do this).

brryan avatar Apr 18 '23 17:04 brryan

I agree that RNG should be problem dependent. For example, in my (downstream) turbulence driver it was important that every rank has an identical seed (and rng sequence) and I had to dump its state to the restart outputs in order to get reproducible restarts.

pgrete avatar Apr 20 '23 09:04 pgrete