diff --git a/flow/flow.cpp b/flow/flow.cpp index a80223248..e80981e02 100644 --- a/flow/flow.cpp +++ b/flow/flow.cpp @@ -60,6 +60,8 @@ #include #include #include +#include +#include #include #include diff --git a/flow/flow_tag.hpp b/flow/flow_tag.hpp index 388166720..7d189257e 100644 --- a/flow/flow_tag.hpp +++ b/flow/flow_tag.hpp @@ -42,6 +42,8 @@ #include #include #include +#include +#include //#include //#include diff --git a/opm/simulators/utils/ParallelRestart.cpp b/opm/simulators/utils/ParallelRestart.cpp index 19c0555bb..0cf951aa3 100644 --- a/opm/simulators/utils/ParallelRestart.cpp +++ b/opm/simulators/utils/ParallelRestart.cpp @@ -44,8 +44,6 @@ #include #include #include -#include -#include #include #include @@ -659,18 +657,6 @@ std::size_t packSize(const Group& data, packSize(data.productionProperties(), comm); } -std::size_t packSize(const WList& data, - Dune::MPIHelper::MPICommunicator comm) -{ - return packSize(data.wellList(), comm); -} - -std::size_t packSize(const WListManager& data, - Dune::MPIHelper::MPICommunicator comm) -{ - return packSize(data.lists(), comm); -} - std::size_t packSize(const GuideRateModel& data, Dune::MPIHelper::MPICommunicator comm) { @@ -1472,20 +1458,6 @@ void pack(const Group& data, pack(data.productionProperties(), buffer, position, comm); } -void pack(const WList& data, - std::vector& buffer, int& position, - Dune::MPIHelper::MPICommunicator comm) -{ - pack(data.wellList(), buffer, position, comm); -} - -void pack(const WListManager& data, - std::vector& buffer, int& position, - Dune::MPIHelper::MPICommunicator comm) -{ - pack(data.lists(), buffer, position, comm); -} - void pack(const GuideRateModel& data, std::vector& buffer, int& position, Dune::MPIHelper::MPICommunicator comm) @@ -2535,24 +2507,6 @@ void unpack(Group& data, injection, production); } -void unpack(WList& data, - std::vector& buffer, int& position, - Dune::MPIHelper::MPICommunicator comm) -{ - WList::storage ddata; - unpack(ddata, buffer, position, comm); - data = WList(ddata); -} - -void unpack(WListManager& data, - std::vector& buffer, int& position, - Dune::MPIHelper::MPICommunicator comm) -{ - std::map lists; - unpack(lists, buffer, position, comm); - data = WListManager(lists); -} - void unpack(GuideRateModel& data, std::vector& buffer, int& position, Dune::MPIHelper::MPICommunicator comm) @@ -2915,6 +2869,7 @@ INSTANTIATE_PACK(std::map,int>>) INSTANTIATE_PACK(std::map) INSTANTIATE_PACK(std::unordered_map) INSTANTIATE_PACK(std::unordered_map) +INSTANTIATE_PACK(std::unordered_set) INSTANTIATE_PACK(std::pair) INSTANTIATE_PACK(std::pair) INSTANTIATE_PACK(DynamicState) @@ -2923,7 +2878,6 @@ INSTANTIATE_PACK(DynamicState>) INSTANTIATE_PACK(DynamicState>) INSTANTIATE_PACK(DynamicState>) INSTANTIATE_PACK(DynamicState) -INSTANTIATE_PACK(DynamicState>) INSTANTIATE_PACK(DynamicVector) #undef INSTANTIATE_PACK diff --git a/opm/simulators/utils/ParallelRestart.hpp b/opm/simulators/utils/ParallelRestart.hpp index 581e72f42..2a212234f 100644 --- a/opm/simulators/utils/ParallelRestart.hpp +++ b/opm/simulators/utils/ParallelRestart.hpp @@ -74,8 +74,6 @@ class WellFoamProperties; class WellPolymerProperties; class WellSegments; class WellTracerProperties; -class WList; -class WListManager; namespace Mpi { @@ -450,8 +448,6 @@ ADD_PACK_PROTOTYPES(WellFoamProperties) ADD_PACK_PROTOTYPES(WellPolymerProperties) ADD_PACK_PROTOTYPES(WellSegments) ADD_PACK_PROTOTYPES(WellTracerProperties) -ADD_PACK_PROTOTYPES(WList) -ADD_PACK_PROTOTYPES(WListManager) } // end namespace Mpi diff --git a/tests/test_ParallelRestart.cpp b/tests/test_ParallelRestart.cpp index 05fbe855e..978f9e2ee 100644 --- a/tests/test_ParallelRestart.cpp +++ b/tests/test_ParallelRestart.cpp @@ -1643,7 +1643,7 @@ BOOST_AUTO_TEST_CASE(WList) { #ifdef HAVE_MPI Opm::WList val1({"test1", "test2", "test3"}); - auto val2 = PackUnpack(val1); + auto val2 = PackUnpack2(val1); DO_CHECKS(WList) #endif } @@ -1655,7 +1655,7 @@ BOOST_AUTO_TEST_CASE(WListManager) Opm::WList wl({"test1", "test2", "test3"}); std::map data{{"test", wl}, {"test2", wl}}; Opm::WListManager val1(data); - auto val2 = PackUnpack(val1); + auto val2 = PackUnpack2(val1); DO_CHECKS(WListManager) #endif }