Skip to content
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

Add timeout to the API #366

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

sleweke-bayer
Copy link
Contributor

@sleweke-bayer sleweke-bayer commented Feb 21, 2025

Adds a timeout implemented as a callback.
The timeout is exposed as an API method and as a field in the file format (/input/solver/TIMEOUT).

Fixes #351

Adds a timeout for simulations that is implemented as a callback.
Notifications are now also sent whenever a linear system is solved,
which occurs during Newton iteration.

The timeout is exposed via the C-API.
Adds a dedicated return code for situations where the
underlying simulator has not been initialized before
calling the API method.
@jbreue16
Copy link
Contributor

I guess the next step is for @schmoelder to test this?

Add a MultiCallback that calls multiple sub-callbacks. Moves callback
handling to the Driver to avoid duplication.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Todo
Development

Successfully merging this pull request may close these issues.

Support timeout for running simulations with C-API
2 participants