Black-oil Polymer Module Compares Iterators into Different Containers
bska opened this issue · comments
The member function BlackoilPolymerModule::getSkprwatTable()
contains the following test
const auto iterTable = skprwatTables_.find(tableNumber);
if (iterTable != plymwinjTables_.end()) {
Here the iterTable
iterator is compared to the end()
of a container different from the one used to create it. That's undefined behaviour.
Thanks for spotting it. I will create a fix of it.
Thanks for spotting it.
I didn't. I just ran OPM-Simulator's compareECLFiles_flow+2D_POLYMER_INJECTIVITY regression test using libstdc++'s debug mode as part of some other work.