]> https://gitweb.dealii.org/ - dealii.git/commitdiff
make work without MPI
authorTimo Heister <timo.heister@gmail.com>
Wed, 13 May 2015 12:17:26 +0000 (08:17 -0400)
committerTimo Heister <timo.heister@gmail.com>
Wed, 13 May 2015 12:17:26 +0000 (08:17 -0400)
include/deal.II/base/mpi.h

index 518c03deef66972af03f23cc3a775919889dfbe3..5d4b19c91d55077660252aafa1d5014dd9190125 100644 (file)
@@ -45,6 +45,9 @@ namespace MPI
   static const unsigned int MIN = 0;
   static const unsigned int SUM = 0;
 }
+static const int MPI_MIN = 0;
+static const int MPI_MAX = 0;
+static const int MPI_SUM = 0;
 #endif
 
 DEAL_II_NAMESPACE_OPEN
@@ -486,6 +489,7 @@ namespace Utilities
         else
 #endif
           {
+            (void)mpi_op;
             (void)mpi_communicator;
             return t;
           }
@@ -512,6 +516,7 @@ namespace Utilities
         else
 #endif
           {
+            (void)mpi_op;
             (void)mpi_communicator;
             for (unsigned int i=0; i<N; ++i)
               output[i] = values[i];
@@ -540,6 +545,7 @@ namespace Utilities
         else
 #endif
           {
+            (void)mpi_op;
             (void)mpi_communicator;
             output = values;
           }

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.