]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Rearrange some MPI ifdefs to make cppcheck happy. 2961/head
authorDavid Wells <wellsd2@rpi.edu>
Sun, 14 Aug 2016 23:06:05 +0000 (19:06 -0400)
committerDavid Wells <wellsd2@rpi.edu>
Mon, 15 Aug 2016 00:12:08 +0000 (20:12 -0400)
source/base/index_set.cc

index 3edf225c1f1e90b518d355eb99c1001a381dd811..290e02bf3e02d53dd4afb1747d2d6319bdca2ac5 100644 (file)
@@ -486,6 +486,7 @@ IndexSet::make_trilinos_map (const MPI_Comm &communicator,
                              const bool overlapping) const
 {
   compress ();
+  (void)communicator;
 
 #ifdef DEBUG
   if (!overlapping)
@@ -520,10 +521,11 @@ IndexSet::make_trilinos_map (const MPI_Comm &communicator,
                        TrilinosWrappers::types::int_type(n_elements()),
                        0,
 #ifdef DEAL_II_WITH_MPI
-                       Epetra_MpiComm(communicator));
+                       Epetra_MpiComm(communicator)
 #else
-                       Epetra_SerialComm());
+                       Epetra_SerialComm()
 #endif
+                      );
   else
     {
       std::vector<size_type> indices;
@@ -538,11 +540,11 @@ IndexSet::make_trilinos_map (const MPI_Comm &communicator,
                           0),
                          0,
 #ifdef DEAL_II_WITH_MPI
-                         Epetra_MpiComm(communicator));
+                         Epetra_MpiComm(communicator)
 #else
-                         Epetra_SerialComm());
-      (void)communicator;
+                         Epetra_SerialComm()
 #endif
+                        );
     }
 }
 

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.