Merge pull request #755 from blattms/istl-consistent-rhs

Makes right hand side passed to linear solver consistent.
This commit is contained in:
Atgeirr Flø Rasmussen 2015-02-16 12:48:28 +01:00
commit 2f7a87aa4b

View File

@ -195,6 +195,8 @@ namespace Opm
// System RHS
Vector b(opA.getmat().N());
std::copy(rhs, rhs+b.size(), b.begin());
// Make rhs consistent in the parallel case
comm.copyOwnerToAll(b,b);
// System solution
Vector x(opA.getmat().M());
x = 0.0;