mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-12-26 17:20:59 -06:00
removed compiler warnings
This commit is contained in:
parent
66c4a8c862
commit
8f4cf8a952
@ -91,7 +91,6 @@ namespace Opm
|
||||
using AbstractOperatorType = Dune::AssembledLinearOperator<Matrix, Vector, Vector>;
|
||||
using AbstractPreconditionerType = Dune::PreconditionerWithUpdate<Vector, Vector>;
|
||||
using WellModelOperator = WellModelAsLinearOperator<WellModel, Vector, Vector>;
|
||||
using ParOperatorType = WellModelGhostLastMatrixAdapter<Matrix, Vector, Vector, true>;
|
||||
using ElementMapper = GetPropType<TypeTag, Properties::ElementMapper>;
|
||||
constexpr static std::size_t pressureIndex = GetPropType<TypeTag, Properties::Indices>::pressureSwitchIdx;
|
||||
|
||||
@ -457,8 +456,6 @@ namespace Opm
|
||||
return false;
|
||||
}
|
||||
if (this->parameters_.cpr_reuse_setup_ == 4) {
|
||||
const int newton_iteration = this->simulator_.model().newtonMethod().numIterations();
|
||||
//bool create = newton_iteration == 0;
|
||||
int step = this->parameters_.cpr_reuse_interval_;
|
||||
bool create = ((calls_%step) == 0);
|
||||
return create;
|
||||
|
@ -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;
|
||||
|
@ -2257,8 +2257,7 @@ namespace Opm
|
||||
const auto& bw = bweights[0];
|
||||
double matel = 0;
|
||||
for (size_t i = 0; i < bw.size(); ++i) {
|
||||
const double w = bw[i];
|
||||
matel += (*colB)[i][pressureVarIndex] * bw[i];
|
||||
matel += (*colB)[i][pressureVarIndex] * bw[i];
|
||||
}
|
||||
jacobian[welldof_ind][col_index] = matel;
|
||||
}
|
||||
|
@ -238,8 +238,8 @@ namespace Opm {
|
||||
DenseMatrix transposeDenseDynMatrix(const DenseMatrix& M)
|
||||
{
|
||||
DenseMatrix tmp{M.cols(), M.rows()};
|
||||
for (int i = 0; i < M.rows(); ++i) {
|
||||
for (int j = 0; j < M.cols(); ++j) {
|
||||
for (size_t i = 0; i < M.rows(); ++i) {
|
||||
for (size_t j = 0; j < M.cols(); ++j) {
|
||||
tmp[j][i] = M[i][j];
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user