Make sure that the convergece report is stored before throw

This commit is contained in:
Tor Harald Sandve
2019-04-25 10:33:39 +02:00
parent cda7d1906e
commit 8a4117441c
2 changed files with 1 additions and 8 deletions

View File

@@ -491,6 +491,7 @@ namespace Opm {
std::ostringstream msg;
msg << " Excessive chopping detected in report step "
<< sr.back().report_step << ", substep " << sr.back().current_step << "\n";
assert(!sr.back().report.empty());
const auto& wfs = sr.back().report.back().wellFailures();
for (const auto& wf : wfs) {
msg << " Well that failed: " << wf.wellName() << "\n";