mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-03 16:20:29 -06:00
Add method PerfData::empty()
This commit is contained in:
parent
579aba8d08
commit
8f9e7d8e96
@ -49,6 +49,10 @@ std::size_t PerfData::size() const {
|
||||
return this->pressure.size();
|
||||
}
|
||||
|
||||
bool PerfData::empty() const {
|
||||
return this->pressure.empty();
|
||||
}
|
||||
|
||||
bool PerfData::try_assign(const PerfData& other) {
|
||||
if (this->size() != other.size())
|
||||
return false;
|
||||
|
@ -34,6 +34,7 @@ private:
|
||||
public:
|
||||
PerfData(std::size_t num_perf, bool injector_, std::size_t num_phases);
|
||||
std::size_t size() const;
|
||||
bool empty() const;
|
||||
bool try_assign(const PerfData& other);
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user