# Is there a way to specify the breakpoints in the time vector for SDEproblem?

**URL:** <https://discourse.julialang.org/t/is-there-a-way-to-specify-the-breakpoints-in-the-time-vector-for-sdeproblem/71387>\
**Category:** New to Julia\
**Tags:** question\
**Created:** [November 12, 2021, 3:11pm UTC](https://discourse.julialang.org/t/is-there-a-way-to-specify-the-breakpoints-in-the-time-vector-for-sdeproblem/71387 "2021-11-12T15:11:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rimi](https://avatars.discourse-cdn.com/v4/letter/r/eb9ed0/32.png) [@rimi](https://discourse.julialang.org/u/rimi)\
**Post date:** [November 12, 2021, 3:11pm UTC](https://discourse.julialang.org/t/is-there-a-way-to-specify-the-breakpoints-in-the-time-vector-for-sdeproblem/71387/1 "2021-11-12T15:11:29Z")

</div>

Hello,

I am very new to Julia so forgive me if this is obvious. I am trying to solve an SDE system and each time I run the iteration to solve it, the variables (say X and Y) are calculated for my tspan `(0, 200)`; the issue is that every time I run it I get different dimensions for the X and Y and t vectors. I want them to be the same (so i can take the values and average them later).  
Is there a way I can specify the breakpoints in the tspan code, so my X and Y are calculated only at these points:

```julia
tspan = (0.0,200.0)

```

---

<div class="post-metadata">

**Author:** ![ChrisRackauckas](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/chrisrackauckas/32/77_2.png) [@ChrisRackauckas](https://discourse.julialang.org/u/ChrisRackauckas)\
**Post date:** [November 12, 2021, 3:52pm UTC](https://discourse.julialang.org/t/is-there-a-way-to-specify-the-breakpoints-in-the-time-vector-for-sdeproblem/71387/2 "2021-11-12T15:52:29Z")

</div>

What do you need the “breakpoints” for? Is it to handle the saved solution? Then supply a `saveat` vector. Is it to force the solver to stop at specific points? Then use `tstops`. Is it to give information about discontinuities? Then it’s `d_discontinuities`. This is all handled through these arguments as the efficient way to do each of them.

For more details on the arguments of the ODE solver, see the Common Solver Options page, specifically the Output Control portion.

[https://diffeq.sciml.ai/stable/basics/common\_solver\_opts/#Output-Control](https://diffeq.sciml.ai/stable/basics/common_solver_opts/#Output-Control)

Also note that this is addressed in the first tutorial on solving ODEs, so you may want to review this section:

[https://diffeq.sciml.ai/stable/tutorials/ode\_example/#Step-2:-Solving-a-Problem](https://diffeq.sciml.ai/stable/tutorials/ode_example/#Step-2:-Solving-a-Problem)
