mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Add method SegmentState::size()
This commit is contained in:
@@ -55,6 +55,11 @@ bool SegmentState::empty() const {
|
||||
return this->rates.empty();
|
||||
}
|
||||
|
||||
std::size_t SegmentState::size() const {
|
||||
return this->pressure.size();
|
||||
}
|
||||
|
||||
|
||||
void SegmentState::scale_pressure(double bhp) {
|
||||
if (this->empty())
|
||||
throw std::logic_error("Tried to pressure scale empty SegmentState");
|
||||
|
||||
Reference in New Issue
Block a user