Open TorkelE opened 3 years ago
If it helps in debugging this, the problem seems to go away if one doesn't use prob_func
.
@TorkelE this seems to fix it for me, does it work for you?
ejprob = EnsembleProblem(jprob,prob_func=(p,i,r)->remake(p), safetycopy=false)
Looks like the problem is JumpProblem
s shouldn't make a copy of the problem unless using threads to get a continual sequence of random numbers.
I think this should be fixed by https://github.com/SciML/SciMLBase.jl/pull/72, but I’ll leave this open till that propagates through the ecosystem.
Sounds good, in the meantime
ejprob = EnsembleProblem(jprob,prob_func=(p,i,r)->remake(p), safetycopy=false)
also worked
Here's a minimal sample. I make a similar
EnsembleProblem
from both and anJumpProblem
and anSDEProblem
. When I solve them the SDE solutions turn out different, but the Jump ones are all identical.This is the output of
Pkg.status()