mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Merge pull request #755 from blattms/istl-consistent-rhs
Makes right hand side passed to linear solver consistent.
This commit is contained in:
commit
2f7a87aa4b
@ -195,6 +195,8 @@ namespace Opm
|
|||||||
// System RHS
|
// System RHS
|
||||||
Vector b(opA.getmat().N());
|
Vector b(opA.getmat().N());
|
||||||
std::copy(rhs, rhs+b.size(), b.begin());
|
std::copy(rhs, rhs+b.size(), b.begin());
|
||||||
|
// Make rhs consistent in the parallel case
|
||||||
|
comm.copyOwnerToAll(b,b);
|
||||||
// System solution
|
// System solution
|
||||||
Vector x(opA.getmat().M());
|
Vector x(opA.getmat().M());
|
||||||
x = 0.0;
|
x = 0.0;
|
||||||
|
Loading…
Reference in New Issue
Block a user