From f435b435381fabb533d7575eec6054139122266e Mon Sep 17 00:00:00 2001 From: Arne Morten Kvarving Date: Thu, 5 Mar 2026 09:26:37 +0100 Subject: [PATCH] remove redundant initialization --- tests/test_preconditionerfactory.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/test_preconditionerfactory.cpp b/tests/test_preconditionerfactory.cpp index 374cf60689..66b3800878 100644 --- a/tests/test_preconditionerfactory.cpp +++ b/tests/test_preconditionerfactory.cpp @@ -259,8 +259,7 @@ public: void applyscaleadd(field_type alpha, const Vec& x, Vec& y) const override { Vec temp1 = x; - Vec temp2 = x; // For size. - temp2 = 0.0; + Vec temp2(x.size()); for (int rr = 0; rr < repeats_; ++rr) { // mv below means: temp2 = matrix_ * temp1; matrix_.mv(temp1, temp2);