# Check progress of ode() execution

**URL:** <https://scilab.discourse.group/t/check-progress-of-ode-execution/643>\
**Category:** Modeling and simulation\
**Created:** [September 16, 2024, 10:00am UTC](https://scilab.discourse.group/t/check-progress-of-ode-execution/643 "2024-09-16T10:00:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jens](https://avatars.discourse-cdn.com/v4/letter/j/d2c977/32.png) [@Jens](https://scilab.discourse.group/u/Jens)\
**Post date:** [September 16, 2024, 10:00am UTC](https://scilab.discourse.group/t/check-progress-of-ode-execution/643/1 "2024-09-16T10:00:20Z")

</div>

If the execution of ode() lasts for hours it would be helpful to get an intermediate information about how far ode has come, e. g. by periodic output of t. How can I modify the derivative function to this purpose? Given is t=t0 : dt : tEnd.  
Regards Jens

---

<div class="post-metadata">

**Author:** ![mottelet](https://yyz2.discourse-cdn.com/free1/user_avatar/scilab.discourse.group/mottelet/32/13_2.png) [@mottelet](https://scilab.discourse.group/u/mottelet)\
**Post date:** [September 16, 2024, 11:36am UTC](https://scilab.discourse.group/t/check-progress-of-ode-execution/643/2 "2024-09-16T11:36:20Z")

</div>

Hello,

With ode(), you can’t. Use one of the Sundials solvers instead (cvode() or arkode()), as a callback can be triggered at each internal or user step ([Callback - Specifying a user callback](https://help.scilab.org/docs/2024.1.0/fr_FR/sundials_callback.html)).  
However, if ode() is too slow for your problem, maybe you are not selecting an adequate method. For example, if your problem is stiff, you should use an implicit method (ode(), “stiff” option, or cvode() “BDF” method, or any “DIRK\_n” method of arkode()).

S.

---

<div class="post-metadata">

**Author:** ![Jens](https://avatars.discourse-cdn.com/v4/letter/j/d2c977/32.png) [@Jens](https://scilab.discourse.group/u/Jens)\
**Post date:** [September 16, 2024, 11:53am UTC](https://scilab.discourse.group/t/check-progress-of-ode-execution/643/3 "2024-09-16T11:53:26Z")

</div>

Hello,  
Thanks! I’ll try.
