Changed output classification of NaN residuals to "Bug" from "Problem"

This commit is contained in:
Rohith Nair
2017-04-10 18:55:54 +02:00
parent ddd9f0cb5f
commit 375e4e2678
2 changed files with 4 additions and 4 deletions

View File

@@ -1815,7 +1815,7 @@ typedef Eigen::Array<double,
|| (idx < np && std::isnan(well_flux_residual[idx]))) {
const auto msg = std::string("NaN residual for phase ") + materialName(idx);
if (terminal_output_) {
OpmLog::problem(msg);
OpmLog::bug(msg);
}
OPM_THROW_NOLOG(Opm::NumericalProblem, msg);
}
@@ -1894,7 +1894,7 @@ typedef Eigen::Array<double,
if (std::isnan(well_flux_residual[idx])) {
const auto msg = std::string("NaN residual for phase ") + materialName(idx);
if (terminal_output_) {
OpmLog::problem(msg);
OpmLog::bug(msg);
}
OPM_THROW_NOLOG(Opm::NumericalProblem, msg);
}

View File

@@ -1366,7 +1366,7 @@ namespace Opm {
const size_t max_num_cells_faillog = 20;
if (failed_cells_pb.size() > 0) {
std::stringstream errlog;
errlog << "Finding the dew point pressure failed for " << failed_cells_pb.size() << " cells [";
errlog << "Finding the bubble point pressure failed for " << failed_cells_pb.size() << " cells [";
errlog << failed_cells_pb[0];
const int max_elems = std::min(max_num_cells_faillog, failed_cells_pb.size());
for (int i = 1; i < max_elems; ++i) {
@@ -1390,7 +1390,7 @@ namespace Opm {
errlog << ", ...";
}
errlog << "]";
OpmLog::problem("pd numerical problem", errlog.str());
OpmLog::warning("pd numerical problem", errlog.str());
}
return simData;