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

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

Open
bska opened this issue Jan 4, 2021 · 1 comment
Open

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

bska opened this issue Jan 4, 2021 · 1 comment

Comments

@bska
Copy link
Member

bska commented Jan 4, 2021

I was debugging another issue when an assert triggered in EntityRep<>::setValue(). The direct cause of this assertion failure was function cpgrid::buildFaceToCell() calling setValue() with

other_cell = -1

There are a number of possibilities here

  1. The assertion is wrong and it's okay to call the function with a negative index (unlikely)
  2. The calling code in buildFaceToCell() needs a check for negative cell indices
  3. The pinch processing code is wrong since it generates a negative cell index

At the top of my head I don't know which is which here so I'd like to discuss the matter. For the record, this issue presented when running the VOLVE_2020 model.

@blattms
Copy link
Member

blattms commented Jan 4, 2021

1 and 2 should not be needed. 3 seems not to be the case as actnum is checked for both above and below, when inserting. There are issues with some of the logic expressions, though.

Maybe the active cells are changed somewhere in between such that global_to_local[it->second]<0 despite actnum[it->second]>0?

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

No branches or pull requests

2 participants