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 dangling reference as cell returns a copy of geometry now. #261

Conversation

blattms
Copy link
Member

@blattms blattms commented Aug 2, 2018

When geometry returned a reference we could simply store a
reference to its stored center. With geometry returned as a copy this
has become a dangling reference. We fix this by storing a constant reference
to the geometry and then reference its center.

This change is needed for the PR OPM/opm-grid#334

When geometry() returned a reference we could simply store a
reference to its stored center. With the geometry returned as a copy this
has become a dangling reference. We fix this by storing a constant reference
to the geometry and then reference its center.
@atgeirr
Copy link
Member

atgeirr commented Aug 2, 2018

Should we jenkins and merge this now? I don't see the need to wait for OPM/opm-grid#334?

@blattms
Copy link
Member Author

blattms commented Aug 3, 2018

This fix seems to be at the wrong place.

@blattms blattms closed this Aug 3, 2018
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.

None yet

2 participants