]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Make compile.
authorkronbichler <kronbichler@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 29 Sep 2011 10:14:02 +0000 (10:14 +0000)
committerkronbichler <kronbichler@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 29 Sep 2011 10:14:02 +0000 (10:14 +0000)
git-svn-id: https://svn.dealii.org/trunk@24462 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/source/base/timer.cc

index d366f954dc78e6af85674ce06be859994729f163..0ecb790c32512d8e6b84d5675c119e02ef327f94 100644 (file)
@@ -118,6 +118,7 @@ double Timer::stop ()
       double time = wall_timer.tv_sec + 1.e-6 * wall_timer.tv_usec
                              - start_wall_time;
 
+#ifdef DEAL_II_COMPILER_USE_MPI
       if (sync_wall_time && Utilities::System::job_supports_mpi())
        {
          this->mpi_data
@@ -126,6 +127,7 @@ double Timer::stop ()
          cumulative_wall_time += this->mpi_data.max;
        }
       else
+#endif
        cumulative_wall_time += time;
     }
   return cumulative_time;

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.