Skip to content

Conversation

@blattms
Copy link
Member

@blattms blattms commented Oct 14, 2025

Collapsed here means that the points of the top and lower plane on the same pillar coincide.
Later those cells will be treated as inactive in preprocess.c and will not be part of the grid. when we create the grid topology. They would present numerical problems later anyway.

Note that this means that these cells (collapsed but PORV larger than MINPVV) will now be present a barrier preventing creation of a PINCH NNC.

Fixes the assertion:

flow: ./opm/grid/cpgrid/EntityRep.hpp:121: void Dune::cpgrid::EntityRep<codim>::setValue(int, bool) [with int codim = 0]: Assertion `index_arg >= 0' failed.

Closes #505

Collaped here means that the points of the top and lower plane all
coincide.
Later those cells will be treated as inactive in preprocess.c when
create the grid topology. They qould presemt numerical problems later
anyway.

Note that this means that these cells (collapsed but PORV larger than
MINPVV) will now be present a barrier for PINCH.

Fixes the assertion:
flow: ./opm/grid/cpgrid/EntityRep.hpp:121: void Dune::cpgrid::EntityRep<codim>::setValue(int, bool) [with int codim = 0]: Assertion `index_arg >= 0' failed.
@blattms blattms added this to the Release 2025.10 milestone Oct 14, 2025
@blattms blattms added the manual:bugfix This PR is a bug fix and should be noted in the manual label Oct 14, 2025
@blattms
Copy link
Member Author

blattms commented Oct 14, 2025

jenkins build this please

@blattms
Copy link
Member Author

blattms commented Oct 15, 2025

With this the collapsed cell will prevent creation of an NNC. It might turn out that this is not what we want, but it is certainly way better than a model aborting in an assert. Hence I think this should be merged but we should compare behavior with others.

@bska
Copy link
Member

bska commented Oct 21, 2025

I'd really like to see some unit tests for this in order to assess the behaviour.

@daavid00
Copy link
Member

Hei, just a frienldy reminder about the schedule for the release:

Bug fixing deadline for RC2: Thursday the 23rd of October, 6pm CET.

If we are backporting this, then we need to make a RC3.

@blattms
Copy link
Member Author

blattms commented Oct 24, 2025

jenkins build this please

1 similar comment
@blattms
Copy link
Member Author

blattms commented Dec 30, 2025

jenkins build this please

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

manual:bugfix This PR is a bug fix and should be noted in the manual

Projects

None yet

Development

Successfully merging this pull request may close these issues.

BuildFaceToCell Calling EntityRep::setValue() With Index of "-1"

3 participants