improve unit test for PVTG
now the data is parsed from a string specified in the source file instead of a separate file, the PvtgTable utility class is tested and the order of the fields in the JSON definition of PVTG is the same as for that of PVTO.
This commit is contained in:
@@ -34,7 +34,7 @@ namespace Opm {
|
||||
*/
|
||||
PvtgInnerTable(Opm::DeckKeywordConstPtr keyword, int recordIdx = 0)
|
||||
: SimpleTable(keyword,
|
||||
std::vector<std::string>{"P", "BG", "MUG"},
|
||||
std::vector<std::string>{"RV", "BG", "MUG"},
|
||||
recordIdx, /*firstEntityOffset=*/1)
|
||||
{}
|
||||
|
||||
|
||||
@@ -32,7 +32,7 @@ namespace Opm {
|
||||
*/
|
||||
PvtgOuterTable(Opm::DeckKeywordConstPtr keyword, int tableIdx)
|
||||
: ParentType(keyword,
|
||||
std::vector<std::string>{"RV", "P", "BG", "MUG"},
|
||||
std::vector<std::string>{"P", "RV", "BG", "MUG"},
|
||||
tableIdx)
|
||||
{}
|
||||
|
||||
@@ -51,7 +51,7 @@ namespace Opm {
|
||||
const std::vector<double> &getPressureColumn() const
|
||||
{ return ParentType::getColumn(0); }
|
||||
|
||||
const std::vector<double> &getOilSolubilityFactorColumn() const
|
||||
const std::vector<double> &getOilSolubilityColumn() const
|
||||
{ return ParentType::getColumn(1); }
|
||||
|
||||
const std::vector<double> &getGasFormationFactorColumn() const
|
||||
|
||||
Reference in New Issue
Block a user