Merge pull request #787 from atgeirr/serialize-with-dune-fem

Ensure serialization of the solution object also with dune-fem.
This commit is contained in:
Bård Skaflestad authored and GitHub committed 2023-02-17 13:16:10 +01:00
commit acf5ef823b
1 file changed
+6 -1
@@ -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