From 98f34b196ff045e02a73d06de266797587d8683f Mon Sep 17 00:00:00 2001 From: Martin Kronbichler Date: Mon, 6 Sep 2010 12:55:17 +0000 Subject: [PATCH] Need to declare functions inline in order to avoid compiling the same function more than once in the same file. git-svn-id: https://svn.dealii.org/trunk@21860 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/base/include/base/timer.h | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/deal.II/base/include/base/timer.h b/deal.II/base/include/base/timer.h index 26775ee1a2..7253986ab3 100644 --- a/deal.II/base/include/base/timer.h +++ b/deal.II/base/include/base/timer.h @@ -563,15 +563,22 @@ class TimerOutput /* ---------------- inline functions ----------------- */ + #ifdef DEAL_II_COMPILER_SUPPORTS_MPI -const Timer::TimeMinMaxAvg & Timer::get_data() const +inline +const Timer::TimeMinMaxAvg & +Timer::get_data() const { return mpi_data; } + + template -void Timer::print_data(STREAM & stream) const +inline +void +Timer::print_data(STREAM & stream) const { unsigned int my_id = dealii::Utilities::System::get_this_mpi_process(mpi_communicator); if (my_id==0) @@ -584,6 +591,8 @@ void Timer::print_data(STREAM & stream) const #endif + + inline void TimerOutput::enter_section (const std::string §ion_name) -- 2.39.5