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

Improve performance of PR 967 #1026

Merged
merged 4 commits into from
Aug 29, 2024

Conversation

amartinhuertas
Copy link
Member

Performance optimization. The test on the injectivity of the tface_to_mface_map of BodyFittedTriangulation is moved to the BodyFittedTriangulation constructor, so that it is performed only once and not each time we call get_glue. Added a trait to BodyFittedTriangulation that stores the result of the test on injectivity.

Besides, for correctness, the mface_to_tface_map is set to nothing as currently PosNegPartition is not prepared to handle non-injective mappings. This will have to be replaced by a proper data structure that is able to handle non-injective mappings if in the future we find an scenario in which this inverse mapping is required to be used.

tface_to_mface_map of BodyFittedTriangulation is moved to the
BodyFittedTriangulation constructor, so that it is performed
only once and not each time we call get_glue. Added a trait
to BodyFittedTriangulation that stores the result of the test
on injectivity.

Besides, for correctness, the mface_to_tface_map is set to nothing
as currently PosNegPartition is not prepared to handle non-injective
mappings. This will have to be replaced by a proper data structure
that is able to handle non-injective mappings if in the future
we find an scenario in which this inverse mapping is required to
be used.
@amartinhuertas amartinhuertas self-assigned this Aug 29, 2024
@amartinhuertas amartinhuertas removed the request for review from fverdugo August 29, 2024 05:31
Copy link

codecov bot commented Aug 29, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 88.23%. Comparing base (dc1f4cf) to head (053153e).
Report is 7 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1026      +/-   ##
==========================================
+ Coverage   88.22%   88.23%   +0.01%     
==========================================
  Files         179      179              
  Lines       22580    22593      +13     
==========================================
+ Hits        19922    19936      +14     
+ Misses       2658     2657       -1     

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

@amartinhuertas amartinhuertas merged commit 9675711 into master Aug 29, 2024
9 checks passed
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.

1 participant