File tree Expand file tree Collapse file tree 2 files changed +26
-1
lines changed Expand file tree Collapse file tree 2 files changed +26
-1
lines changed Original file line number Diff line number Diff line change 1
1
julia 0.6.0
2
2
Parameters 0.5.0
3
- DiffEqBase 3.0 .0
3
+ DiffEqBase 3.8 .0
4
4
RecursiveArrayTools 0.13.0
5
5
DataStructures 0.4.6
6
6
Juno 0.2.5
Original file line number Diff line number Diff line change 332
332
@inline function DiffEqBase. get_du! (out,integrator:: SDEIntegrator )
333
333
@. out = (integrator. u - integrator. uprev) / integrator. dt
334
334
end
335
+
336
+ function DiffEqBase. set_t! (integrator:: SDEIntegrator , t:: Real )
337
+ if integrator. opts. save_everystep
338
+ error (" Integrator time cannot be reset unless it is initialized" ,
339
+ " with save_everystep=false" )
340
+ end
341
+ if ! isdtchangeable (integrator. alg)
342
+ reinit! (integrator, integrator. u;
343
+ t0 = t,
344
+ reset_dt = false ,
345
+ reinit_callbacks = false ,
346
+ reinit_cache = false )
347
+ else
348
+ integrator. t = t
349
+ end
350
+ end
351
+
352
+ function DiffEqBase. set_u! (integrator:: SDEIntegrator , u)
353
+ if integrator. opts. save_everystep
354
+ error (" Integrator state cannot be reset unless it is initialized" ,
355
+ " with save_everystep=false" )
356
+ end
357
+ integrator. u = u
358
+ u_modified! (integrator, true )
359
+ end
You can’t perform that action at this time.
0 commit comments