Problem about SDDE solver in differentialequation.jl

Basically, I’m running a SDDE solver.

tspan = (0, 50000); prob = SDDEProblem(f, g, u0, h, tspan, p; constant_lags = lag); sol = solve(prob, RKMil());

I want to get the corresponding tspan time point in “sol”.
But I found that the size of “sol” is different for every run, so I can’t get the corresponding time point by simply times “size(tspan)[2] / size(sol)[2]”.

It’s an adaptive solver on a stochastic equation so it can take a different number of steps each time. Do saveat=0.1 for example if you want to make it save at constant steps.

1 Like