]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Make compile without MPI
authorMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Tue, 27 Oct 2015 10:42:09 +0000 (11:42 +0100)
committerMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Tue, 27 Oct 2015 10:42:09 +0000 (11:42 +0100)
source/multigrid/mg_transfer_prebuilt.cc

index 819c8ea8428c421c0e4f0feda7af79c16b8b05de..61253f6ae15d19e27ccb8e45d2e530ce90894d5b 100644 (file)
@@ -381,6 +381,7 @@ MGTransferPrebuilt<VECTOR>::fill_and_communicate_copy_indices(
      (&mg_dof.get_tria()));
   AssertThrow(send_data_temp.size()==0 || tria!=NULL, ExcMessage("parallel Multigrid only works with a distributed Triangulation!"));
 
+#ifdef DEAL_II_WITH_MPI
   if (tria)
     {
       // TODO: Searching the owner for every single DoF becomes quite
@@ -459,6 +460,7 @@ MGTransferPrebuilt<VECTOR>::fill_and_communicate_copy_indices(
           requests.clear();
         }
     }
+#endif
 
   // Sort the indices. This will produce more reliable debug output for regression texts
   // and likely won't hurt performance even in release mode.

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.