removed compiler warnings

This commit is contained in:
hnil
2022-05-18 13:51:39 +02:00
committed by Atgeirr Flø Rasmussen
parent 66c4a8c862
commit 8f4cf8a952
4 changed files with 6 additions and 10 deletions

View File

@@ -753,7 +753,7 @@ namespace Opm
addWellPressureEquations(PressureMatrix& jacobian,
const BVector& weights,
const int pressureVarIndex,
const bool use_well_weights,
const bool /*use_well_weights*/,
const WellState& well_state) const
{
// Add the pressure contribution to the cpr system for the well
@@ -768,7 +768,7 @@ namespace Opm
const auto& bw = weights[row_index];
double matel = 0.0;
for(int i = 0; i< bw.size(); ++i){
for(size_t i = 0; i< bw.size(); ++i){
matel += bw[i]*(*colC)[seg_pressure_var_ind][i];
}
jacobian[row_index][welldof_ind] += matel;
@@ -799,7 +799,7 @@ namespace Opm
for (auto colB = this->duneB_[rowB].begin(), endB = this->duneB_[rowB].end(); colB != endB; ++colB) {
const auto col_index = colB.index();
double matel = 0.0;
for(int i = 0; i< bw.size(); ++i){
for(size_t i = 0; i< bw.size(); ++i){
matel += bw[i] *(*colB)[i][pressureVarIndex];
}
jacobian[welldof_ind][col_index] += matel;