remove old serialization support for DynamicVector

This commit is contained in:
Arne Morten Kvarving
2020-03-18 09:29:02 +01:00
parent faffa0678b
commit eb53bb0db9
2 changed files with 0 additions and 34 deletions

View File

@@ -211,12 +211,6 @@ std::size_t packSize(const DynamicState<T>& data, Dune::MPIHelper::MPICommunicat
return packSize(split.first, comm) + packSize(split.second, comm);
}
template<class T>
std::size_t packSize(const DynamicVector<T>& data, Dune::MPIHelper::MPICommunicator comm)
{
return packSize(data.data(), comm);
}
std::size_t packSize(const char* str, Dune::MPIHelper::MPICommunicator comm)
{
#if HAVE_MPI
@@ -814,13 +808,6 @@ void pack(const DynamicState<T>& data, std::vector<char>& buffer, int& position,
pack(split.second, buffer, position, comm);
}
template<class T>
void pack(const DynamicVector<T>& data, std::vector<char>& buffer, int& position,
Dune::MPIHelper::MPICommunicator comm)
{
pack(data.data(), buffer, position, comm);
}
void pack(const char* str, std::vector<char>& buffer, int& position,
Dune::MPIHelper::MPICommunicator comm)
{
@@ -1458,15 +1445,6 @@ void unpack(DynamicState<T>& data, std::vector<char>& buffer, int& position,
reconstructDynState(unique, indices, data);
}
template<class T>
void unpack(DynamicVector<T>& data, std::vector<char>& buffer, int& position,
Dune::MPIHelper::MPICommunicator comm)
{
std::vector<T> ddata;
unpack(ddata, buffer, position, comm);
data = DynamicVector<T>(ddata);
}
void unpack(char* str, std::size_t length, std::vector<char>& buffer, int& position,
Dune::MPIHelper::MPICommunicator comm)
{