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

C++ solver seed tests, interrupt handler fixes #701

Merged
merged 4 commits into from
Feb 10, 2022

Conversation

jtcooper10
Copy link
Collaborator

Test for simulation seeds and interrupts in newer C++ solvers by adding all C++ solvers to existing tests in test_all_solvers.py. Additionally includes bug fixes for the interrupt functionality, which was uncovered by these tests.

Changes

  • New solvers added to test_all_solvers.py
  • Added C++ interrupt handler code to ODECSolver, TauLeapingCSolver, and TauHybridCSolver
    • Abstracted interrupt handlers behind macros, so that all solvers handle interrupts in the same way

Closes #695, #662

- Timeout not working on all solvers
- Wrapped each solver in a subtest
- Added `GPY_INTERRUPT_*` macros for cross-platform signal handling
- Added macro calls to each solver
- Reduced timeout in unit test to 0.1s
  - `ODECSolver` completes in <1s
- Interrupt checks added to `TauHybridCSolver`
@briandrawert briandrawert added this to the 1.6.8 milestone Feb 7, 2022
@BryanRumsey BryanRumsey merged commit 2202391 into develop Feb 10, 2022
@BryanRumsey BryanRumsey deleted the cpp-solver-test-seeds branch February 10, 2022 21:10
@seanebum seanebum mentioned this pull request Feb 22, 2022
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.

3 participants