use normal shared ptrs

This commit is contained in:
Arne Morten Kvarving 2020-03-06 09:57:07 +01:00
parent c3e3524753
commit ab0b5dcec6
2 changed files with 5 additions and 5 deletions

View File

@ -4215,7 +4215,7 @@ void unpack(TableContainer& data, std::vector<char>& buffer, int& position,
unpack(id, buffer, position, comm);
SimpleTable table;
unpack(table, buffer, position, comm);
data.addTable(id, std::make_shared<const SimpleTable>(table));
data.addTable(id, std::make_shared<SimpleTable>(table));
}
}

View File

@ -312,8 +312,8 @@ Opm::TableContainer getTableContainer()
data.insert({"test3", getTableColumn()});
Opm::SimpleTable tab1(getTableSchema(), data, true);
Opm::TableContainer result(2);
result.addTable(0, std::make_shared<const Opm::SimpleTable>(tab1));
result.addTable(1, std::make_shared<const Opm::SimpleTable>(tab1));
result.addTable(0, std::make_shared<Opm::SimpleTable>(tab1));
result.addTable(1, std::make_shared<Opm::SimpleTable>(tab1));
return result;
}
@ -760,8 +760,8 @@ BOOST_AUTO_TEST_CASE(TableContainer)
data.insert({"test3", getTableColumn()});
Opm::SimpleTable tab1(getTableSchema(), data, true);
Opm::TableContainer val1(2);
val1.addTable(0, std::make_shared<const Opm::SimpleTable>(tab1));
val1.addTable(1, std::make_shared<const Opm::SimpleTable>(tab1));
val1.addTable(0, std::make_shared<Opm::SimpleTable>(tab1));
val1.addTable(1, std::make_shared<Opm::SimpleTable>(tab1));
auto val2 = PackUnpack(val1);
DO_CHECKS(TableContainer)
#endif