From: Martin Kronbichler Date: Wed, 19 Nov 2014 21:08:51 +0000 (+0100) Subject: Fix undefined symbol in MPI::MinMaxAvg without MPI, commit 97bd7e2. X-Git-Tag: v8.2.0-rc1~55^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F257%2Fhead;p=dealii.git Fix undefined symbol in MPI::MinMaxAvg without MPI, commit 97bd7e2. --- diff --git a/source/base/mpi.cc b/source/base/mpi.cc index dd05f4361c..3fc0077a91 100644 --- a/source/base/mpi.cc +++ b/source/base/mpi.cc @@ -226,18 +226,6 @@ namespace Utilities - MinMaxAvg::MinMaxAvg () - : - sum (0.), - min (std::numeric_limits::max()), - max (-min), - min_index (0), - max_index (0), - avg (0) - {} - - - MinMaxAvg min_max_avg(const double my_value, const MPI_Comm &mpi_communicator) @@ -302,7 +290,6 @@ namespace Utilities - MinMaxAvg min_max_avg(const double my_value, const MPI_Comm &) @@ -323,6 +310,18 @@ namespace Utilities + MinMaxAvg::MinMaxAvg () + : + sum (0.), + min (std::numeric_limits::max()), + max (-min), + min_index (0), + max_index (0), + avg (0) + {} + + + MPI_InitFinalize::MPI_InitFinalize (int &argc, char ** &argv, const unsigned int max_num_threads)