ACTIONX will handle WLIST well arguments

This commit is contained in:
Joakim Hove
2020-07-09 07:39:03 +02:00
parent f4f993586a
commit f500adba24
7 changed files with 97 additions and 31 deletions

View File

@@ -25,6 +25,7 @@
#include <map>
#include <opm/parser/eclipse/EclipseState/Schedule/SummaryState.hpp>
#include <opm/parser/eclipse/EclipseState/Schedule/Well/WListManager.hpp>
namespace Opm {
namespace Action {
@@ -37,7 +38,7 @@ namespace Action {
class Context {
public:
explicit Context(const SummaryState& summary_state);
explicit Context(const SummaryState& summary_state, const WListManager& wlm);
/*
The get methods will first check the internal storage in the 'values' map
@@ -50,9 +51,11 @@ public:
void add(const std::string& func, double value);
std::vector<std::string> wells(const std::string& func) const;
const WListManager& wlist_manager() const;
private:
const SummaryState& summary_state;
const WListManager& wlm;
std::map<std::string, double> values;
};
}