20#ifndef OPM_OUTPUT_CELLS_HPP
21#define OPM_OUTPUT_CELLS_HPP
23#include <opm/input/eclipse/Units/UnitSystem.hpp>
28namespace Opm {
namespace data {
58 RESTART_TRACER_SOLUTION,
69 UnitSystem::measure
dim{UnitSystem::measure::identity};
72 std::vector<double>
data{};
75 TargetType
target{TargetType::RESTART_SOLUTION};
78 explicit CellData(UnitSystem::measure m,
79 std::vector<double> x,
82 ,
data { std::move(x) }
86 bool operator==(
const CellData& cell2)
const
88 return (
dim == cell2.dim)
89 && (
target == cell2.target)
90 && (
data == cell2.data);
93 template <
class Serializer>
94 void serializeOp(Serializer& serializer)
96 serializer(this->
dim);
97 serializer(this->
data);
101 static CellData serializationTestObject()
104 UnitSystem::measure::runtime,
106 TargetType::RESTART_OPM_EXTENDED
This class implements a small container which holds the transmissibility mulitpliers for all the face...
Definition: Exceptions.hpp:30
Small struct that keeps track of data for output to restart/summary files.
Definition: Cells.hpp:67
UnitSystem::measure dim
Dimension of the data to write.
Definition: Cells.hpp:69
std::vector< double > data
Per-cell solution values.
Definition: Cells.hpp:72
TargetType target
File output destination.
Definition: Cells.hpp:75