mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Add std::string overload for WellState::segments()
This commit is contained in:
@@ -237,6 +237,14 @@ public:
|
||||
return this->segment_state[well_index];
|
||||
}
|
||||
|
||||
const SegmentState& segments(const std::string& wname) const {
|
||||
return this->segment_state[wname];
|
||||
}
|
||||
|
||||
SegmentState& segments(const std::string& wname) {
|
||||
return this->segment_state[wname];
|
||||
}
|
||||
|
||||
std::vector<double>& productivityIndex() {
|
||||
return productivity_index_;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user