Fixed potential derefernce of end operator when applying EDITNNC.

This commit is contained in:
Bård Skaflestad 2018-12-20 11:44:46 +01:00 committed by Markus Blatt
parent af45c893cf
commit 1f3a9cc84a

View File

@ -574,11 +574,11 @@ private:
if ( candidate == trans_.end() )
{
++nnc;
std::ostringstream sstr;
sstr << "Cannot edit NNC from " << nnc->cell1 << " to " << nnc->cell2
sstr << "Cannot edit NNC from " << c1 << " to " << c2
<< " as it does not exist";
Opm::OpmLog::warning(sstr.str());
++nnc;
}
else
{