henry2004y / TestParticle.jl

Test particle tracing in electromagnetic field
https://henry2004y.github.io/TestParticle.jl/dev/
MIT License
15 stars 3 forks source link

Multithreading EnsembleProblem race condition? #147

Closed henry2004y closed 7 months ago

henry2004y commented 7 months ago

Based on my current understanding, satefycopy=false takes effects on prob, which includes u0 and param. We want this to avoid duplication of param, but it is actually a problem for setting u0. If two threads change u0 at the same time, it may cause issues. Related to #55