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

Fix num_entities by using explicit math formula for counting #155

Merged

Conversation

createyourpersonalaccount
Copy link
Contributor

@createyourpersonalaccount createyourpersonalaccount commented Jul 16, 2024

While reading the source code searching for issues with some crashes I have with this software (I still haven't figured out why there's crashes but I've noticed that under gdb I can no longer obtain them, which means they're sensitive to timing, I think) I noticed this cell-counting function was doing some unnecessary work; I simplified it with the right formula.

@francesco-ballarin
Copy link
Member

cc @chrisrichardson. FYI, @createyourpersonalaccount is doing a GSOC project with Debian.

@createyourpersonalaccount , it would be good if you could modify the message in the first post adding a couple of sentences on what motivated you to propose this PR, so that anyone who will find this PR in future will be able to remember what the rationale was.

@createyourpersonalaccount
Copy link
Contributor Author

@francesco-ballarin I edited the original PR message to include some information.

@francesco-ballarin francesco-ballarin added this pull request to the merge queue Nov 3, 2024
@francesco-ballarin francesco-ballarin removed this pull request from the merge queue due to a manual request Nov 3, 2024
@francesco-ballarin francesco-ballarin added this pull request to the merge queue Nov 3, 2024
Merged via the queue into FEniCS:main with commit 691ddaa Nov 3, 2024
1 check 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.

4 participants