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

Take an initial dummy step before the simulation. #45

Closed zekeriyasari closed 4 years ago

zekeriyasari commented 4 years ago

The inputs of the dynamical systems are interpolated during successive simulation steps. For this purpose, the buffers are used to buffer the input data. The problem is that before the simulation starts, these buffers should be empty and should be correctly filled with true input data of the components. So, take an initial step before actually running the whole simulation to fill(i.e. initialize) the interpolation buffers.)

zekeriyasari commented 4 years ago

During the run stage of the simulation, the internal buffers of the interpolants of dynamical systems are filled correctly. So, there is no need for an additional dummy step for initialization.