Merge pull request #3135 from akva2/fetkovichdata_serialize

data::FetkovichData: add serializer support
This commit is contained in:
Bård Skaflestad 2022-09-05 16:16:59 +02:00 committed by GitHub
commit 9da5bbb463
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -51,6 +51,19 @@ namespace Opm { namespace data {
// MessageBufferType API should be similar to Dune::MessageBufferIF
template <class MessageBufferType>
void read(MessageBufferType& buffer);
template<class Serializer>
void serializeOp(Serializer& serializer)
{
serializer(initVolume);
serializer(prodIndex);
serializer(timeConstant);
}
static FetkovichData serializeObject()
{
return FetkovichData{1.0, 2.0, 3.0};
}
};
struct CarterTracyData