]> https://gitweb.dealii.org/ - dealii.git/commitdiff
make compile without MPI 4808/head
authorTimo Heister <timo.heister@gmail.com>
Sun, 13 Aug 2017 00:45:26 +0000 (18:45 -0600)
committerTimo Heister <timo.heister@gmail.com>
Sun, 13 Aug 2017 00:59:07 +0000 (18:59 -0600)
include/deal.II/distributed/grid_tools.h

index 41950701eed736b53af6094a54344d10ff9a88b1..a247d681348fe0a0e6d0dd068be4cdbfcd5918d1 100644 (file)
@@ -197,6 +197,12 @@ namespace parallel
                                   std::function<DataType (const typename MeshType::active_cell_iterator &)> pack,
                                   std::function<void (const typename MeshType::active_cell_iterator &, const DataType &)> unpack)
     {
+#ifndef DEAL_II_WITH_MPI
+      (void)mesh;
+      (void)pack;
+      (void)unpack;
+      Assert(false, ExcMessage("parallel::GridTools::exchange_cell_data_to_ghosts() requires MPI."));
+#else
       constexpr int dim = MeshType::dimension;
       constexpr int spacedim = MeshType::space_dimension;
       auto tria =
@@ -320,7 +326,7 @@ namespace parallel
               unpack(cell, *data);
             }
         }
-
+#endif // DEAL_II_WITH_MPI
     }
 
   }

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.