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

Skip static functions when generating the bindings #101

Merged

Conversation

JoshuaLampert
Copy link
Member

@JoshuaLampert JoshuaLampert commented Nov 25, 2023

As noted in #99, calling static functions from P4est.jl is not possible. In Clang.jl v0.17.7, there exists the option to skip these static functions.

Copy link

codecov bot commented Nov 25, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (9715143) 16.25% compared to head (ce6f6de) 17.58%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #101      +/-   ##
==========================================
+ Coverage   16.25%   17.58%   +1.33%     
==========================================
  Files           3        3              
  Lines        1538     1422     -116     
==========================================
  Hits          250      250              
+ Misses       1288     1172     -116     
Flag Coverage Δ
unittests 17.58% <ø> (+1.33%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

Copy link
Member

@sloede sloede left a comment

Choose a reason for hiding this comment

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

There's some weirdness in the changes to src/LibP4est.jl - maybe check it out (I marked only a few). Also, did you run any P4estMesh AMR test with Trixi.jl to verify that everything still works? Not sure if it is necessary, just wondering...

src/LibP4est.jl Show resolved Hide resolved
src/LibP4est.jl Show resolved Hide resolved
src/LibP4est.jl Show resolved Hide resolved
@JoshuaLampert
Copy link
Member Author

Also, did you run any P4estMesh AMR test with Trixi.jl to verify that everything still works?

Yes, I just did. Everything works as expected with and without MPI.

Copy link
Member

@sloede sloede left a comment

Choose a reason for hiding this comment

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

LGTM!

@JoshuaLampert JoshuaLampert merged commit 62a86e0 into trixi-framework:main Nov 25, 2023
14 checks passed
@JoshuaLampert JoshuaLampert deleted the skip-static-functions branch November 25, 2023 14:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants