Fix 2p case after rebase

This commit is contained in:
Tor Harald Sandve 2017-06-26 08:40:30 +02:00
parent 1bc2550541
commit 1c05402209

View File

@ -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() );