mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
use normal shared ptrs
This commit is contained in:
parent
c3e3524753
commit
ab0b5dcec6
@ -4215,7 +4215,7 @@ void unpack(TableContainer& data, std::vector<char>& buffer, int& position,
|
|||||||
unpack(id, buffer, position, comm);
|
unpack(id, buffer, position, comm);
|
||||||
SimpleTable table;
|
SimpleTable table;
|
||||||
unpack(table, buffer, position, comm);
|
unpack(table, buffer, position, comm);
|
||||||
data.addTable(id, std::make_shared<const SimpleTable>(table));
|
data.addTable(id, std::make_shared<SimpleTable>(table));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -312,8 +312,8 @@ Opm::TableContainer getTableContainer()
|
|||||||
data.insert({"test3", getTableColumn()});
|
data.insert({"test3", getTableColumn()});
|
||||||
Opm::SimpleTable tab1(getTableSchema(), data, true);
|
Opm::SimpleTable tab1(getTableSchema(), data, true);
|
||||||
Opm::TableContainer result(2);
|
Opm::TableContainer result(2);
|
||||||
result.addTable(0, std::make_shared<const Opm::SimpleTable>(tab1));
|
result.addTable(0, std::make_shared<Opm::SimpleTable>(tab1));
|
||||||
result.addTable(1, std::make_shared<const Opm::SimpleTable>(tab1));
|
result.addTable(1, std::make_shared<Opm::SimpleTable>(tab1));
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -760,8 +760,8 @@ BOOST_AUTO_TEST_CASE(TableContainer)
|
|||||||
data.insert({"test3", getTableColumn()});
|
data.insert({"test3", getTableColumn()});
|
||||||
Opm::SimpleTable tab1(getTableSchema(), data, true);
|
Opm::SimpleTable tab1(getTableSchema(), data, true);
|
||||||
Opm::TableContainer val1(2);
|
Opm::TableContainer val1(2);
|
||||||
val1.addTable(0, std::make_shared<const Opm::SimpleTable>(tab1));
|
val1.addTable(0, std::make_shared<Opm::SimpleTable>(tab1));
|
||||||
val1.addTable(1, std::make_shared<const Opm::SimpleTable>(tab1));
|
val1.addTable(1, std::make_shared<Opm::SimpleTable>(tab1));
|
||||||
auto val2 = PackUnpack(val1);
|
auto val2 = PackUnpack(val1);
|
||||||
DO_CHECKS(TableContainer)
|
DO_CHECKS(TableContainer)
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user