Use infinity as too-large boundary for multisegment pressure equation.

This is to preserve current behaviour. Infinity is used in the test
currently, rather than the provided parameter (that is only used for
mass balance/flux equations).
This commit is contained in:
Atgeirr Flø Rasmussen 2018-10-24 21:43:26 +02:00
parent f9fae47f23
commit 2bef8d7017

View File

@ -484,7 +484,7 @@ namespace Opm
const double pressure_residual = maximum_residual[eq_idx];
if (std::isnan(pressure_residual)) {
report.setWellFailed({CS::WellFailure::Type::Pressure, CS::Severity::NotANumber, -1, name()});
} else if (pressure_residual > param_.max_residual_allowed_) {
} else if (std::isinf(pressure_residual)) {
report.setWellFailed({CS::WellFailure::Type::Pressure, CS::Severity::TooLarge, -1, name()});
} else if (pressure_residual > param_.tolerance_pressure_ms_wells_) {
report.setWellFailed({CS::WellFailure::Type::Pressure, CS::Severity::Normal, -1, name()});