mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Use to_string() for WellFailure.
New functionality added is local well failure logging for NLDD.
This commit is contained in:
parent
04492413ff
commit
9102b2a352
@ -840,6 +840,13 @@ private:
|
||||
if (mb_sum < acceptable_local_mb_sum && cnv_sum < acceptable_local_cnv_sum) {
|
||||
local_report.converged = true;
|
||||
logger.debug(fmt::format("Accepting solution in unconverged domain {} on rank {}.", domain.index, rank_));
|
||||
} else {
|
||||
logger.debug("Unconverged local solution.");
|
||||
}
|
||||
} else {
|
||||
logger.debug("Unconverged local solution with well convergence failures:");
|
||||
for (const auto& wf : convrep.wellFailures()) {
|
||||
logger.debug(to_string(wf));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -122,13 +122,7 @@ namespace {
|
||||
<< (report.wellFailed() ? "FAIL" : "CONV");
|
||||
if (report.wellFailed()) {
|
||||
for (const auto& wf : report.wellFailures()) {
|
||||
os << " { "
|
||||
<< wf.wellName() << ' ' << to_string(wf.type());
|
||||
if (wf.type() == Opm::ConvergenceReport::WellFailure::Type::MassBalance) {
|
||||
os << " Severity=" << to_string(wf.severity())
|
||||
<< " Phase=" << wf.phase();
|
||||
}
|
||||
os << " }";
|
||||
os << " " << to_string(wf);
|
||||
}
|
||||
}
|
||||
os << '\n';
|
||||
|
Loading…
Reference in New Issue
Block a user