Skip to content
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

Some CLib/sourcegen/dotnet updates #1773

Merged
merged 15 commits into from
Aug 18, 2024
Merged

Some CLib/sourcegen/dotnet updates #1773

merged 15 commits into from
Aug 18, 2024

Conversation

ischoegl
Copy link
Member

@ischoegl ischoegl commented Aug 14, 2024

Changes proposed in this pull request

This PR introduces combines some simple CLib updates with required fixes/updates in sourcegen and dotnet (with inconsequential changes in MATLAB)

  • Remove most obsolete functions from CLib
  • Fix unsupported crosswalks and improve formatting of generated code (sourcegen)
  • Implement support for object handles returned from other objects (sourcegen)
  • Eliminate thermo_newFromFile from CLib and .NET
  • Switch thermo_equilibrate solver specification from magic number to string (consistent with Python and Fortran APIs)

The PR cherry-picks/reimplements some relevant commits from #1761, #1765 and #1770.

If applicable, fill in the issue number this pull request is fixing

Closes #1450, closes Cantera/enhancements#199 (.NET side)

If applicable, provide an example illustrating new features this pull request is introducing

N/A

Checklist

  • The pull request includes a clear description of this code change
  • Commit messages have short titles and reference relevant issues
  • Build passes (scons build & scons test) and unit tests address code coverage
  • Style & formatting of contributed code follows contributing guidelines
  • The pull request is ready for review

Copy link

codecov bot commented Aug 14, 2024

Codecov Report

Attention: Patch coverage is 61.53846% with 5 lines in your changes missing coverage. Please review.

Project coverage is 73.23%. Comparing base (06261ed) to head (fd66ed6).
Report is 38 commits behind head on main.

Files Patch % Lines
src/clib/ct.cpp 50.00% 3 Missing ⚠️
interfaces/dotnet/Cantera/src/ThermoPhase.cs 66.66% 1 Missing ⚠️
src/clib/ctreactor.cpp 50.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff            @@
##             main    #1773    +/-   ##
========================================
  Coverage   73.23%   73.23%            
========================================
  Files         381      381            
  Lines       54343    54216   -127     
  Branches     9246     9235    -11     
========================================
- Hits        39796    39705    -91     
+ Misses      11573    11545    -28     
+ Partials     2974     2966     -8     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ischoegl ischoegl force-pushed the update-dotnet branch 4 times, most recently from e614dd3 to ba7ece0 Compare August 14, 2024 17:27
@ischoegl ischoegl changed the title Some sourcegen/dotnet updates Some CLib/sourcegen/dotnet updates Aug 14, 2024
@ischoegl ischoegl mentioned this pull request Aug 14, 2024
5 tasks
@ischoegl ischoegl force-pushed the update-dotnet branch 2 times, most recently from 881bdbd to c7e588b Compare August 14, 2024 18:42
@ischoegl ischoegl marked this pull request as ready for review August 14, 2024 19:12
@ischoegl ischoegl requested a review from a team August 14, 2024 19:12
@ischoegl
Copy link
Member Author

🎉 ... figuring out .NET and sourcegen took a while, but this is now ready for a review.

Copy link
Member

@speth speth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me. Just a couple of minor comments/questions. Also, can you rebase now that #1761 has been merged?

interfaces/sourcegen/sourcegen/_helpers.py Outdated Show resolved Hide resolved
interfaces/dotnet/Cantera/src/Application.cs Outdated Show resolved Hide resolved
@ischoegl
Copy link
Member Author

@speth … thanks for your review! I rebased and addressed your comments, so it should be ready.

@ischoegl ischoegl requested a review from speth August 18, 2024 20:48
Copy link
Member

@speth speth left a 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.

@speth speth merged commit 74c971d into Cantera:main Aug 18, 2024
49 of 50 checks passed
@ischoegl ischoegl deleted the update-dotnet branch August 19, 2024 00:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Deprecate clib 'xyz_newFromFile' from CLib sourcegen fails to process clib signature
2 participants