Skip to content
Snippets Groups Projects
Commit 0ee4e4af authored by Bernd Flemisch's avatar Bernd Flemisch
Browse files

merge from implicit branch: serialize the elements in for cell centered

models, include ccpropertydefaults at the end of ccproperties analogous
to box. Reviewed by gruenich.


git-svn-id: svn://svn.iws.uni-stuttgart.de/DUMUX/dumux/trunk@9874 2fb0f335-1f38-0410-981e-8018bf24f1b0
parents ecbee1ae 3255b845
No related merge requests found
......@@ -50,4 +50,6 @@ NEW_TYPE_TAG(CCModel, INHERITS_FROM(ImplicitBase));
// \}
#include "ccpropertydefaults.hh"
#endif
......@@ -510,7 +510,12 @@ public:
*/
template <class Restarter>
void serialize(Restarter &res)
{ res.template serializeEntities<dim>(asImp_(), this->gridView_()); }
{
if (isBox)
res.template serializeEntities<dim>(asImp_(), this->gridView_());
else
res.template serializeEntities<0>(asImp_(), this->gridView_());
}
/*!
* \brief Deserializes the state of the model.
......@@ -522,7 +527,11 @@ public:
template <class Restarter>
void deserialize(Restarter &res)
{
res.template deserializeEntities<dim>(asImp_(), this->gridView_());
if (isBox)
res.template deserializeEntities<dim>(asImp_(), this->gridView_());
else
res.template deserializeEntities<0>(asImp_(), this->gridView_());
prevSol() = curSol();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment