output_interval¶
Syntax¶
Parameters¶
<days>- The number of days between recordings of the associated output data.
Description¶
The output_interval property of a variable or network is used to control the
periodicity of output generation during a simulation. When you assign a number
value to output_interval, the value of the associated variable or network is
recorded at regular intervals coinciding with the day number of the simulation.
E.g.) Specifying an output_interval of 2 will cause a record to be made every
2 days.
If a non-zero value is specified, regardless of the specified interval, output will also be made on the final day of the simulation. This ensures that the final state is captured, even if the last day does not coincide with the specified interval.
Examples¶
The following block defines a FRIENDS network that writes an output file for
the network every 7 days.
In this code, a shared list friend_list is declared. The interval specified
indicates that its value is to be written to the output directory every \(30\)
days.