mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Fix 2p case after rebase
This commit is contained in:
parent
1bc2550541
commit
1c05402209
@ -765,9 +765,9 @@ namespace Opm {
|
|||||||
setWellVariables(const WellState& xw)
|
setWellVariables(const WellState& xw)
|
||||||
{
|
{
|
||||||
const int nw = wells().number_of_wells;
|
const int nw = wells().number_of_wells;
|
||||||
// for two-phase numComp < numEq
|
// for two-phase numComp < numWellEq
|
||||||
//const int numComp = numComponents();
|
const int numComp = numComponents();
|
||||||
for (int eqIdx = 0; eqIdx < numWellEq; ++eqIdx) {
|
for (int eqIdx = 0; eqIdx < numComp; ++eqIdx) {
|
||||||
for (int w = 0; w < nw; ++w) {
|
for (int w = 0; w < nw; ++w) {
|
||||||
const unsigned int idx = nw * eqIdx + w;
|
const unsigned int idx = nw * eqIdx + w;
|
||||||
assert( idx < wellVariables_.size() );
|
assert( idx < wellVariables_.size() );
|
||||||
|
Loading…
Reference in New Issue
Block a user