mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-16 20:24:48 -06:00
handle unoperable wells
set potentials and rates to zero
This commit is contained in:
parent
dc4436961f
commit
9db6b2b946
@ -608,11 +608,12 @@ namespace Opm
|
||||
const auto& summaryState = ebos_simulator.vanguard().summaryState();
|
||||
const auto& schedule = ebos_simulator.vanguard().schedule();
|
||||
|
||||
if (this->wellIsStopped()) {
|
||||
if (this->wellIsStopped() || !this->isOperable()) {
|
||||
for (int p = 0; p<np; ++p) {
|
||||
ws.surface_rates[p] = 0;
|
||||
ws.surface_rates[p] = 0.0;
|
||||
ws.well_potentials[p] = 0.0;
|
||||
}
|
||||
ws.thp = 0;
|
||||
ws.thp = 0.0;
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user