[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 909d3c9019
commit 7495bfa6c4

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;