Skip to content

output_interval

Syntax

network <network_name> {
    output_interval = <days>
}

Parameters

<days>
The number of days between recordings of the associated output data.

Description

The output_interval property of a 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.

network FRIENDS {
    output_interval = 7
}

See Also