diff --git a/ebos/ecltransmissibility.hh b/ebos/ecltransmissibility.hh index 6e2e35680..99d98d885 100644 --- a/ebos/ecltransmissibility.hh +++ b/ebos/ecltransmissibility.hh @@ -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 {