Closed rcalxrc08 closed 3 years ago
Wow, I think I missed this one. Sorry!
There are duplicate values for the left and right continuous values at the point of a jump discontinuity. So each jump time will be doubled. Since the jumps are at random times, that leads to the non-uniform times since dt
will decrease to hit the jump times exactly.
I do see a slight issue here though. The first time shouldn't be doubled. This is because the callback initialization for the jump is hitting the code for the right-left discontinuity handling in saving, and then causing a second save. That should get fixed.
This code no longer runs, but the doubling of the initial value should be closed by https://github.com/SciML/DiffEqJump.jl/pull/165
As Chris said, the nonuniform times are because the jump times are saved too. We can reopen if there are still issues when using EnsembleProblem
s.
I am solving a Jump Diffusion SDE with the following code:
When I look into the elements of the paths of the solution I get:
The problem is not only the repetitions of the elements (for example the initial time is repeated twice) but also the time discretization step that is not uniform.
The problem shows up also if I don't put the flag on the parallel type
parallel_type=:threads
, but I don't know which is the default argument for such flag.