add missing const

This commit is contained in:
Lukas 2019-03-04 14:24:18 +01:00
parent 10ef58b54b
commit 335bb4d424

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;