# Return solution at RK4 stages

**URL:** <https://discourse.julialang.org/t/return-solution-at-rk4-stages/64219>\
**Category:** New to Julia\
**Tags:** diffeq\
**Created:** [July 7, 2021, 3:01pm UTC](https://discourse.julialang.org/t/return-solution-at-rk4-stages/64219 "2021-07-07T15:01:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![AhmedAlreweny](https://avatars.discourse-cdn.com/v4/letter/a/db5fbb/32.png) [@AhmedAlreweny](https://discourse.julialang.org/u/AhmedAlreweny)\
**Post date:** [July 7, 2021, 3:01pm UTC](https://discourse.julialang.org/t/return-solution-at-rk4-stages/64219/1 "2021-07-07T15:01:15Z")

</div>

Hi,  
Is there a way to access the solution at RK stages if I solve an ODE using the following line:

```julia
prob = ODEProblem(lorenz,u0,tspan)                
sol = solve(prob, RK4(), dt=Δt,adaptive = false) 

```
