]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Make compile without MPI 3169/head
authorMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Fri, 30 Sep 2016 14:55:29 +0000 (16:55 +0200)
committerMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Fri, 30 Sep 2016 14:55:29 +0000 (16:55 +0200)
source/lac/trilinos_vector.cc

index 0af4209e7f29939e860d6b515a940fd9396f0824..b82f777b49eb20fef917934e3daedba37e3a8079 100644 (file)
@@ -237,7 +237,7 @@ namespace TrilinosWrappers
               owned_elements.compress();
             }
         }
-#ifdef DEBUG
+#if defined(DEBUG) && defined(DEAL_II_WITH_MPI)
       const MPI_Comm mpi_communicator
         = dynamic_cast<const Epetra_MpiComm *>(&(vector->Comm()))->Comm();
       const size_type n_elements_global
@@ -357,7 +357,7 @@ namespace TrilinosWrappers
 
           last_action = Insert;
         }
-#ifdef DEBUG
+#if defined(DEBUG) && defined(DEAL_II_WITH_MPI)
       const MPI_Comm mpi_communicator
         = dynamic_cast<const Epetra_MpiComm *>(&(vector->Comm()))->Comm();
       const size_type n_elements_global
@@ -435,7 +435,7 @@ namespace TrilinosWrappers
 
           last_action = Insert;
         }
-#ifdef DEBUG
+#if defined(DEBUG) && defined(DEAL_II_WITH_MPI)
       const MPI_Comm mpi_communicator
         = dynamic_cast<const Epetra_MpiComm *>(&(vector->Comm()))->Comm();
       const size_type n_elements_global

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.