From 1c054022095b1e41079b9f4c8ae43ec8b7b1c47b Mon Sep 17 00:00:00 2001 From: Tor Harald Sandve Date: Mon, 26 Jun 2017 08:40:30 +0200 Subject: [PATCH] Fix 2p case after rebase --- opm/autodiff/StandardWellsDense_impl.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/opm/autodiff/StandardWellsDense_impl.hpp b/opm/autodiff/StandardWellsDense_impl.hpp index c7f50afe8..87a954c4e 100644 --- a/opm/autodiff/StandardWellsDense_impl.hpp +++ b/opm/autodiff/StandardWellsDense_impl.hpp @@ -765,9 +765,9 @@ namespace Opm { setWellVariables(const WellState& xw) { const int nw = wells().number_of_wells; - // for two-phase numComp < numEq - //const int numComp = numComponents(); - for (int eqIdx = 0; eqIdx < numWellEq; ++eqIdx) { + // for two-phase numComp < numWellEq + const int numComp = numComponents(); + for (int eqIdx = 0; eqIdx < numComp; ++eqIdx) { for (int w = 0; w < nw; ++w) { const unsigned int idx = nw * eqIdx + w; assert( idx < wellVariables_.size() );