diff --git a/opm/parser/eclipse/EclipseState/Tables/PvtsolTable.hpp b/opm/parser/eclipse/EclipseState/Tables/PvtsolTable.hpp index 4209a2879..5d7b0d4aa 100644 --- a/opm/parser/eclipse/EclipseState/Tables/PvtsolTable.hpp +++ b/opm/parser/eclipse/EclipseState/Tables/PvtsolTable.hpp @@ -27,7 +27,10 @@ namespace Opm { class PvtsolTable : public PvtxTable { public: + PvtsolTable() = default; PvtsolTable(const DeckKeyword& keyword, size_t tableIdx); + static PvtsolTable serializeObject(); + bool operator==(const PvtsolTable& data) const; }; } diff --git a/src/opm/parser/eclipse/EclipseState/Tables/Tables.cpp b/src/opm/parser/eclipse/EclipseState/Tables/Tables.cpp index 7f1953f9c..18be56772 100644 --- a/src/opm/parser/eclipse/EclipseState/Tables/Tables.cpp +++ b/src/opm/parser/eclipse/EclipseState/Tables/Tables.cpp @@ -243,6 +243,17 @@ PvtsolTable::PvtsolTable( const DeckKeyword& keyword, size_t tableIdx) : PvtxTable::init(keyword , tableIdx); } +PvtsolTable PvtsolTable::serializeObject() { + PvtsolTable result; + static_cast(result) = PvtxTable::serializeObject(); + + return result; +} + +bool PvtsolTable::operator==(const PvtsolTable& data) const { + return static_cast(*this) == static_cast(data); +} + SpecheatTable::SpecheatTable(const DeckItem& item) { m_schema.addColumn(ColumnSchema("TEMPERATURE", Table::STRICTLY_INCREASING, Table::DEFAULT_NONE));