mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-12-25 16:51:00 -06:00
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:
parent
19131fdaa3
commit
e665f17269
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user