]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Need to declare functions inline in order to avoid compiling the same function more...
authorMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Mon, 6 Sep 2010 12:55:17 +0000 (12:55 +0000)
committerMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Mon, 6 Sep 2010 12:55:17 +0000 (12:55 +0000)
git-svn-id: https://svn.dealii.org/trunk@21860 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/base/include/base/timer.h

index 26775ee1a2e664fe6980a381156911dfe51b5c9f..7253986ab39ce9ae86433d391c1e080c30f1dd2a 100644 (file)
@@ -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 <class STREAM>
-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 &section_name)

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.