Merge pull request #3136 from akva2/cartertracydata_serialize

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

View File

@ -85,6 +85,22 @@ 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(timeConstant);
serializer(influxConstant);
serializer(waterDensity);
serializer(waterViscosity);
serializer(dimensionless_time);
serializer(dimensionless_pressure);
}
static CarterTracyData serializeObject()
{
return CarterTracyData{1.0, 2.0, 3.0, 4.0, 5.0, 6.0};
}
};
struct NumericAquiferData