@@ -283,7 +283,8 @@ namespace Opm
283283 // this is the process with rank zero)
284284 deferred_logger.problem (" In MultisegmentWell::recoverWellSolutionAndUpdateWellState for well "
285285 + this ->name () +" : " +exp.what ());
286- this ->outputDebugInfoNumericalProblem (deferred_logger);
286+ const auto & ws = well_state.well (this ->index_of_well_ );
287+ this ->outputDebugInfoNumericalProblem (ws, deferred_logger);
287288 throw ;
288289 }
289290 }
@@ -633,7 +634,8 @@ namespace Opm
633634 // this is the process with rank zero)
634635 deferred_logger.problem (" In MultisegmentWell::solveEqAndUpdateWellState for well "
635636 + this ->name () +" : " +exp.what ());
636- this ->outputDebugInfoNumericalProblem (deferred_logger);
637+ const auto & ws = well_state.well (this ->index_of_well_ );
638+ this ->outputDebugInfoNumericalProblem (ws, deferred_logger);
637639 throw ;
638640 }
639641 }
@@ -1609,7 +1611,8 @@ namespace Opm
16091611 // this is the process with rank zero)
16101612 deferred_logger.problem (" In MultisegmentWell::iterateWellEqWithControl for well "
16111613 + this ->name () +" : " +exp.what ());
1612- this ->outputDebugInfoNumericalProblem (deferred_logger);
1614+ const auto & ws = well_state.well (this ->index_of_well_ );
1615+ this ->outputDebugInfoNumericalProblem (ws, deferred_logger);
16131616 throw ;
16141617 }
16151618 }
@@ -1791,7 +1794,8 @@ namespace Opm
17911794 // this is the process with rank zero)
17921795 deferred_logger.problem (" In MultisegmentWell::iterateWellEqWithSwitching for well "
17931796 + this ->name () +" : " +exp.what ());
1794- this ->outputDebugInfoNumericalProblem (deferred_logger);
1797+ const auto & ws = well_state.well (this ->index_of_well_ );
1798+ this ->outputDebugInfoNumericalProblem (ws, deferred_logger);
17951799 throw ;
17961800 }
17971801 }
@@ -2386,9 +2390,11 @@ namespace Opm
23862390 template <typename TypeTag>
23872391 void
23882392 MultisegmentWell<TypeTag>::
2389- outputDebugInfoNumericalProblem (DeferredLogger& deferred_logger) const
2393+ outputDebugInfoNumericalProblem (const SingleWellState<Scalar, IndexTraits>& ws,
2394+ DeferredLogger& deferred_logger) const
23902395 {
2391- std::string msg = this ->primary_variables_ .debugInfo ();
2396+ std::string msg = ws.debugInfo ();
2397+ msg += this ->primary_variables_ .debugInfo ();
23922398 deferred_logger.debug (msg);
23932399 }
23942400
0 commit comments