allow constructing PlymwinjTables from variables
also add equality operator
This commit is contained in:
@@ -28,9 +28,15 @@ namespace Opm {
|
||||
class PlymwinjTable : public PolyInjTable {
|
||||
public:
|
||||
|
||||
PlymwinjTable() = default;
|
||||
PlymwinjTable(const std::vector<double>& throughputs,
|
||||
const std::vector<double>& velocities,
|
||||
int tableNumber,
|
||||
const std::vector<std::vector<double>>& data);
|
||||
explicit PlymwinjTable(const DeckKeyword& table);
|
||||
|
||||
const std::vector<std::vector<double>>& getMoleWeights() const;
|
||||
bool operator==(const PlymwinjTable& data) const;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
@@ -81,6 +81,14 @@ namespace Opm{
|
||||
|
||||
// PlymwinjTable
|
||||
|
||||
PlymwinjTable::PlymwinjTable(const std::vector<double>& throughputs,
|
||||
const std::vector<double>& velocities,
|
||||
int tableNumber,
|
||||
const std::vector<std::vector<double>>& data)
|
||||
: PolyInjTable(throughputs, velocities, tableNumber, data)
|
||||
{
|
||||
}
|
||||
|
||||
PlymwinjTable::PlymwinjTable(const Opm::DeckKeyword& table)
|
||||
{
|
||||
using namespace ParserKeywords;
|
||||
@@ -124,6 +132,11 @@ namespace Opm{
|
||||
return getTableData();
|
||||
}
|
||||
|
||||
bool PlymwinjTable::operator==(const PlymwinjTable& data) const
|
||||
{
|
||||
return static_cast<const PolyInjTable&>(*this) == static_cast<const PolyInjTable&>(data);
|
||||
}
|
||||
|
||||
|
||||
// SkprwatTable
|
||||
|
||||
|
||||
Reference in New Issue
Block a user