mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-12-18 21:43:27 -06:00
Makes right hand side passed to linear solver consistent.
Due to the size of the overlap layer and the discretization scheme the rhs might not contain correct values for overlap cells. This commit makes sure they are correct by an additional communication step.
This commit is contained in:
parent
95f62e6e12
commit
50aba2c8f6
@ -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.copyOwnerToOverlap(b,b);
|
||||
// System solution
|
||||
Vector x(opA.getmat().M());
|
||||
x = 0.0;
|
||||
|
Loading…
Reference in New Issue
Block a user