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
Replace Cabinet in clib / update zeroD factory constructors #1507
Conversation
The internal function is unused and not exposed to the clib interface.
Codecov Report
@@ Coverage Diff @@
## main #1507 +/- ##
==========================================
+ Coverage 70.25% 70.42% +0.16%
==========================================
Files 375 375
Lines 58292 58285 -7
Branches 20828 20820 -8
==========================================
+ Hits 40955 41046 +91
+ Misses 14351 14229 -122
- Partials 2986 3010 +24
... and 6 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
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'm glad to see something that adds a bit of testing for Func1
, even if that was somewhat incidental to what you were setting out to do. I had just one suggested change.
It was indeed incidental. I did some testing for replacement options for the remaining |
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. This looks good to me.
Changes proposed in this pull request
zeroD
factory constructors returnshared_ptr<ReactorBase>
, etc.Cabinet
bySharedCabinet
inclib
interfacectfunc
sofc.py
andlithium_ion_battery.py
samplesCaveat:
Cabinet<Func1>
remains as required updates go beyond the scope of this PR. While some functions can be replaced by classes, internal class methodsFunc1::derivative
etc. would need extensive refactoring.If applicable, fill in the issue number this pull request is fixing
Addresses Cantera/enhancements#164
If applicable, provide an example illustrating new features this pull request is introducing
Checklist
scons build
&scons test
) and unit tests address code coverage