From 34fa8914f6028d9f4327f851af9550b9d224197f Mon Sep 17 00:00:00 2001 From: Arne Morten Kvarving Date: Thu, 2 Jan 2025 12:42:17 +0100 Subject: [PATCH] cosmetics --- opm/simulators/wells/BlackoilWellModel_impl.hpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/opm/simulators/wells/BlackoilWellModel_impl.hpp b/opm/simulators/wells/BlackoilWellModel_impl.hpp index 4f4a683cf..002df0675 100644 --- a/opm/simulators/wells/BlackoilWellModel_impl.hpp +++ b/opm/simulators/wells/BlackoilWellModel_impl.hpp @@ -1974,16 +1974,16 @@ namespace Opm { { int nw = this->numLocalWellsEnd(); int rdofs = local_num_cells_; - for(int i=0; i < nw; i++){ + for (int i = 0; i < nw; ++i) { int wdof = rdofs + i; jacobian.entry(wdof,wdof) = 1.0;// better scaling ? } - std::vector> wellconnections = this->getMaxWellConnections(); - for(int i=0; i < nw; i++){ + const auto wellconnections = this->getMaxWellConnections(); + for (int i = 0; i < nw; ++i) { const auto& perfcells = wellconnections[i]; - for(int perfcell : perfcells){ + for (int perfcell : perfcells) { int wdof = rdofs + i; - jacobian.entry(wdof,perfcell) = 0.0; + jacobian.entry(wdof, perfcell) = 0.0; jacobian.entry(perfcell, wdof) = 0.0; } }