-
-
Notifications
You must be signed in to change notification settings - Fork 348
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
expose setting of max-steps to python interface & test #581
Conversation
Codecov Report
@@ Coverage Diff @@
## master #581 +/- ##
=========================================
+ Coverage 67.69% 67.7% +0.01%
=========================================
Files 362 362
Lines 38456 38459 +3
=========================================
+ Hits 26031 26039 +8
+ Misses 12425 12420 -5
Continue to review full report at Codecov.
|
Hey @arghdos! Thanks for this. Can you also add a method to get the max steps as well? Does CVODES expose that information? |
@bryanwweber Hmm, it doesn't look like they allow you to query the maximum # of steps, however we should be able to just return whatever value is stored in the integrator. |
@bryanwweber -- implemented |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had just a few minor suggestions, but this generally looks fine to me.
56758bb
to
834cc72
Compare
834cc72
to
80ae4fe
Compare
Sorry, I didn't notice that you updated this. LGTM! |
Changes proposed in this pull request:
I am using Cantera (as typically) to validate other ODE solvers. As such I typically want to set the network reactor tolerances to very stringent values (e.g.,
atol=1e-20
,rtol=1e-15
) and run ignition problems over a wide range of conditions.The issue I'm currently facing is that the default # of steps (appears to be 20k?) works for most cases, but not all. Rather than playing the game of trying to modify the tolerances to fit in the number of steps, it would be nice if we could just expose this property to the user via the python interface.
Let me know if there are any comments / concerns,
Best,
Nick