Merge pull request #1364 from akva2/quell_warnings

Quell warnings
This commit is contained in:
Atgeirr Flø Rasmussen 2017-12-05 20:18:06 +01:00 committed by GitHub
commit 7ba38de135
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1170,8 +1170,6 @@ namespace Opm {
const int rctrl = SimFIBODetails::resv_control(ctrl);
if (0 <= rctrl) {
const std::vector<double>::size_type off = (*rp) * np;
const int fipreg = 0; // Hack. Ignore FIP regions.
rateConverter_->calcCoeff(fipreg, pvtreg, distr);
@ -1181,7 +1179,7 @@ namespace Opm {
// original distr contains 0 and 1 to indicate phases under control
const double* old_distr = well_controls_get_current_distr(ctrl);
for (int p = 0; p < np; ++p) {
for (size_t p = 0; p < np; ++p) {
distr[p] *= old_distr[p];
}
}