mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
adjust serialization of VFPProdTable
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user