mirror of
https://github.com/OPM/opm-simulators.git
synced 2026-11-03 12:47:42 -06:00
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:
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
|
||||
|
||||
Reference in new issue
Block a user