Skip to content

Commit 8493d75

Browse files
committed
Update example doc
1 parent e7a3ba7 commit 8493d75

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

docs/pygeos_tools_docs/example.rst

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -117,12 +117,12 @@ This block contains a ``forceDt`` attribute that will be used later to choose as
117117
118118
The "outputs" event triggers the output of the vtk files. The attribute "timeFrequency" has the same value as "forceDt"
119119
so we can use the same timestep for the solver and the outputs.
120-
To start, we will set the time to 0.0 and trigger one output of the vtk files.
120+
To start, we will set the time to 0.0 and the cycle number to 0.
121121

122122
.. code-block:: python
123123
124124
time = 0.0
125-
solver.outputVtk( time )
125+
cycle = 0
126126
127127
128128
------------------------------------------------------------------
@@ -135,9 +135,12 @@ Once done, the simulation is ended by calling the ``cleanup`` method.
135135
.. code-block:: python
136136
137137
while time < solver.maxTime:
138-
solver.execute( time )
139-
solver.outputVtk( time )
138+
solver.outputVtk( time, cycle )
139+
solver.execute( time, cycle )
140140
time += solver.dt
141+
cycle += 1
142+
143+
solver.outputVtk( time, cycle )
141144
solver.cleanup( time )
142145
143146

0 commit comments

Comments
 (0)