From 7495bfa6c4d97c90bc59a9ae9798a82435622013 Mon Sep 17 00:00:00 2001 From: Markus Blatt Date: Wed, 26 Mar 2014 10:23:11 +0100 Subject: [PATCH] [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. --- opm/core/linalg/LinearSolverIstl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opm/core/linalg/LinearSolverIstl.cpp b/opm/core/linalg/LinearSolverIstl.cpp index e679dad0a..1871b8f8d 100644 --- a/opm/core/linalg/LinearSolverIstl.cpp +++ b/opm/core/linalg/LinearSolverIstl.cpp @@ -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;