add missing const

This commit is contained in:
Lukas 2019-03-04 14:24:18 +01:00
parent 3673b7c77b
commit 758e1ca4ec

View File

@ -153,7 +153,7 @@ namespace ngcore
/** --- collectives --- **/
template <typename T, typename T2 = decltype(GetMPIType<T>())>
T Reduce (T d, const MPI_Op & op, int root = 0)
T Reduce (T d, const MPI_Op & op, int root = 0) const
{
if (size == 1) return d;