adjust serialization of VFPProdTable

This commit is contained in:
Arne Morten Kvarving
2020-02-12 15:38:02 +01:00
parent 649818730c
commit 99c019a6bb
6 changed files with 21 additions and 37 deletions

View File

@@ -321,16 +321,9 @@ Opm::VFPInjTable getVFPInjTable()
Opm::VFPProdTable getVFPProdTable()
{
Opm::VFPProdTable::array_type table;
Opm::VFPProdTable::extents shape;
shape[0] = 1;
shape[1] = 2;
shape[2] = 3;
shape[3] = 4;
shape[4] = 5;
table.resize(shape);
double foo = 1.0;
for (size_t i = 0; i < table.num_elements(); ++i)
*(table.data() + i) = foo++;
table.resize(1*2*3*4*5);
std::iota(table.begin(), table.end(), 1.0);
return Opm::VFPProdTable(1, 2.0, Opm::VFPProdTable::FLO_OIL,
Opm::VFPProdTable::WFR_WOR,
Opm::VFPProdTable::GFR_GLR,