zekeriyasari / Causal.jl

Causal.jl - A modeling and simulation framework adopting causal modeling approach.
https://zekeriyasari.github.io/Causal.jl/dev/
Other
115 stars 7 forks source link

Clear the current time of dynamical systems before re-simulation. #46

Closed zekeriyasari closed 4 years ago

zekeriyasari commented 4 years ago

Since the current time is stored in a dynamical system component, after a simulation of a model including a dynamical system, the current time of the dynamical systems must be equal to the initial time of the model clock. So, clear the current time of dynamical systems for a re-simulation.

zekeriyasari commented 4 years ago

https://github.com/zekeriyasari/Causal.jl/blob/1b678024c6f5abf75b1beb0577358a2b2ab0fff0/src/model.jl#L517-L526