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:
Andreas Lauser
2014-01-16 13:14:32 +01:00
parent 27efd0d1fa
commit 1c39df2d57
5 changed files with 44 additions and 31 deletions

View File

@@ -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)
{}

View File

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