-
-
Notifications
You must be signed in to change notification settings - Fork 346
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
Remove legacy kinetics #1292
Remove legacy kinetics #1292
Conversation
f2b39f1
to
4471793
Compare
Codecov Report
@@ Coverage Diff @@
## main #1292 +/- ##
==========================================
- Coverage 67.42% 67.26% -0.17%
==========================================
Files 320 314 -6
Lines 42890 41887 -1003
Branches 17353 16852 -501
==========================================
- Hits 28920 28174 -746
+ Misses 11670 11483 -187
+ Partials 2300 2230 -70
📣 Codecov can now indicate which changes are the most critical in Pull Requests. Learn more |
4471793
to
cb85c85
Compare
0912c92
to
edc5649
Compare
00d2afa
to
8ea3516
Compare
056c4eb
to
7d26a94
Compare
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.
Thanks for this @ischoegl! I love the ratio of +/- lines in these last few PRs 😃 I've gotta work on that myself! Just a few minor comments about formatting here. I'll let @speth review the more substantive changes to the C++ code, since I'm not all that familiar with the appropriate data types, etc.
One other question I wanted to ask, is it necessary to keep the option to change the default status of the legacy rate constants at compile time? I think it makes sense to keep the ability to change that on the fly, but I don't think it's super helpful to keep the compile-time option. I'm worried that it will lead some research group to install a modified copy on their server, and we'll get questions on the UG that we can't figure out because the end-user doesn't know that option was changed. |
7d26a94
to
2228ebc
Compare
@bryanwweber ... thanks for the prompt review! And I was able to shave a couple more lines ... removing this was definitely easier than coding up what replaces the legacy code 😂
Fair point - I removed this in the last commit. |
2228ebc
to
354ac7a
Compare
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.
Thanks, @ischoegl. I likewise enjoy the net decrease in lines of code here.
Besides a couple of specific comments below, I think there are several cases where we need to keep the Whatever3
names as typedefs or passthroughs, at least for the next version. This is important for enabling code that is built to work with Cantera 2.6 without using any deprecated features to still work with the development version of Cantera 3.0. For example:
ThirdBodyCalc3
Reaction::calculateRateCoeffUnits3
ThreeBodyReaction3
FalloffReaction3
Kinetics.reactant_stoich_coeffs3
andproduct_stoich_coeffs3
* Change behavior of Kinetics::reactionType * Deprecate Kinetics::reactionTypeStr * Change f90/clib getters to getReactionType pattern update getReactionType
85b419b
to
2a65d37
Compare
@speth ... thanks for the review! I added all suggestions (except for I think this is ready to go ... |
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.
One more small doc change for consistency 🙂
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.
Thanks, @ischoegl. Just one minor suggestion for the docs.
9872177
to
e6d59a3
Compare
@speth / @bryanwweber … let me know in case there’s anything else … |
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.
Thanks @ischoegl !
Changes proposed in this pull request
If applicable, fill in the issue number this pull request is fixing
Closes Cantera/enhancements#149
Checklist
scons build
&scons test
) and unit tests address code coverage