Merge pull request #3124 from akva2/nodedata_serialize

data::NodeData: add serializer support
This commit is contained in:
Bård Skaflestad
2022-09-05 11:06:57 +02:00
committed by GitHub

View File

@@ -167,6 +167,17 @@ namespace Opm { namespace data {
void init_json(Json::JsonObject& json_data) const {
json_data.add_item("pressure", this->pressure);
}
template<class Serializer>
void serializeOp(Serializer& serializer)
{
serializer(pressure);
}
static NodeData serializeObject()
{
return NodeData{10.0};
}
};
class GroupAndNetworkValues {