Move code from WellState to SingleWellState

This commit is contained in:
Joakim Hove 2021-10-30 16:24:54 +02:00
parent 5f81b77d14
commit d150f400fe
2 changed files with 4 additions and 4 deletions

View File

@ -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() {

View File

@ -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)