Merge pull request #3124 from akva2/nodedata_serialize
data::NodeData: add serializer support
This commit is contained in:
commit
a7ecd2aaac
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user