Skip to content

Commit b548f50

Browse files
committed
add new option in the docs
1 parent 970d8ad commit b548f50

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

docs/source/userguide/stepsize.rst

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,4 +68,15 @@ This will modify the stepsize as needed.
6868
dt_min=1e-6,
6969
max_stepsize=5,
7070
milestones=[1, 5, 6, 10]
71-
)
71+
)
72+
73+
74+
.. note::
75+
76+
When defining the simulation, if your stepsize is constant, you can define it simply by providing it as a `float`` or `int`:
77+
78+
.. testcode::
79+
80+
my_model = F.Simulation()
81+
82+
my_model.dt = 2.0

0 commit comments

Comments
 (0)