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

This commit is contained in:
Joakim Hove committed 2021-06-03 10:46:04 +02:00
1 parent 3fd6d7781b
commit 7d89c6e09c
1 file changed
+8
+8
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_;
}