Merge pull request #1645 from akva2/janitoring

quell compiler warnings
This commit is contained in:
Joakim Hove
2020-03-26 17:33:25 +01:00
committed by GitHub
2 changed files with 10 additions and 0 deletions
+6
View File
@@ -41,6 +41,9 @@ constexpr bool use_number(Opm::EclIO::SummaryNode::Category category) {
case Opm::EclIO::SummaryNode::Category::Well:
return false;
}
static_assert("Unhandled category in use_number");
return false; // Never reached, but quells compiler warning
}
constexpr bool use_name(Opm::EclIO::SummaryNode::Category category) {
@@ -57,6 +60,9 @@ constexpr bool use_name(Opm::EclIO::SummaryNode::Category category) {
case Opm::EclIO::SummaryNode::Category::Region:
return false;
}
static_assert("Unhandled category in use_name");
return false; // Never reached, but quells compiler warning
}
};
+4
View File
@@ -1333,6 +1333,8 @@ inline std::vector<Opm::Well> find_wells( const Opm::Schedule& schedule,
case Opm::EclIO::SummaryNode::Category::Miscellaneous:
return {};
}
throw std::runtime_error("Unhandled summary node category in find_wells");
}
bool need_wells(const Opm::EclIO::SummaryNode& node) {
@@ -1352,6 +1354,8 @@ bool need_wells(const Opm::EclIO::SummaryNode& node) {
case Opm::EclIO::SummaryNode::Category::Block:
return false;
}
throw std::runtime_error("Unhandled summary node category in need_wells");
}
void eval_udq(const Opm::Schedule& schedule, std::size_t sim_step, Opm::SummaryState& st)