Serialize PvtsolTable.

This commit is contained in:
Ove Sævareid 2020-11-03 19:11:57 +01:00
parent 58aa93dcfe
commit e489f1aced
2 changed files with 14 additions and 0 deletions

View File

@ -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;
};
}

View File

@ -243,6 +243,17 @@ PvtsolTable::PvtsolTable( const DeckKeyword& keyword, size_t tableIdx) :
PvtxTable::init(keyword , tableIdx);
}
PvtsolTable PvtsolTable::serializeObject() {
PvtsolTable result;
static_cast<PvtxTable&>(result) = PvtxTable::serializeObject();
return result;
}
bool PvtsolTable::operator==(const PvtsolTable& data) const {
return static_cast<const PvtxTable&>(*this) == static_cast<const PvtxTable&>(data);
}
SpecheatTable::SpecheatTable(const DeckItem& item)
{
m_schema.addColumn(ColumnSchema("TEMPERATURE", Table::STRICTLY_INCREASING, Table::DEFAULT_NONE));