mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
fixed bug in scaling of rhs for cpr
This commit is contained in:
parent
31f4c01938
commit
b27e56e386
@ -769,11 +769,11 @@ protected:
|
||||
}
|
||||
block[pressureEqnIndex] = neweq;
|
||||
}
|
||||
BlockVector newrhs(0.0);
|
||||
Scalar newrhs(0.0);
|
||||
for (std::size_t ii = 0; ii < brhs.size(); ii++) {
|
||||
newrhs += bweights[ii]*brhs[ii];
|
||||
}
|
||||
brhs = newrhs;
|
||||
brhs[pressureEqnIndex] = newrhs;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user