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

[ConvexBase] Fix neighbor copy in copy constructor. #457

Conversation

lmontaut
Copy link
Contributor

@lmontaut lmontaut commented Oct 5, 2023

Previously, the pointers in neighbors were not pointing to the data stored in nneighbors_ but to other.nneighbors_.
If other.nneighbors_ is destroyed then the neighbors point to deleted data. This PR fixes that.

@lmontaut lmontaut requested a review from jcarpent October 5, 2023 17:21
@lmontaut
Copy link
Contributor Author

lmontaut commented Oct 5, 2023

@jcarpent it seems the ci is failing because the hppfcl3x branch doesn't have the fix we did for the python documentation (#455).

Previously, the pointers in neighbors were not pointing to the data
stored in nneighbors_ but to other.nneighbors_.
If other.nneighbors_ is destroyed then the neighbors point to deleted
data. This commit fixes that.
@jcarpent jcarpent force-pushed the topic/hppfcl3x/fix_convex_neighbor_copy branch from a18481e to b2f759a Compare October 6, 2023 11:16
@jcarpent jcarpent merged commit 7dcc8e5 into coal-library:hppfcl3x Oct 11, 2023
18 of 20 checks passed
@lmontaut lmontaut deleted the topic/hppfcl3x/fix_convex_neighbor_copy branch November 13, 2023 16:24
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