Add member "bool producer" to SingleWellState

This commit is contained in:
Joakim Hove
2021-08-03 21:11:09 +02:00
parent a54daf75e8
commit 1dd9b91ad3
5 changed files with 25 additions and 19 deletions

View File

@@ -341,10 +341,6 @@ public:
return this->status_.well_name(well_index);
}
bool producer(std::size_t well_index) const {
return this->is_producer_[well_index];
}
const SingleWellState& well(std::size_t well_index) const {
return this->wells_[well_index];
}
@@ -380,8 +376,6 @@ private:
PhaseUsage phase_usage_;
WellContainer<PerfData> perfdata;
WellContainer<int> is_producer_; // Size equal to number of local wells.
// vector with size number of wells +1.
// iterate over all perforations of a given well
// for (int perf = first_perf_index_[well_index]; perf < first_perf_index_[well_index] + num_perf_[well_index]; ++perf)