-
-
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
OneD domain factories and cleanup #1445
Conversation
3bed9ee
to
3f3fc50
Compare
Codecov Report
@@ Coverage Diff @@
## main #1445 +/- ##
==========================================
- Coverage 69.86% 69.81% -0.05%
==========================================
Files 373 375 +2
Lines 56684 56872 +188
Branches 18883 18980 +97
==========================================
+ Hits 39600 39705 +105
- Misses 14571 14650 +79
- Partials 2513 2517 +4
... and 1 file with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
cc142ab
to
aacc987
Compare
7cdd0dc
to
92dfb97
Compare
@speth ... after running into #1447 (which likely involves tackling Cantera/enhancements#158) I am omitting factory constructors in |
Converting back to draft, as this should be merged after #1448. |
92dfb97
to
1b13773
Compare
1b13773
to
799745a
Compare
Rebased after the merge of #1448; some experiments for the introduction of |
d78871b
to
3d533ab
Compare
In addition, deprecate IdealGasFlow::flow_type
7a05eed
to
9b0df10
Compare
Resolved a minor merge conflict introduced by #1426. |
9b0df10
to
eac6d56
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. This looks very good, and I think having the 1D code start to use the factory infrastructure that we have for most other object types will simplify some future additions (say, ExtensibleDomain
). I had only a handful of minor suggestions.
1dacf88
to
6624f6c
Compare
@speth ... thanks for the review! I adopted some suggestions, and responded to others. Edit: I removed |
64caaae
to
d1ecafa
Compare
Update test-python-onedim, test-oneD and test-clib
While declarations no longer use doublereal, instances were not replaced in definition files.
d1ecafa
to
6d84d7f
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 the updates, @ischoegl. This looks good to me.
Changes proposed in this pull request
DomainFactory
(see https://github.com/Cantera/cantera/projects/2)Domain1D::domainType
Sim1D
.solution
fromDomain1D::show
andSim1D::show
to avoid erroneous conflation withSolution
objectsclib
function returning domain type as well asnew_domain
factory loader (to facilitate Matlab toolbox revamp #1182)While other tweaks are possible, they will create merge conflicts with #1079
If applicable, fill in the issue number this pull request is fixing
Implements one 'idea' in https://github.com/Cantera/cantera/projects/2
If applicable, provide an example illustrating new features this pull request is introducing
for
clib
, the following items are added:For the Python API, the following items are (re-)introduced:
with
IdealGasFlow
being deprecated.Checklist
scons build
&scons test
) and unit tests address code coverage