Fix the parallel L-infinity norm calculation.

It was computing a global maximum before, which obviously is not the same thing.
This commit is contained in:
Markus Blatt 2016-06-07 15:10:25 +02:00
parent 5d38c77881
commit 82d6d949db

View File

@ -1104,7 +1104,7 @@ namespace detail {
const ParallelISTLInformation& real_info = const ParallelISTLInformation& real_info =
boost::any_cast<const ParallelISTLInformation&>(pinfo); boost::any_cast<const ParallelISTLInformation&>(pinfo);
double result=0; double result=0;
real_info.computeReduction(a.value(), Reduction::makeGlobalMaxFunctor<double>(), result); real_info.computeReduction(a.value(), Reduction::makeLInfinityNormFunctor<double>(), result);
return result; return result;
} }
else else