]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Add semicolons after Asserts.
authorDavid Wells <drwells@email.unc.edu>
Sun, 2 Sep 2018 02:34:27 +0000 (22:34 -0400)
committerDavid Wells <drwells@email.unc.edu>
Sat, 8 Sep 2018 14:30:36 +0000 (10:30 -0400)
source/distributed/shared_tria.cc

index 76710b52940d6e94bc1ce89dcfa6915813df1965..eab717bdd853bbe629c6b22c0d8fb269f374ad2f 100644 (file)
@@ -53,19 +53,18 @@ namespace parallel
          partition_custom_signal) &
         settings;
       (void)partition_settings;
-      Assert(
-        partition_settings == partition_auto ||
-          partition_settings == partition_metis ||
-          partition_settings == partition_zoltan ||
-          partition_settings == partition_zorder ||
-          partition_settings == partition_custom_signal,
-        ExcMessage(
-          "Settings must contain exactly one type of the active cell partitioning scheme."))
+      Assert(partition_settings == partition_auto ||
+               partition_settings == partition_metis ||
+               partition_settings == partition_zoltan ||
+               partition_settings == partition_zorder ||
+               partition_settings == partition_custom_signal,
+             ExcMessage("Settings must contain exactly one type of the active "
+                        "cell partitioning scheme."));
 
-        if (settings & construct_multigrid_hierarchy) Assert(
-          allow_artificial_cells,
-          ExcMessage(
-            "construct_multigrid_hierarchy requires allow_artificial_cells to be set to true."))
+      if (settings & construct_multigrid_hierarchy)
+        Assert(allow_artificial_cells,
+               ExcMessage("construct_multigrid_hierarchy requires "
+                          "allow_artificial_cells to be set to true."));
     }
 
 
@@ -84,12 +83,12 @@ namespace parallel
         ExcMessage(
           "A parallel::shared::Triangulation needs to be refined in the same"
           "way on all processors, but the participating processors don't "
-          "agree on the number of active cells."))
+          "agree on the number of active cells."));
 #  endif
 
-        auto partition_settings = (partition_zoltan | partition_metis |
-                                   partition_zorder | partition_custom_signal) &
-                                  settings;
+      auto partition_settings = (partition_zoltan | partition_metis |
+                                 partition_zorder | partition_custom_signal) &
+                                settings;
       if (partition_settings == partition_auto)
 #  ifdef DEAL_II_TRILINOS_WITH_ZOLTAN
         partition_settings = partition_zoltan;
@@ -286,7 +285,7 @@ namespace parallel
         const unsigned int total_cells =
           Utilities::MPI::sum(n_my_cells, this->get_communicator());
         Assert(total_cells == this->n_active_cells(),
-               ExcMessage("Not all cells are assigned to a processor."))
+               ExcMessage("Not all cells are assigned to a processor."));
       }
 
       // If running with multigrid, assert that each level
@@ -304,7 +303,7 @@ namespace parallel
           const unsigned int total_cells =
             Utilities::MPI::sum(n_my_cells, this->get_communicator());
           Assert(total_cells == this->n_cells(),
-                 ExcMessage("Not all cells are assigned to a processor."))
+                 ExcMessage("Not all cells are assigned to a processor."));
         }
 #  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.