mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-11-29 04:23:48 -06:00
Move code from WellState to SingleWellState
This commit is contained in:
parent
5f81b77d14
commit
d150f400fe
@ -56,6 +56,10 @@ void SingleWellState::shut() {
|
||||
std::fill(this->surface_rates.begin(), this->surface_rates.end(), 0);
|
||||
std::fill(this->reservoir_rates.begin(), this->reservoir_rates.end(), 0);
|
||||
std::fill(this->productivity_index.begin(), this->productivity_index.end(), 0);
|
||||
|
||||
auto& perf_data = this->perf_data;
|
||||
auto& connpi = perf_data.prod_index;
|
||||
connpi.assign(connpi.size(), 0);
|
||||
}
|
||||
|
||||
void SingleWellState::stop() {
|
||||
|
@ -751,10 +751,6 @@ void WellState::shutWell(int well_index)
|
||||
{
|
||||
auto& ws = this->well(well_index);
|
||||
ws.shut();
|
||||
|
||||
auto& perf_data = ws.perf_data;
|
||||
auto& connpi = perf_data.prod_index;
|
||||
connpi.assign(connpi.size(), 0);
|
||||
}
|
||||
|
||||
void WellState::updateStatus(int well_index, Well::Status status)
|
||||
|
Loading…
Reference in New Issue
Block a user