Skip to content

Commit

Permalink
add new option in the docs
Browse files Browse the repository at this point in the history
  • Loading branch information
jhdark committed Jan 13, 2025
1 parent 970d8ad commit b548f50
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion docs/source/userguide/stepsize.rst
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,15 @@ This will modify the stepsize as needed.
dt_min=1e-6,
max_stepsize=5,
milestones=[1, 5, 6, 10]
)
)


.. note::

When defining the simulation, if your stepsize is constant, you can define it simply by providing it as a `float`` or `int`:

.. testcode::

my_model = F.Simulation()

my_model.dt = 2.0

0 comments on commit b548f50

Please sign in to comment.