We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6b63618 commit b9ea181Copy full SHA for b9ea181
src/solve.jl
@@ -413,15 +413,15 @@ function DiffEqBase.__init(
413
end
414
elseif typeof(prob) <: DiffEqBase.AbstractRODEProblem
415
W = prob.noise
416
- if hasfield(typeof(W),:t) && W.reset
417
- if W.t[end] != t
418
- reinit!(W,t, t0=t)
+ if W.reset
+ if W.curt != t
+ reinit!(W,t,t0=t)
419
420
# Reseed
421
if typeof(W) <: NoiseProcess && W.reseed
422
Random.seed!(W.rng,_seed)
423
424
- elseif hasfield(typeof(W),:t) && W.t[end] != t
+ elseif W.curt != t
425
error("Starting time in the noise process is not the starting time of the simulation. The noise process should be re-initialized for repeated use")
426
427
else # Only a jump problem
0 commit comments