mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Add methods WellState::size() and WellState::producer()
This commit is contained in:
parent
a39fcc9708
commit
e01910adc2
@ -71,9 +71,14 @@ public:
|
||||
const WellMapType& wellMap() const { return wellMap_; }
|
||||
WellMapType& wellMap() { return wellMap_; }
|
||||
|
||||
std::size_t size() const {
|
||||
return this->wellMap_.size();
|
||||
}
|
||||
|
||||
|
||||
int numWells() const
|
||||
{
|
||||
return wellMap_.size();
|
||||
return this->size();
|
||||
}
|
||||
|
||||
int wellIndex(const std::string& wellName) const;
|
||||
@ -343,6 +348,11 @@ public:
|
||||
return this->status_.well_name(well_index);
|
||||
}
|
||||
|
||||
bool producer(std::size_t well_index) const {
|
||||
return this->is_producer_[well_index];
|
||||
}
|
||||
|
||||
|
||||
private:
|
||||
WellMapType wellMap_;
|
||||
// Use of std::optional<> here is a technical crutch, the
|
||||
|
Loading…
Reference in New Issue
Block a user