add accessor for m_irreversible in ThresholdPressure

This commit is contained in:
Arne Morten Kvarving 2023-03-03 09:22:01 +01:00
parent 4b7cf09b75
commit 4d92298724
2 changed files with 5 additions and 0 deletions

View File

@ -88,6 +88,7 @@ namespace Opm {
size_t size() const;
bool active() const;
bool restart() const;
bool irreversible() const;
bool operator==(const ThresholdPressure& data) const;
static bool rst_cmp(const ThresholdPressure& full_arg, const ThresholdPressure& rst_arg);

View File

@ -247,6 +247,10 @@ namespace Opm {
return m_restart;
}
bool ThresholdPressure::irreversible() const {
return m_irreversible;
}
bool ThresholdPressure::hasThresholdPressure(int r1 , int r2) const {
std::pair<int,int> indexPair = makeIndex(r1,r2);
auto iter = m_pressureTable.find( indexPair );