remove redundant initialization

This commit is contained in:
Arne Morten Kvarving committed 2026-03-05 09:32:47 +01:00
1 parent 620e1d49c7
commit f435b43538
1 file changed
+1 -2
+1 -2
View File
@@ -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);