Skip to content

feat: add SolverStepClock #2517

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 4, 2024
Merged

feat: add SolverStepClock #2517

merged 2 commits into from
Mar 4, 2024

Conversation

baggepinnen
Copy link
Contributor

@baggepinnen baggepinnen commented Mar 1, 2024

A ContinuousClock ticks at every solver step

Checklist

  • Appropriate tests were added
  • Any code changes were done in a way that does not break public API
  • All documentation related to code changes were updated
  • The new code follows the
    contributor guidelines, in particular the SciML Style Guide and
    COLPRAC.
  • Any new documentation only uses public API

Additional context

This allows using discrete-time systems that are triggered at each solver step, useful to model discrete stateful behavior attached to continuous events.

@ChrisRackauckas
Copy link
Member

The name is a bit odd. Call it a StepClock?

@baggepinnen
Copy link
Contributor Author

Step itself is not a super descriptive name, SolverStepClock would probably be sufficiently descriptive.

ContinuousClock was inspired by what simulink/stateflow calls "continuous sample time"

@ChrisRackauckas
Copy link
Member

SolverStepClock is good.

@baggepinnen baggepinnen changed the title feat: add ContinuousCLock feat: add SolverStepClock Mar 4, 2024
@ChrisRackauckas
Copy link
Member

Fails tests

A ContinuousClock ticks at every solver step

change name to `SolverStepClock`

update docstring

change clock name in codegen
@baggepinnen
Copy link
Contributor Author

I think the remaining test failures are unrelated

@ChrisRackauckas ChrisRackauckas merged commit 6c3b3aa into master Mar 4, 2024
@ChrisRackauckas ChrisRackauckas deleted the fb/continuousclock branch March 4, 2024 16:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants