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

Set max number of jumps #323

Open
gaurav-arya opened this issue Jul 7, 2023 · 3 comments
Open

Set max number of jumps #323

gaurav-arya opened this issue Jul 7, 2023 · 3 comments

Comments

@gaurav-arya
Copy link
Member

Is there a way of setting a max number of jumps, at which point to abort with an incomplete solution? This would be very useful when dealing with time-dependent jumps with Coevolve, where I would like my simulation to naturally abort if my jump rates are larger than I expected

@isaacsas
Copy link
Member

isaacsas commented Jul 7, 2023

Couldn't you track this via a DiscreteCallback and just call terminate! when you hit your limit?

@gaurav-arya
Copy link
Member Author

It seems like it's getting stuck in between DiscreteCallback's, so that I can't catch the infinite loop in the DiscreteCallback. It'll take me a bit to make an MWE, but from my logs it seems like Coevolve is getting stuck in a loop at a point where all reaction rates are 0.

@isaacsas
Copy link
Member

We should add maxiters keyword support for SSAStepper at least.

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

No branches or pull requests

2 participants