20 #ifndef OPM_OUTPUT_DATA_SOLUTION_HPP 21 #define OPM_OUTPUT_DATA_SOLUTION_HPP 23 #include <opm/output/data/Cells.hpp> 25 #include <opm/input/eclipse/Units/UnitSystem.hpp> 32 namespace Opm {
namespace data {
34 class Solution :
public std::map<std::string, data::CellData>
36 using Base = std::map<std::string, data::CellData>;
44 bool has(
const std::string& )
const;
51 std::vector<T>& data(
const std::string& );
54 const std::vector<T>& data(
const std::string& )
const;
56 std::pair<iterator, bool> insert(std::string name,
61 std::pair<iterator, bool> insert(std::string name,
66 std::pair<iterator, bool> insert(std::string name,
73 template<
class Serializer>
76 serializer(static_cast<Base&>(*
this));
80 static Solution serializationTestObject()
84 sol.insert({
"test_data", CellData::serializationTestObject()});
95 #endif // OPM_OUTPUT_DATA_SOLUTION_HPP Definition: Solution.hpp:34
This class implements a small container which holds the transmissibility mulitpliers for all the face...
Definition: Exceptions.hpp:30
Definition: UnitSystem.hpp:34
Class for (de-)serializing.
Definition: Serializer.hpp:94