File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -247,16 +247,16 @@ function init(
247
247
end
248
248
else
249
249
W = prob. noise
250
- if W. t[ end ] != t
251
- if W. reset
250
+ if W. reset
251
+ if W. t[ end ] != t
252
252
reinit! (W,t)
253
- # Reseed
254
- if typeof (W) <: NoiseProcess && W. reseed
255
- srand (W. rng,seed)
256
- end
257
- else
258
- 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" )
259
253
end
254
+ # Reseed
255
+ if typeof (W) <: NoiseProcess && W. reseed
256
+ srand (W. rng,seed)
257
+ end
258
+ elseif W. t[end ] != t
259
+ 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" )
260
260
end
261
261
end
262
262
You can’t perform that action at this time.
0 commit comments