mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-12-18 21:43:27 -06:00
[bugfix] Use the size of the vector for the copying.
The last patch did not compile as there was no size member in scope. Therefore this patch resorts to using the size of the vector.
This commit is contained in:
parent
23f19584cb
commit
8653ffe327
@ -189,7 +189,7 @@ namespace Opm
|
||||
{
|
||||
// System RHS
|
||||
Vector b(opA.getmat().N());
|
||||
std::copy(rhs, rhs + size, b.begin());
|
||||
std::copy(rhs, rhs+b.size(), b.begin());
|
||||
// System solution
|
||||
Vector x(opA.getmat().M());
|
||||
x = 0.0;
|
||||
|
Loading…
Reference in New Issue
Block a user