mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-12-18 21:43:27 -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
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user