Intercept month keywords earlier in Summary creation

This commit is contained in:
Joakim Hove
2021-08-30 17:29:44 +02:00
parent 50cb0b5da2
commit 5b8d24bf2f

View File

@@ -3620,6 +3620,9 @@ namespace {
make_default_nodes(const std::string& keyword,
const Opm::Schedule& sched)
{
if (Opm::TimeService::valid_month(keyword))
return {};
auto nodes = std::vector<Opm::EclIO::SummaryNode> {};
auto category = Opm::parseKeywordCategory(keyword);
auto type = Opm::parseKeywordType(keyword);
@@ -3739,9 +3742,6 @@ void Opm::out::Summary::SummaryImplementation::configureUDQ(const EclipseState&
if (node.is_user_defined())
continue;
if (TimeService::valid_month(node.keyword))
continue;
throw std::logic_error {
fmt::format("Evaluation function for: {} not found ", node.keyword)
};