Skip to content
Snippets Groups Projects
Commit 58e4d8a3 authored by Martin Nolte's avatar Martin Nolte
Browse files

[release] consistently use std::multiplies in CollectiveCommunication::prod

Somehow, the vector version of CollectiveCommunication< MPI_Comm >::prod
passed std::plus to allreduce (instead of std::multiplies). This patch
corrects this flaw.
parent ece066f1
No related branches found
No related tags found
No related merge requests found
......@@ -199,7 +199,7 @@ namespace Dune
template<typename T>
int prod (T* inout, int len) const
{
return allreduce<std::plus<T> >(inout,len);
return allreduce<std::multiplies<T> >(inout,len);
}
//! @copydoc CollectiveCommunication::min
......
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