[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 0cb3f861e7
commit d1ccbf8446

View File

@@ -168,7 +168,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;