19 #ifndef RFT_CONFIG2_HPP
20 #define RFT_CONFIG2_HPP
25 #include <unordered_map>
39 static std::string RFT2String(RFT enumValue);
40 static RFT RFTFromString(
const std::string &stringValue);
48 static std::string PLT2String(PLT enumValue);
49 static PLT PLTFromString(
const std::string& stringValue);
52 void first_open(
bool on);
53 void update(
const std::string& wname, PLT mode);
54 void update(
const std::string& wname, RFT mode);
57 bool rft(
const std::string& wname)
const;
59 bool plt(
const std::string& wname)
const;
60 std::optional<RFTConfig> next()
const;
61 std::optional<RFTConfig> well_open(
const std::string& wname)
const;
64 bool operator==(
const RFTConfig& data)
const;
66 template<
class Serializer>
69 serializer(first_open_rft);
70 serializer.template map<std::unordered_map<std::string, RFT>,
false>(rft_state);
71 serializer.template map<std::unordered_map<std::string, PLT>,
false>(plt_state);
72 serializer.template map<std::unordered_map<std::string, bool>,
false>(open_wells);
77 bool first_open_rft =
false;
78 std::unordered_map<std::string, RFT> rft_state;
79 std::unordered_map<std::string, PLT> plt_state;
80 std::unordered_map<std::string, bool> open_wells;
Definition: RFTConfig.hpp:30
Definition: Serializer.hpp:38
This class implements a small container which holds the transmissibility mulitpliers for all the face...
Definition: Exceptions.hpp:29