From 972b911495e3b759fb500d5a95c972ebf139a823 Mon Sep 17 00:00:00 2001 From: Kai Bao Date: Fri, 7 Apr 2017 16:28:42 +0200 Subject: [PATCH] fixing two warnings. no function change. --- opm/autodiff/StandardWellsDense_impl.hpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/opm/autodiff/StandardWellsDense_impl.hpp b/opm/autodiff/StandardWellsDense_impl.hpp index dd7501a28..be5a51fe0 100644 --- a/opm/autodiff/StandardWellsDense_impl.hpp +++ b/opm/autodiff/StandardWellsDense_impl.hpp @@ -262,7 +262,7 @@ namespace Opm { { const int np = wells().number_of_phases; - assert (mob.size() == np); + assert (int(mob.size()) == np); const auto& intQuants = *(ebosSimulator.model().cachedIntensiveQuantities(cell_idx, /*timeIdx=*/0)); const auto& materialLawManager = ebosSimulator.problem().materialLawManager(); @@ -2664,7 +2664,6 @@ namespace Opm { StandardWellsDense:: wellHasTHPConstraints(const int well_index) const { - const WellType& well_type = wells().type[well_index]; const WellControls* well_control = wells().ctrls[well_index]; const int nwc = well_controls_get_num(well_control); for (int ctrl_index = 0; ctrl_index < nwc; ++ctrl_index) {