Merge pull request #4447 from akva2/eclproblem_serialize

EclProblem: add serialization support
This commit is contained in:
Bård Skaflestad 2023-02-16 11:56:16 +01:00 committed by GitHub
commit 12b0e1c2de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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,