Ensure serialization of the solution object also with dune-fem.

This commit is contained in:
Atgeirr Flø Rasmussen
2023-02-17 11:26:39 +01:00
parent b27663795d
commit 4bc0869ebd

View File

@@ -1899,8 +1899,13 @@ public:
template<class Serializer>
void serializeOp(Serializer& serializer)
{
for (auto& sol : solution_)
for (auto& sol : solution_) {
#if HAVE_DUNE_FEM
serializer(sol->blockVector());
#else
serializer(*sol);
#endif
}
}
bool operator==(const FvBaseDiscretization& rhs) const