Skip to content

Conversation

SoilRos
Copy link
Member

@SoilRos SoilRos commented Jul 31, 2025

The entity has no knowledge of the grid, hence, it cannot create a geometry so it segfaults. This test may work when the compiler manages to figure out that the geometry object is not really needed and can create the geometry on the fly. This may explain why this was not trigger in the CI.

This produces failures in other PRs like #885 #884 and #891

The entity has no knowledge of the grid, hence, it cannot create a geometry so it segfaults. This test may work when the compiler manages to figure out that the geometry object is not really needed and can create the geometry on the fly. This may explain why this was not trigger in the CI.
@SoilRos SoilRos requested a review from aritorto July 31, 2025 16:49
@SoilRos SoilRos self-assigned this Jul 31, 2025
@SoilRos SoilRos added the manual:irrelevant This PR is a minor fix and should not appear in the manual label Jul 31, 2025
BOOST_CHECK_EQUAL(referenceElement(e5.geometry()).type(), e5.type());

// Cannot check other members without a real grid.
// Put in more checks when it is possible to construct
Copy link
Member Author

Choose a reason for hiding this comment

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

This is my bad, I didn't read this comment until now. But it pretty much explains why I should not have used the geometry here.

Copy link
Member

Choose a reason for hiding this comment

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

Good point. I should have noticed that, so my bad too...

@aritorto
Copy link
Member

aritorto commented Aug 1, 2025

jenkins build this serial please

@aritorto aritorto merged commit f8b1b49 into OPM:master Aug 1, 2025
3 checks passed
@SoilRos SoilRos deleted the bugfix/revert-entity-test-with-geometry branch August 1, 2025 10:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

manual:irrelevant This PR is a minor fix and should not appear in the manual

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants