mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Merge pull request #2362 from joakim-hove/serialize-dent
Serialize density-temparture class DenT
This commit is contained in:
@@ -87,6 +87,7 @@
|
||||
#include <opm/parser/eclipse/EclipseState/Tables/ColumnSchema.hpp>
|
||||
#include <opm/parser/eclipse/EclipseState/Tables/Eqldims.hpp>
|
||||
#include <opm/parser/eclipse/EclipseState/Tables/FlatTable.hpp>
|
||||
#include <opm/parser/eclipse/EclipseState/Tables/DenT.hpp>
|
||||
#include <opm/parser/eclipse/EclipseState/Tables/JFunc.hpp>
|
||||
#include <opm/parser/eclipse/EclipseState/Tables/PlymwinjTable.hpp>
|
||||
#include <opm/parser/eclipse/EclipseState/Tables/PvtgTable.hpp>
|
||||
@@ -229,6 +230,13 @@ Opm::TableColumn getTableColumn()
|
||||
}
|
||||
|
||||
|
||||
Opm::DenT getDenT() {
|
||||
std::vector<Opm::DenT::entry> records;
|
||||
records.emplace_back(1,2,3);
|
||||
records.emplace_back(4,5,6);
|
||||
return Opm::DenT(records);
|
||||
}
|
||||
|
||||
Opm::SimpleTable getSimpleTable()
|
||||
{
|
||||
Opm::OrderedMap<std::string, Opm::TableColumn> data;
|
||||
@@ -1209,6 +1217,10 @@ BOOST_AUTO_TEST_CASE(TableManager)
|
||||
true,
|
||||
true,
|
||||
jfunc,
|
||||
getDenT(),
|
||||
getDenT(),
|
||||
getDenT(),
|
||||
77,
|
||||
1.0);
|
||||
auto val2 = PackUnpack(val1);
|
||||
DO_CHECKS(TableManager)
|
||||
@@ -2462,6 +2474,14 @@ BOOST_AUTO_TEST_CASE(Fault)
|
||||
#endif
|
||||
}
|
||||
|
||||
BOOST_AUTO_TEST_CASE(DenT)
|
||||
{
|
||||
#ifdef HAVE_MPI
|
||||
Opm::DenT val1 = getDenT();
|
||||
auto val2 = PackUnpack(val1);
|
||||
DO_CHECKS(DenT)
|
||||
#endif
|
||||
}
|
||||
|
||||
BOOST_AUTO_TEST_CASE(FaultCollection)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user