Merge branch 'fix_const' into 'master'

add missing const

See merge request jschoeberl/netgen!143
This commit is contained in:
Joachim Schöberl 2019-03-09 20:29:11 +00:00
commit 35e3b9fe02

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;