OPM / opm-models

The models module for the Open Porous Media Simulation (OPM) framework

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

closed by #497.

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.