[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:
Markus Blatt 2014-03-26 10:23:11 +01:00
parent 23f19584cb
commit 8653ffe327

View File

@ -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;