EclProblem: add serialization support

no test for this, it's too involved to set one up for
very little extra coverage
This commit is contained in:
Arne Morten Kvarving 2023-02-02 11:52:08 +01:00
parent 19131fdaa3
commit e665f17269

View File

@ -595,6 +595,9 @@ class EclProblem : public GetPropType<TypeTag, Properties::BaseProblem>
GetPropType<TypeTag, Properties::FluidSystem>,
GetPropType<TypeTag, Properties::Scalar>>
{
using BaseType = EclGenericProblem<GetPropType<TypeTag, Properties::GridView>,
GetPropType<TypeTag, Properties::FluidSystem>,
GetPropType<TypeTag, Properties::Scalar>>;
using ParentType = GetPropType<TypeTag, Properties::BaseProblem>;
using Implementation = GetPropType<TypeTag, Properties::Problem>;
@ -2048,6 +2051,16 @@ public:
return eclWriter_;
}
template<class Serializer>
void serializeOp(Serializer& serializer)
{
serializer(static_cast<BaseType&>(*this));
serializer(drift_);
serializer(wellModel_);
serializer(aquiferModel_);
serializer(tracerModel_);
}
private:
template<class UpdateFunc>
void updateProperty_(const std::string& failureMsg,