-
-
Notifications
You must be signed in to change notification settings - Fork 349
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
Reproducible names for zeroD objects #1765
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1765 +/- ##
==========================================
+ Coverage 73.20% 73.23% +0.03%
==========================================
Files 381 381
Lines 54240 54371 +131
Branches 9236 9251 +15
==========================================
+ Hits 39707 39820 +113
- Misses 11564 11578 +14
- Partials 2969 2973 +4 ☔ View full report in Codecov by Sentry. |
ba501da
to
b276a23
Compare
28c3444
to
6e55173
Compare
c7119c8
to
266f862
Compare
The PR goes somewhat beyond fixing #1764, as it pushes all names to C++ and exposes them to MATLAB as well. It should be ready for a review. |
Minor cleanup. As an aside, I believe we should deprecate creation of empty |
d39b0ff
to
a2884cd
Compare
This comment was marked as outdated.
This comment was marked as outdated.
9ca3883
to
4031555
Compare
Rebased, with commits removing obsolete CLib methods moved to #1773. |
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. Moving this naming process to the C++ level certainly makes sense. Just a few comments on the implementation.
Names of reactors and walls/connectors should be reproducible for a given reactor network.
@speth ... thanks for the review! Your suggestion to simplify |
@speth ... assuming that this is ready to merge, I'll use this to start on Cantera/enhancements#213. |
Changes proposed in this pull request
This PR seeks to implement reproducible (and unique) reactor, flow device and wall names in the C++ layer, which was previously only handled by the Python API. Rather than auto-creating unique names based on the number of certain object types created within a Cantera session, this PR switches to an approach that creates names dependent on
ReactorNet
objects, which guarantees that reproducible auto-generated names are attached to variouszeroD
objects.ReactorNet
, which is important for serialization (e.g. Automatic tracking ofReactorNet
state enhancements#206)Remove deprecated functions fromclib
(in anticipation of Declareclib
experimental in Cantera 3.1 enhancements#211)If applicable, fill in the issue number this pull request is fixing
Closes #1764
If applicable, provide an example illustrating new features this pull request is introducing
Checklist
scons build
&scons test
) and unit tests address code coverage