Add std::string overload for WellState::segments()

This commit is contained in:
Joakim Hove
2021-06-01 10:15:48 +02:00
parent 3fd6d7781b
commit 7d89c6e09c

View File

@@ -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_;
}