mirror of
https://github.com/OPM/opm-simulators.git
synced 2026-10-24 22:57:42 -05:00
remove redundant initialization
This commit is contained in:
1 parent
620e1d49c7
commit
f435b43538
1 file changed
+1
-2
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user