open-simulation-platform / cosim-cli

Command-line interface for libcosim
https://open-simulation-platform.github.io/cosim
Mozilla Public License 2.0
10 stars 4 forks source link

run-single: Validate step size #17

Closed kyllingstad closed 5 years ago

kyllingstad commented 5 years ago

This adds a check that the step size is positive, and I've made a small fix to the simulation algorithm that makes it handle the last time step properly so that t never exceeds the end time, even if the step size is greater than the total simulation time.

This closes issue #14.