Silence warnings.

This commit is contained in:
Atgeirr Flø Rasmussen
2020-12-08 09:33:07 +01:00
parent 63e08d3545
commit dbb1d0e731
@@ -642,7 +642,7 @@ namespace Opm
virtual void reportConnections(data::Well& well, const PhaseUsage &pu, virtual void reportConnections(data::Well& well, const PhaseUsage &pu,
const WellMapType::value_type& wt, const WellMapType::value_type& wt,
const int* globalCellIdxMap) const const int* globalCellIdxMap) const override
{ {
using rt = data::Rates::opt; using rt = data::Rates::opt;
WellState::reportConnections(well, pu, wt, globalCellIdxMap); WellState::reportConnections(well, pu, wt, globalCellIdxMap);
@@ -1081,12 +1081,12 @@ namespace Opm
// Create a function that calls some function // Create a function that calls some function
// for all the individual data items to simplify // for all the individual data items to simplify
// the further code. // the further code.
auto iterateContainer = [this](auto& container, auto& func) { auto iterateContainer = [](auto& container, auto& func) {
for (auto& x : container) { for (auto& x : container) {
func(x.second); func(x.second);
} }
}; };
auto iterateRatesContainer = [this](auto& container, auto& func) { auto iterateRatesContainer = [](auto& container, auto& func) {
for (auto& x : container) { for (auto& x : container) {
if (x.second.first) if (x.second.first)
{ {