Skip to content
Snippets Groups Projects
Commit 8ea612fd authored by Oliver Sander's avatar Oliver Sander Committed by sander
Browse files

Set output vector of reduceAdd to 0 before starting to add stuff to it.

No idea why valgrind didn't complain about this.

[[Imported from SVN: r9758]]
parent 6384b92d
No related branches found
No related tags found
No related merge requests found
......@@ -52,6 +52,7 @@ public:
transferVector(localVector);
VectorType globalVector(guIndex.nGlobalEntity());
globalVector = 0;
for (size_t k = 0; k < globalVectorEntries.size(); ++k)
globalVector[globalVectorEntries[k].globalIndex_] += globalVectorEntries[k].value_;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment