Skip to content

Interrupt long-running functions #11

Description

@mphoward

Currently, long-running C++ functions cannot be keyboard interrupted (CTRL+C) until control passes back to python. PyErr_CheckSignals() implements a low-overhead call to do this at the start of each loop iteration:

https://pybind11.readthedocs.io/en/stable/faq.html#how-can-i-properly-handle-ctrl-c-in-long-running-functions

We should add this signal handling logic to all solvers and integrators that enter loops.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions