GMLC-TDC / HELICS-Examples

Examples for using HELICS with a variety of the supported programming languages
BSD 3-Clause "New" or "Revised" License
21 stars 19 forks source link

Use of `wait_for_current_time_update` to sequence feds with acyclic interfaces #105

Open trevorhardy opened 3 months ago

trevorhardy commented 3 months ago

For federates that do not have cycles in their interfaces (e.g. a sequence of controllers where the output of one feeds the input of the next), you can use wait_for_current_time_update on all but the first in the sequence to achieve a defined order of operation (time grants). They would all be granted the same simulation time but will receive those grants after all their dependent federates have completed execution at that timestep. That is, the dependency graph between the federates effectively defines the order of time grants.

We need an example on this.