mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-11-29 04:23:48 -06:00
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:
parent
f9fae47f23
commit
2bef8d7017
@ -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()});
|
||||
|
Loading…
Reference in New Issue
Block a user