]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Make compile even without MPI.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 26 Sep 2011 19:26:43 +0000 (19:26 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 26 Sep 2011 19:26:43 +0000 (19:26 +0000)
git-svn-id: https://svn.dealii.org/trunk@24438 0785d39b-7218-0410-832d-ea1e28bc413d

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

index d06546eef152c97ef37f99fb8187fe6d69d5dc1c..2110f3836b8f55c2cba7a1968bf2ff691aaf6431 100644 (file)
 #include <deal.II/base/config.h>
 #include <deal.II/base/conditional_ostream.h>
 #include <deal.II/base/thread_management.h>
+#include <deal.II/base/utilities.h>
 
 #ifdef DEAL_II_COMPILER_SUPPORTS_MPI
-#include <mpi.h>
-#include <deal.II/base/utilities.h>
+#  include <mpi.h>
 #endif
 
 #include <string>
@@ -506,12 +506,10 @@ class TimerOutput
                                      */
     std::list<std::string> active_sections;
 
-#ifdef DEAL_II_COMPILER_SUPPORTS_MPI
                                     /**
                                      * mpi communicator
                                      */
     MPI_Comm            mpi_communicator;
-#endif
 
                                     /**
                                      * A lock that makes sure that this

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.